diff --git a/packages/myOrders/afterSale/index.vue b/packages/myOrders/afterSale/index.vue index 7ed8844e..eb40338f 100644 --- a/packages/myOrders/afterSale/index.vue +++ b/packages/myOrders/afterSale/index.vue @@ -33,7 +33,7 @@ - {{ getStatusText(item.after_sales_status) }} + {{ getStatusText(item) }} 商家将在{{ calculateProcessingTime(item.create_time) }}内处理 @@ -97,13 +97,20 @@ export default { this.currentAfterSale = res.after_sales_list; }); }, - getStatusText(status) { - // 根据状态码返回对应的状态文本 + getStatusText(item) { + if(item.after_sales_status === 2) { + return '已撤销'; + } + if(item.process_status === 2) { + return '已完成'; + }else if(item.process_status === 3) { + return '已取消'; + } + const status = item.review_status; const statusMap = { 1: '商家待处理', - 2: '已撤销', - 3: '已完成', - 4: '已拒绝' + 2: '商家已同意', + 3: '商家已拒绝', }; return statusMap[status] || '未知状态'; },