wlDetail.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <template>
  2. <view>
  3. <view class="content">
  4. <view class="log_top">
  5. <!-- <image :src="log.good_thumb" mode="aspectFill"></image> -->
  6. <view class="right">
  7. <view>物流公司:{{wlData.order.delivery_name}}</view>
  8. <view>物流单号:{{wlData.order.delivery_id}}</view>
  9. </view>
  10. </view>
  11. <view class="log_list">
  12. <view class='logisit' v-if="wlData.express.result.list !=0" v-for="(item,index) in wlData.express.result.list" >
  13. <view class='list' :style="{'border-left':index == wlData.express.result.list.length-1 ? '':'1px solid #E5E5E5'}">
  14. <view class="left">
  15. <image class='list_fin_img' v-if="index == 0&&wlData.express.result.list.length>1" src="../../static/icon/circle.png"></image>
  16. <image class='list_start_img' v-if="index != 0" src="../../static/icon/gantan_icon3.png"></image>
  17. </view>
  18. <view class="right">
  19. <view :class="index == 0 ? 'list_name_last' : 'list_name' " >{{item.status}}</view>
  20. <view :class="index == 0 ? 'list_dates_last' : 'list_dates' ">{{item.time}}</view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. import { orderDetail, getWl } from '@/api/order.js';
  30. export default {
  31. data() {
  32. return {
  33. orderId: '',
  34. wlData: {},
  35. log:{
  36. good_thumb:'../../static/logo.png',
  37. company:'大C子',
  38. LogisticCode:'12345678910',
  39. logList:[
  40. {id:0,AcceptStation:'广州市',AcceptTime:'2021.03.10'},
  41. {id:1,AcceptStation:'广州市',AcceptTime:'2021.03.09'},
  42. {id:2,AcceptStation:'广州市',AcceptTime:'2021.03.08'},
  43. {id:3,AcceptStation:'广州市',AcceptTime:'2021.03.07'},
  44. {id:4,AcceptStation:'广州市',AcceptTime:'2021.03.06'},
  45. ]
  46. }
  47. }
  48. },
  49. onLoad(opt){
  50. this.orderId = opt.id
  51. this.getWl()
  52. },
  53. onShow() {
  54. },
  55. methods: {
  56. getWl() {
  57. let obj = this
  58. getWl({},obj.orderId).then(res => {
  59. console.log(res.data.order)
  60. obj.wlData = res.data
  61. })
  62. }
  63. },
  64. }
  65. </script>
  66. <style lang="scss">
  67. .content{
  68. .log_top{
  69. height: 140rpx;
  70. width: 100%;
  71. border: 1px solid #F5F5F5;
  72. display: flex;
  73. justify-content: flex-start;
  74. z-index: 1;
  75. background-color: #FFFFFF;
  76. image{
  77. width: 68rpx;
  78. height: 68rpx;
  79. margin: 36rpx;
  80. }
  81. .right{
  82. padding-left: 20rpx;
  83. font-size: 24rpx;
  84. color: #333333;
  85. view{
  86. margin-top: 20rpx;
  87. }
  88. }
  89. }
  90. // 物流追踪
  91. .log_list{
  92. width: 100%;
  93. height: 100%;
  94. margin-top: 130rpx;
  95. .logisit{
  96. width: 100%;
  97. font-size: 22rpx;
  98. }
  99. .list{
  100. width: 90%;
  101. margin: auto;
  102. display: flex;
  103. justify-content: flex-start;
  104. position: relative;
  105. .left{
  106. margin-left: 10rpx;
  107. position: absolute;
  108. left: -26rpx;
  109. width: 30rpx;
  110. text-align: center;
  111. .list_fin_img{
  112. width: 30rpx;
  113. height: 30rpx;
  114. }
  115. .list_start_img{
  116. width: 24rpx;
  117. height: 24rpx;
  118. }
  119. }
  120. .right{
  121. font-size: 22rpx;
  122. width: 90%;
  123. margin-left: 50rpx;
  124. margin-bottom: 50rpx;
  125. .list_name_last, .list_name{
  126. width: 100%;
  127. margin-top: -20rpx;
  128. text-align: left;
  129. font-size: 22rpx;
  130. }
  131. .list_name_last{
  132. color: #892C2B;
  133. }
  134. .list_name{
  135. color: #999999;
  136. }
  137. .list_dates_last{
  138. color: #892C2B;
  139. font-size: 22rpx;
  140. margin-top: 10rpx;
  141. }
  142. .list_dates{
  143. font-size: 20rpx;
  144. margin-top: 10rpx;
  145. color: #999999;
  146. }
  147. }
  148. }
  149. }
  150. }
  151. </style>