applyProgress.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <template>
  2. <view>
  3. <view class="info-view">
  4. <view class="header-title-view">
  5. <view class="title">售后单号:</view>
  6. <view>{{ sn }}</view>
  7. </view>
  8. <view class="header-title-view">
  9. <view class="title">申请时间:</view>
  10. <view>{{ createTime }}</view>
  11. </view>
  12. </view>
  13. <view class="info-view">
  14. <view class="header-title-view">
  15. <view>{{ serviceStatus }}</view>
  16. </view>
  17. </view>
  18. <view class="info-view">
  19. <view>
  20. <u-time-line v-if="logList.length != 0">
  21. <u-time-line-item>
  22. <!-- 此处没有自定义左边的内容,会默认显示一个点 -->
  23. <template v-slot:content>
  24. <view v-for="(time,index) in logList" :key="index">
  25. <view class="u-order-desc">{{time.message}}</view>
  26. <view class="u-order-time">{{time.createTime}}</view>
  27. </view>
  28. </template>
  29. </u-time-line-item>
  30. </u-time-line>
  31. <view v-else>
  32. <u-empty text="暂无审核日志"></u-empty>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </template>
  38. <script>
  39. export default {
  40. data() {
  41. return {
  42. sn: "", //sn
  43. createTime: "", //创建时间
  44. logList: [], //日志集合
  45. serviceStatus: "", //订单状态
  46. };
  47. },
  48. onLoad(options) {
  49. this.sn = options.sn;
  50. this.createTime = decodeURIComponent(options.createTime);
  51. this.serviceStatus = this.statusFilter(options.serviceStatus);
  52. this.logList = JSON.parse(decodeURIComponent(options.logs));
  53. },
  54. methods: {
  55. statusFilter(val) {
  56. switch (val) {
  57. case "APPLY":
  58. return "售后服务申请成功,等待商家审核";
  59. case "PASS":
  60. return "售后服务申请审核通过";
  61. case "REFUSE":
  62. return "售后服务申请已被商家拒绝,如有疑问请及时联系商家";
  63. case "FULL_COURIER":
  64. return "申请售后的商品已经寄出,等待商家收货";
  65. case "STOCK_IN":
  66. return "商家已将售后商品入库";
  67. case "WAIT_FOR_MANUAL":
  68. return "等待平台进行人工退款";
  69. case "REFUNDING":
  70. return "商家退款中,请您耐心等待";
  71. case "COMPLETED":
  72. return "售后服务已完成,感谢您的支持";
  73. case "ERROR_EXCEPTION":
  74. return "系统生成新订单异常,等待商家手动创建新订单";
  75. case "CLOSED":
  76. return "售后服务已关闭";
  77. case "WAIT_REFUND":
  78. return "等待平台进行退款";
  79. default:
  80. return "";
  81. }
  82. },
  83. },
  84. };
  85. </script>
  86. <style lang="scss" scoped>
  87. page,
  88. .content {
  89. background: $page-color-base;
  90. height: 100%;
  91. }
  92. .u-order-time {
  93. font-size: 24rpx;
  94. color: #999;
  95. margin: 20rpx 0;
  96. }
  97. .info-view {
  98. margin: 20rpx 0;
  99. border-radius: 20rpx;
  100. background-color: #fff;
  101. padding: 30rpx;
  102. .header-title-view {
  103. display: flex;
  104. flex-direction: row;
  105. align-items: center;
  106. color: #909399;
  107. .title {
  108. width: 160rpx;
  109. }
  110. }
  111. .steps-view {
  112. display: flex;
  113. flex-direction: row;
  114. align-items: center;
  115. color: #909399;
  116. border-bottom: 1px solid $page-color-base;
  117. margin-bottom: 10rpx;
  118. .title {
  119. width: 160rpx;
  120. }
  121. }
  122. }
  123. </style>