fix: 修复卡使用结算

This commit is contained in:
zhangds 2024-02-28 13:49:00 +08:00
parent 4681e39126
commit e256923113
2 changed files with 4 additions and 4 deletions

View File

@ -342,7 +342,7 @@
};
self.popboxshow = false;
req.axiosPost('/key/usage', data).then(res => {
debugger
// 使用结算 6
// 卡密做特殊处理,复制才会触发
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 6 && self.goodInfo.product_type !== 2) {
@ -366,7 +366,7 @@
this.openDialog("兑换成功");
const clr = setTimeout(() => {
if (this.goodInfo.product_type === 2) {
if (self.goodInfo.product_type === 2) {
window.location.href = '/orderDetails/cardOrder.html';
} else {
window.location.href = '/orderDetails/chargerOrder.html';

View File

@ -187,7 +187,7 @@
.then(({ code, data, message }) => {
// 使用结算 6
// 卡密做特殊处理,复制才会触发
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 6 && self.goodInfo.product_type !== 2) {
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 6 && self.ysf.product_type !== 2) {
settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
}
@ -196,7 +196,7 @@
if (code == 200) {
// 使用成功结算 7
// 直充类 上游充值返回成功
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 7 && self.goodInfo.product_type !== 2) {
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 7 && self.ysf.product_type !== 2) {
settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
}
this.verificationYsf(data);