fix: 修复兑换码登录
This commit is contained in:
parent
366f0f171c
commit
80279f902a
|
@ -224,12 +224,13 @@
|
|||
methods: {
|
||||
// 判断是否是包码 跳转对应的包码页面 ****
|
||||
goToPackKey(data, type) {
|
||||
// 存储数据
|
||||
sessionStorage.setItem("bm_auth", JSON.stringify(data));
|
||||
|
||||
// 包码打开结算
|
||||
if (!data.settlement_data.is_settlement && data.settlement_data.settlement_type === 2) {
|
||||
settlementFun(data.token, data.settlement_data.settlement_type);
|
||||
}
|
||||
// 存储数据
|
||||
sessionStorage.setItem("bm_auth", JSON.stringify(data));
|
||||
|
||||
setTimeout(() => {
|
||||
if (type) {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
const settlementFun = (token, settlementType) => {
|
||||
let obj_yz_data = JSON.parse(sessionStorage.getItem("bm_auth"));
|
||||
if (obj_yz_data.settlement_data.is_settlement) {
|
||||
if (obj_yz_data && obj_yz_data.settlement_data.is_settlement) {
|
||||
return;
|
||||
}
|
||||
let params = {
|
||||
|
|
|
@ -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.ysf.product_type !== 2) {
|
||||
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);
|
||||
}
|
||||
|
||||
|
@ -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.ysf.product_type !== 2) {
|
||||
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 7) {
|
||||
settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
|
||||
}
|
||||
this.verificationYsf(data);
|
||||
|
|
|
@ -170,7 +170,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.ysf.product_type !== 2) {
|
||||
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);
|
||||
}
|
||||
|
||||
|
@ -178,7 +178,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.ysf.product_type !== 2) {
|
||||
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 7) {
|
||||
settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
|
||||
}
|
||||
|
||||
|
|
|
@ -180,7 +180,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) {
|
||||
settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
|
||||
}
|
||||
|
||||
|
@ -188,7 +188,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) {
|
||||
settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
|
||||
}
|
||||
|
||||
|
|
|
@ -185,14 +185,14 @@
|
|||
.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.goods.product_type !== 2) {
|
||||
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);
|
||||
}
|
||||
|
||||
if (code == 200) {
|
||||
// 使用成功结算 7
|
||||
// 直充类 上游充值返回成功
|
||||
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 7 && self.goods.product_type !== 2) {
|
||||
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 7) {
|
||||
settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue