logisticsInfo.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <template>
  2. <view class="content">
  3. <!-- 商品信息 -->
  4. <view class="shopshead dfsb">
  5. <image :src="info.shop.goods_img" mode=""></image>
  6. <view class="shopsInfo dffd">
  7. <view class="elli bold">{{ info.shop.goods_name || '商品名称' }}</view>
  8. <view class="subtit fontssm">sdfsfdasgdffdsaf1345565</view>
  9. <view class="tips">复制</view>
  10. </view>
  11. </view>
  12. <view class="list">
  13. <view v-for="(item, index) in info.list" class="li dfsb">
  14. <view :class="[index == 0 ? '' : 'textgrey', 'time']">{{ item.time }}</view>
  15. <view :class="[index == 0 ? '' : 'textgrey', 'add']">{{ item.add }}</view>
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. data() {
  23. return {
  24. exp_id: '',
  25. exp_no: '',
  26. info: {
  27. shop: {
  28. goods_name: '商品名称',
  29. vip_price: 100,
  30. goods_img: '/static/img/pro/hotbgtj.png'
  31. },
  32. list: [
  33. {
  34. time: '12:10 07月20日',
  35. add: '您的订单开始捡货'
  36. },
  37. {
  38. time: '12:10',
  39. add: '包裹交付顺丰速递公司'
  40. },
  41. {
  42. time: '12:10',
  43. add: '您的订单已到达【广东黄埔分拣中心】分拣完成'
  44. },
  45. {
  46. time: '12:10',
  47. add: '您的订单从【广东黄埔分拣中心】发往【厦门分拨中心】'
  48. }
  49. ]
  50. }
  51. };
  52. },
  53. onLoad(options) {
  54. this.exp_id = options.exp_id || '';
  55. this.exp_no = options.exp_no || '';
  56. this.loadData();
  57. },
  58. onShow() {},
  59. methods: {
  60. loadData() {
  61. this.$api
  62. .request('common/sel_exp', {
  63. exp_no: this.exp_no || '',
  64. exp_id: this.exp_id || ''
  65. })
  66. .then(data => {
  67. if (data.code == 200) {
  68. this.info = data.data;
  69. } else {
  70. this.$api.toast(data.msg);
  71. }
  72. });
  73. }
  74. }
  75. };
  76. </script>
  77. <style lang="scss">
  78. page {
  79. background-color: #fff;
  80. padding: 20rpx 50rpx;
  81. }
  82. .shopshead {
  83. height: 216rpx;
  84. background: #ffffff;
  85. box-shadow: 2rpx 2rpx 30rpx 0rpx rgba(236, 236, 236, 0.5);
  86. image {
  87. width: 216rpx;
  88. height: 216rpx;
  89. margin-right: 30rpx;
  90. }
  91. .shopsInfo {
  92. padding: 25rpx 0;
  93. flex: 1;
  94. height: 100%;
  95. align-items: flex-start;
  96. justify-content: space-between;
  97. .elli {
  98. // height: 80rpx;
  99. line-height: 40rpx;
  100. }
  101. .subtit {
  102. margin: 8rpx 0 53rpx;
  103. }
  104. .tips {
  105. padding: 2rpx 10rpx;
  106. text-align: center;
  107. border-radius: 19rpx;
  108. border: 1px solid #333333;
  109. font-size: 20rpx;
  110. }
  111. }
  112. }
  113. .list {
  114. padding: 80rpx 0;
  115. .li {
  116. align-items: flex-start;
  117. .time {
  118. width: 141rpx;
  119. padding: 0rpx 40rpx 45rpx 0;
  120. border-right: 1rpx solid #333;
  121. font-size: 24rpx;
  122. position: relative;
  123. &::before {
  124. content: '';
  125. position: absolute;
  126. top: 0;
  127. right: -7rpx;
  128. width: 14rpx;
  129. height: 14rpx;
  130. border-radius: 50%;
  131. background: #333333;
  132. }
  133. }
  134. .add {
  135. flex: 1;
  136. margin-left: 55rpx;
  137. font-size: 26rpx;
  138. }
  139. &:nth-last-of-type(1) {
  140. .time {
  141. border-right: 0 solid #333;
  142. }
  143. }
  144. }
  145. }
  146. </style>