fix: 增加组合商品, 结算

This commit is contained in:
zhangds 2024-03-15 14:17:45 +08:00
parent 10cf4e586f
commit d0942afaec
1 changed files with 23 additions and 2 deletions

View File

@ -219,8 +219,19 @@
req.axiosPost("/voucher/groupVoucherGrant", params)
.then((res) => {
if (res.code == 200) {
// 领取成功结算 5
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 5) {
settlementFun(bm_obj_data.token, 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);
}
this.message = '领取成功';
this.getProductDetail();
} else {
this.axiosErrorFun(res.code, res.message);
}
@ -230,6 +241,16 @@
/* 支付宝官方领取H5跳转 */
toLinkAlipay() {
// 领取成功结算 5
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 5) {
settlementFun(bm_obj_data.token, 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);
}
let self = this;
let banklink = encodeURIComponent(
window.location.origin +