夺宝:修改充值跳转方法

This commit is contained in:
qf
2023-03-08 15:43:41 +08:00
parent 906c1623e0
commit 760c38a415

View File

@@ -159,12 +159,18 @@ function buy (packId, packNum) {
$('.my .but').click(function () {
if (browser.app) {
if (browser.android) {
window.androidJsObj.openHalfRecharge();
} else {
window.webkit.messageHandlers.openHalfRecharge.postMessage(null);
let channel = pubInfo.deviceInfo.channel;
console.log(pubInfo.deviceInfo);
if (channel == "google") {
window.androidJsObj.openChargePage(0);
} else {
window.location.href = urlPrefix + '/peko/modules/pay/index.html?channelType=4';
}
} else if (browser.ios) {
window.webkit.messageHandlers.openChargePage.postMessage(null)
}
} else {
toastMsg('在app内打开')
toastMsg('在app內打開')
}
})
// 取消购买