logistics.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <template>
  2. <view class="container">
  3. <view class="tui-order-header">
  4. <view class="tui-text">快递单号:
  5. <text class="tui-bold">{{orderDetail.logistics.LogisticCode}}</text>
  6. </view>
  7. <view class="tui-text">快递公司:{{orderDetail.logistics.expressname}}</view>
  8. <!--<view class="tui-text">预计送达:
  9. <text class="tui-bold">5</text>月<text class="tui-bold">1</text>日</view>-->
  10. </view>
  11. <view class="tui-order-tracking">
  12. <tui-time-axis v-for="(item,index) in orderDetail.logistics.Traces" :key="index">
  13. <tui-timeaxis-item backgroundColor="transparent">
  14. <template v-slot:node>
  15. <view class="tui-node-dot"></view>
  16. </template>
  17. <template v-slot:content>
  18. <view class="tui-order-desc tui-light-gray tui-ptop">{{item.AcceptStation}}</view>
  19. <view class="tui-order-time tui-gray">{{item.AcceptTime}}</view>
  20. </template>
  21. </tui-timeaxis-item>
  22. </tui-time-axis>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. export default {
  28. data() {
  29. return {
  30. backgroundColor: "#EB0909",
  31. orderDetail: []
  32. }
  33. },
  34. onLoad(options) {
  35. let _this = this
  36. var orderid = options.id;
  37. _this.$request.get('order.detail', {
  38. samkey: (new Date()).valueOf(),
  39. id: orderid
  40. }).then(function(res) {
  41. if (res.errno != 0) {
  42. uni.showModal({
  43. title: '错误',
  44. content: res.msg,
  45. showCancel: false
  46. })
  47. return;
  48. }
  49. _this.orderDetail = res.data;
  50. });
  51. }
  52. }
  53. </script>
  54. <style>
  55. .tui-order-header {
  56. padding: 30rpx;
  57. box-sizing: border-box;
  58. background: #fff;
  59. }
  60. .tui-text {
  61. font-size: 28rpx;
  62. color: #333;
  63. padding: 4rpx;
  64. }
  65. .tui-bold {
  66. font-weight: bold;
  67. }
  68. .tui-node {
  69. height: 44rpx;
  70. width: 44rpx;
  71. border-radius: 50%;
  72. background-color: #ddd;
  73. display: flex;
  74. align-items: center;
  75. justify-content: center;
  76. color: #fff;
  77. flex-shrink: 0;
  78. }
  79. .tui-node-dot {
  80. height: 16rpx;
  81. width: 16rpx;
  82. background-color: #ddd;
  83. border-radius: 50%;
  84. /* transform: translateY(45%); */
  85. margin-top: 6rpx;
  86. }
  87. .tui-bg-primary {
  88. background: #EB0909 !important;
  89. }
  90. .tui-order-tracking {
  91. padding: 30rpx 30rpx 30rpx 40rpx;
  92. background: #fff;
  93. margin-top: 20rpx;
  94. box-sizing: border-box;
  95. }
  96. .tui-order-title {
  97. padding-bottom: 12rpx;
  98. font-size: 32rpx;
  99. color: #333;
  100. font-weight: bold;
  101. }
  102. .tui-order-desc {
  103. padding-bottom: 12rpx;
  104. font-size: 28rpx;
  105. color: #333;
  106. }
  107. .tui-ptop {
  108. display: flex;
  109. justify-content: flex-start;
  110. line-height: 28rpx;
  111. }
  112. .tui-order-time {
  113. font-size: 24rpx;
  114. font-weight: bold;
  115. }
  116. .tui-gray {
  117. color: #848484 !important;
  118. }
  119. .tui-light-gray {
  120. color: #888 !important;
  121. }
  122. .tui-primary {
  123. color: #5677fc;
  124. }
  125. .tui-img__box {
  126. width: 100%;
  127. font-size: 0;
  128. padding-top: 4rpx;
  129. }
  130. .tui-img__box image {
  131. width: 200rpx;
  132. height: 200rpx;
  133. margin-right: 12rpx;
  134. margin-top: 12rpx;
  135. }
  136. .tui-image {
  137. width: 400rpx !important;
  138. height: auto;
  139. }
  140. </style>