修改售后列表页面的状态展示
This commit is contained in:
parent
984593109e
commit
4098389254
@ -33,7 +33,7 @@
|
|||||||
<!-- 退款状态 -->
|
<!-- 退款状态 -->
|
||||||
<view class="status-container">
|
<view class="status-container">
|
||||||
<view class="status-item" @click="pendingPage(item)">
|
<view class="status-item" @click="pendingPage(item)">
|
||||||
<text class="status-label">{{ getStatusText(item.after_sales_status) }}</text>
|
<text class="status-label">{{ getStatusText(item) }}</text>
|
||||||
<text class="status-desc">商家将在<text style="color: #e73b05;">{{
|
<text class="status-desc">商家将在<text style="color: #e73b05;">{{
|
||||||
calculateProcessingTime(item.create_time) }}</text>内处理</text>
|
calculateProcessingTime(item.create_time) }}</text>内处理</text>
|
||||||
<view class="arrow-right"></view>
|
<view class="arrow-right"></view>
|
||||||
@ -97,13 +97,20 @@ export default {
|
|||||||
this.currentAfterSale = res.after_sales_list;
|
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 = {
|
const statusMap = {
|
||||||
1: '商家待处理',
|
1: '商家待处理',
|
||||||
2: '已撤销',
|
2: '商家已同意',
|
||||||
3: '已完成',
|
3: '商家已拒绝',
|
||||||
4: '已拒绝'
|
|
||||||
};
|
};
|
||||||
return statusMap[status] || '未知状态';
|
return statusMap[status] || '未知状态';
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user