diff --git a/packkey/bm-index.html b/packkey/bm-index.html index 71dcad1..acbd8c1 100644 --- a/packkey/bm-index.html +++ b/packkey/bm-index.html @@ -152,34 +152,11 @@ if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 4) { settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type); } - let type = state.type; - let entity = state.entity; - /* - * type: 1商品 2立减金 3红包 -> 兑换码类型 - * channel: 1支付宝 2微信 3云闪付 -> 渠道平台 - * receive_mode: 1官方领取 2账号领取 -> 领取方式 - */ - if (type == 1) { - window.location.replace("./exchange.html"); - } - if (type == 2) { - if (entity.channel === 3) { - window.location.replace("./ysf-reduce.html"); - } else if (entity.channel === 1 && entity.receive_mode === 2) { - window.location.replace("./zfb-reduce.html"); - } else { - window.location.replace("./reduce.html"); - } - } - if (type == 3) { - if (entity.channel === 3) { - window.location.replace("./ysf.html"); - } else if (entity.channel === 1 && entity.receive_mode === 2) { - window.location.replace("./zfb-redPackets.html"); - } else { - window.location.replace("./redPackets.html"); - } - } + + setTimeout(() => { + window.location.href = './homepage.html'; + }, 300) + }