order-status.vue 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <template>
  2. <view class="slot">
  3. <view class="status">
  4. <text v-if="type == '10'">等待买家付款</text>
  5. <text v-if="type == '11'">等待卖家发货</text>
  6. <text v-if="type == '12'">运输中</text>
  7. <!-- <text v-if="type == '3'">待评价</text> -->
  8. <!-- <text v-if="type == '4'">退款售后</text> -->
  9. <text v-if="type == '13'">已完成</text>
  10. <text v-if="type == '14'">交易关闭</text>
  11. <text v-if="type == '15'">存在售后单</text>
  12. </view>
  13. <view class="desc">
  14. <text v-if="type == '10'">请尽快完成支付</text>
  15. <!-- <text v-if="type == '11'">预计发货日期:{{ expressDate }}</text> -->
  16. <!-- <text v-if="type == '12'">快件由 [{{ expressAddressStart }}] 发往 [{{ expressAddressEnd }}]</text> -->
  17. <!-- <text v-if="type == '3'">您的订单还未评价</text> -->
  18. <!-- <text v-if="type == '4'">当前订单商家已同意退款</text> -->
  19. <text v-if="type == '5'">当前订单已完成</text>
  20. </view>
  21. <view class="operate">
  22. <u-button size="mini" plain shape="circle" type="white" v-if="type == '12'" @click="goExpress(data)">查看物流</u-button>
  23. <!-- <u-button size="mini" plain shape="circle" type="white" v-if="type == '3'" @click="goEvaluate()">去评价</u-button> -->
  24. <!-- <u-button size="mini" plain shape="circle" type="white" v-if="type == '4'" @click="goBackMoney()">查看退款详情</u-button>
  25. <u-button size="mini" plain shape="circle" type="white" v-if="type == '5'" @click="applyAfterSales()">申请售后</u-button> -->
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. import { orderOperate } from '@/pages-mall/mixins/order-operate.js';
  31. export default {
  32. name: 'order-status',
  33. // 工单操作方法混入
  34. mixins: [orderOperate],
  35. props: {
  36. // 数据源
  37. data: {
  38. type: Object,
  39. default: () => {
  40. return {};
  41. }
  42. },
  43. // 类型
  44. type: {
  45. type: [String, Number],
  46. default: '0'
  47. },
  48. // 付款截止日期
  49. endDate: {
  50. type: String,
  51. default: '2022-01-11 14:19:56'
  52. },
  53. // 预计发货日期
  54. expressDate: {
  55. type: String,
  56. default: '2022-01-11 14:19:56'
  57. },
  58. // 快递节点
  59. expressAddressStart: {
  60. type: String,
  61. default: '广东中山转运中心'
  62. },
  63. expressAddressEnd: {
  64. type: String,
  65. default: '山东青岛转运中心'
  66. }
  67. },
  68. data() {
  69. return {};
  70. }
  71. };
  72. </script>
  73. <style lang="scss" scoped>
  74. .slot {
  75. position: relative;
  76. padding: 30rpx;
  77. background-color: $app-theme-color;
  78. color: $app-theme-text-white-color;
  79. margin-bottom: 24rpx;
  80. .status {
  81. margin-bottom: 20rpx;
  82. font-size: 30rpx;
  83. }
  84. .desc {
  85. font-size: 26rpx;
  86. }
  87. .operate {
  88. position: absolute;
  89. top: 30rpx;
  90. right: 30rpx;
  91. }
  92. }
  93. </style>