fix: 修复兑换码登录

This commit is contained in:
zhangds 2024-02-28 14:13:05 +08:00
parent 366f0f171c
commit 80279f902a
6 changed files with 12 additions and 11 deletions

View File

@ -224,12 +224,13 @@
methods: { methods: {
// 判断是否是包码 跳转对应的包码页面 **** // 判断是否是包码 跳转对应的包码页面 ****
goToPackKey(data, type) { goToPackKey(data, type) {
// 存储数据
sessionStorage.setItem("bm_auth", JSON.stringify(data));
// 包码打开结算 // 包码打开结算
if (!data.settlement_data.is_settlement && data.settlement_data.settlement_type === 2) { if (!data.settlement_data.is_settlement && data.settlement_data.settlement_type === 2) {
settlementFun(data.token, data.settlement_data.settlement_type); settlementFun(data.token, data.settlement_data.settlement_type);
} }
// 存储数据
sessionStorage.setItem("bm_auth", JSON.stringify(data));
setTimeout(() => { setTimeout(() => {
if (type) { if (type) {

View File

@ -5,7 +5,7 @@
*/ */
const settlementFun = (token, settlementType) => { const settlementFun = (token, settlementType) => {
let obj_yz_data = JSON.parse(sessionStorage.getItem("bm_auth")); 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; return;
} }
let params = { let params = {

View File

@ -187,7 +187,7 @@
.then(({ code, data, message }) => { .then(({ code, data, message }) => {
// 使用结算 6 // 使用结算 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); settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
} }
@ -196,7 +196,7 @@
if (code == 200) { if (code == 200) {
// 使用成功结算 7 // 使用成功结算 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); settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
} }
this.verificationYsf(data); this.verificationYsf(data);

View File

@ -170,7 +170,7 @@
.then(({ code, data, message }) => { .then(({ code, data, message }) => {
// 使用结算 6 // 使用结算 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); settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
} }
@ -178,7 +178,7 @@
if (code == 200) { if (code == 200) {
// 使用成功结算 7 // 使用成功结算 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); settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
} }

View File

@ -180,7 +180,7 @@
.then(({ code, data, message }) => { .then(({ code, data, message }) => {
// 使用结算 6 // 使用结算 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); settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
} }
@ -188,7 +188,7 @@
if (code == 200) { if (code == 200) {
// 使用成功结算 7 // 使用成功结算 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); settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
} }

View File

@ -185,14 +185,14 @@
.then(({ code, data, message }) => { .then(({ code, data, message }) => {
// 使用结算 6 // 使用结算 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); settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
} }
if (code == 200) { if (code == 200) {
// 使用成功结算 7 // 使用成功结算 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); settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
} }