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);
}
if (this.goods.group_info.channel == 1 && this.goods.group_info.receive_mode == 1) {
/* 支付宝官方领取 */
this.toLinkAlipay();
} else if (this.goods.group_info.channel == 2) {
/* 微信官方领取 */
window.location.replace(res.data.redirect_url);
}
this.getProductDetail();
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) {
/* 微信官方领取 */
window.location.replace(res.data.redirect_url);
}
this.getProductDetail();
}, 300)
} else {
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) {
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 {
this.axiosErrorFun(code, message);
}