line-info-operate.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <template>
  2. <view class="slot">
  3. <view class="line">
  4. <view class="label">商品总价</view>
  5. <view class="value">{{ orderInfo.total_amount}}</view>
  6. </view>
  7. <view class="line">
  8. <view class="label">优惠券</view>
  9. <view class="value">-{{ orderInfo.coupon_amount}}</view>
  10. </view>
  11. <view class="line">
  12. <view class="label">运费</view>
  13. <view class="value">{{ orderInfo.express_fee}}</view>
  14. </view>
  15. <view class="line">
  16. <view class="label">应付款</view>
  17. <view class="value price">{{ orderInfo.actual_total_amount}}</view>
  18. </view>
  19. <u-line color="#eee" margin="0 0 30rpx" />
  20. <view class="line">
  21. <view class="label">订单编号</view>
  22. <view class="value">
  23. {{ orderInfo.order_no}}
  24. <text class="copy" @click="$copyByUniappApi(orderInfo.order_no)">复制</text>
  25. </view>
  26. </view>
  27. <view class="line">
  28. <view class="label">收货地址</view>
  29. <view class="value">{{ addressInfo.realname}}, {{ addressInfo.mobile}}, {{ addressInfo.province+addressInfo.city+addressInfo.area+addressInfo.street}}</view>
  30. </view>
  31. <view class="line">
  32. <view class="label">留言</view>
  33. <view class="value">{{ orderInfo.remark}}</view>
  34. </view>
  35. <view class="line">
  36. <view class="label">创建时间</view>
  37. <view class="value">{{ orderInfo.createtime}}</view>
  38. </view>
  39. <view class="line" v-if="orderInfo.pay_time">
  40. <view class="label">付款时间</view>
  41. <view class="value">{{ orderInfo.pay_time}}</view>
  42. </view>
  43. <view class="line" v-if="orderInfo.send_time">
  44. <view class="label">发货时间</view>
  45. <view class="value">{{ orderInfo.send_time}}</view>
  46. </view>
  47. <view class="line" v-if="orderInfo.ack_time">
  48. <view class="label">成交时间</view>
  49. <view class="value">{{ orderInfo.ack_time}}</view>
  50. </view>
  51. <view class="line" v-if="orderInfo.cancel_time">
  52. <view class="label">取消时间</view>
  53. <view class="value">{{ orderInfo.cancel_time}}</view>
  54. </view>
  55. </view>
  56. </template>
  57. <script>
  58. export default {
  59. name: 'line-info-operate',
  60. props: {
  61. // 配置项
  62. orderInfo: {
  63. type: Object,
  64. default: () => {
  65. return {};
  66. }
  67. },
  68. addressInfo: {
  69. type: Object,
  70. default: () => {
  71. return {};
  72. }
  73. }
  74. }
  75. };
  76. </script>
  77. <style lang="scss" scoped>
  78. .slot {
  79. padding: 30rpx 0rpx;
  80. }
  81. .line {
  82. display: flex;
  83. justify-content: space-between;
  84. align-items: center;
  85. margin-bottom: 30rpx;
  86. .label {
  87. // width: 204rpx;
  88. font-size: 28rpx;
  89. color: $app-theme-text-color;
  90. }
  91. .value {
  92. // width: 320rpx;
  93. max-width: 500rpx;
  94. flex: 1;
  95. padding: 0 30rpx;
  96. text-align: right;
  97. font-size: 28rpx;
  98. color: $app-theme-text-color;
  99. }
  100. .price{
  101. color: $app-theme-text-money-color;
  102. }
  103. .copy {
  104. font-size: 28rpx;
  105. color: $app-theme-color;
  106. margin-left: 20rpx;
  107. }
  108. }
  109. </style>