fix: 回退 卡密
This commit is contained in:
parent
0891e5060c
commit
4f87d7fc71
|
@ -279,24 +279,11 @@
|
|||
}
|
||||
let res = await req.axiosPost('/key/products', params);
|
||||
if (res.code === 200) {
|
||||
// 打开成功结算3
|
||||
// 商品1,卡密2,平台查看2 特殊处理
|
||||
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 3 && res.data[0].type === 1 && res.data[0].entity.card_show !== 2) {
|
||||
settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
|
||||
}
|
||||
|
||||
// 如果不账号领取 直接过
|
||||
if (gotoHomePage(res.data[0])) {
|
||||
if (res.data[0].entity.product_type === 2 && res.data[0].entity.card_show === 2) {
|
||||
sessionStorage.setItem('goodsInfo', JSON.stringify(res.data[0]))
|
||||
setTimeout(() => {
|
||||
window.location.replace("./exchange-cardpwd.html");
|
||||
}, 300)
|
||||
} else {
|
||||
setTimeout(() => {
|
||||
window.location.replace("./homepage.html");
|
||||
}, 300)
|
||||
}
|
||||
setTimeout(() => {
|
||||
window.location.replace("./homepage.html");
|
||||
}, 300)
|
||||
} else {
|
||||
|
||||
state.goodsName = res.data[0].entity.product_name;
|
||||
|
@ -331,6 +318,11 @@
|
|||
}
|
||||
|
||||
onMounted(() => {
|
||||
// 打开成功结算3
|
||||
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 3) {
|
||||
settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
|
||||
}
|
||||
|
||||
let bm_data = sessionStorage.getItem("bm_auth");
|
||||
if (bm_data) {
|
||||
state.bmAuth = JSON.parse(bm_data)
|
||||
|
|
Loading…
Reference in New Issue