app-order-banner.vue 1.5 KB

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