fix: 修改领取立减金

This commit is contained in:
zhangds 2024-03-07 22:07:20 +08:00
parent 803adb75cb
commit e505bf2706
1 changed files with 18 additions and 11 deletions

View File

@ -181,14 +181,18 @@
settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type); settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
} }
if (this.goods.group_info.channel == 1 && this.goods.group_info.receive_mode == 1) { setTimeout(() => {
/* 支付宝官方领取 */ if (this.goods.group_info.channel == 1 && this.goods.group_info.receive_mode == 1) {
this.toLinkAlipay(); /* 支付宝官方领取 */
} else if (this.goods.group_info.channel == 2) { this.toLinkAlipay();
/* 微信官方领取 */ } else if (this.goods.group_info.channel == 2) {
window.location.replace(res.data.redirect_url); /* 微信官方领取 */
} window.location.replace(res.data.redirect_url);
this.getProductDetail(); }
this.getProductDetail();
}, 300)
} else { } else {
this.axiosErrorFun(res.code, res.message); this.axiosErrorFun(res.code, res.message);
} }
@ -257,10 +261,13 @@
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 6) { if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 6) {
settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type); settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
} }
setTimeout(() => {
this.loading = false;
this.message = '领取成功';
this.getProductDetail();
}, 300)
this.loading = false;
this.message = '领取成功';
this.getProductDetail();
} else { } else {
this.axiosErrorFun(code, message); this.axiosErrorFun(code, message);
} }