From 4f87d7fc710d4a5fe13938a87e94458c4638f7c1 Mon Sep 17 00:00:00 2001 From: zhangds Date: Thu, 7 Mar 2024 20:36:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9B=9E=E9=80=80=20=E5=8D=A1=E5=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packkey/bm-index.html | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/packkey/bm-index.html b/packkey/bm-index.html index ad53593..0863636 100644 --- a/packkey/bm-index.html +++ b/packkey/bm-index.html @@ -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)