diff --git a/v2_0_0_C/coupon/myOrder.html b/v2_0_0_C/coupon/myOrder.html
index b56c953..ef22392 100644
--- a/v2_0_0_C/coupon/myOrder.html
+++ b/v2_0_0_C/coupon/myOrder.html
@@ -28,7 +28,7 @@
{{item.update_time}}
-
{{item.status_text}}
+
{{item.status_text}}
@@ -44,7 +44,10 @@
实付金额:¥{{item.pay_amount}}
立即支付
-
去兑换
+
+
去兑换
+
+
去兑换
@@ -111,19 +114,13 @@
methods: {
/* 根据不同状态展示 订单样式和表现 */
- statusColor (status) {
- switch (status) {
- /* 兑换码状态 */
- case 3:
- return '#FD553D'
- case 2:
- return '#44D27D'
- case 6:
- return '#F28542'
-
- /* 立减金状态 */
- case 4:
- return '#4193EE'
+ statusColor ({ type, status }) {
+ if (type === 1) {
+ const colorArray = ['#FD553D', '#FD553D', '#44D27D', '#F28542', '#4193EE', '#F28542', '#4193EE']
+ return colorArray[status];
+ } else {
+ const colorArray = ['#FD553D', '#FD553D', '#44D27D', '#F28542', '#4193EE', '#F28542', '#4193EE']
+ return colorArray[status];
}
},
@@ -232,14 +229,7 @@
}
return
}
-
- if (code === 200) {
- data.map(item => {
- if (item.type === 2 && item.status === 2) item.status = 4
- if (item.type === 2 && item.status === 1) item.status = 6
- })
- this.orderList = data
- }
+ if (code === 200) this.orderList = data
})
},