🦄 refactor(立减金领取页): 修改文案

This commit is contained in:
wangsongsole 2023-03-01 18:07:04 +08:00
parent 977b59c6fd
commit f899da66af
1 changed files with 10 additions and 12 deletions

View File

@ -117,13 +117,17 @@
return null;
},
//获取订单详情
getOrderDetail (id) {
getOrderDetail (id, isNext = false, message = '') {
req.axiosGet('/voucher/info', {
order_number: id
}).then(res => {
this.reduceInfo = res.data.rule;
this.reduceInfo.status = res.data.status;
this.couponInfo = res.data;
if (isNext) {
window.location.href = './advise.html';
sessionStorage.setItem('messageTip', message);
}
}).catch();
},
toReceive () {
@ -143,14 +147,8 @@
setTimeout(() => {
this.disabledBtn = false;
}, 2000);
if (res.code == 200) {
window.location.href = './advise.html';
this.getOrderDetail();
sessionStorage.setItem('messageTip', '');
} else {
window.location.href = './advise.html';
sessionStorage.setItem('messageTip', res.message);
}
const text = res.code == 200 ? '' : res.message;
this.getOrderDetail(this.orderNumber, true, text);
})
.catch((err) => { });
},
@ -173,13 +171,13 @@
return '立即领取';
break;
case 1:
return '充值中';
return '立即领取';
break;
case 2:
return '已完成';
return '已领取';
break;
case 3:
return '充值失败';
return '立即领取';
break;
case 5:
return '已过期';