app-order-banner.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <view class="app-order-banner order-status-box" :style="{'background-image': `url(${newPicUrl})`, 'background-size': '100% 100%'}">
  3. <view class='text'>{{title}}</view>
  4. <view v-if="hint" class='hint'>{{hint}}</view>
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. name: 'app-order-banner',
  10. data() {
  11. return {
  12. newPicUrl: ''
  13. }
  14. },
  15. props: {
  16. title: {
  17. type: String,
  18. value: ''
  19. },
  20. picUrl: {
  21. type: String,
  22. value: ''
  23. },
  24. hint: {
  25. type: String,
  26. value: ''
  27. }
  28. },
  29. created() {
  30. this.newPicUrl = this.$store.state.mallConfig.__wxapp_img.mall.order.status_bar;
  31. }
  32. }
  33. </script>
  34. <style scoped lang="scss">
  35. .order-status-box {
  36. width: 100%;
  37. display: flex;
  38. flex-direction: column;
  39. justify-content: center;
  40. height: 120#{rpx};
  41. }
  42. .text {
  43. z-index: 1;
  44. margin-left: 80#{rpx};
  45. color: #fff;
  46. font-size: $uni-font-size-import-two;
  47. }
  48. .hint {
  49. z-index: 1;
  50. margin-top: 10#{rpx};
  51. margin-left: 80#{rpx};
  52. color: #fff;
  53. font-size: $uni-font-size-general-two;
  54. }
  55. </style>