新年活动:增加谷歌包跳转充值

This commit is contained in:
qf
2022-12-27 15:02:47 +08:00
parent bed6c791d8
commit 495eca12ca
2 changed files with 17 additions and 10 deletions

View File

@@ -188,7 +188,7 @@
<script src="../../common/js/layer.js"></script>
<script src="../../common/js/vconsole.min.js"></script>
<script src="../../common/js/svga.min.js"></script>
<script src="./js/index.js?v=1.1"></script>
<script src="./js/index.js?v=1.3"></script>
</body>
</html>

View File

@@ -31,7 +31,7 @@ const toastMsg = (content = '操作完成', time = 2) => {
})
}
if (false) {//!browser.app
if (!browser.app) {//false
toastMsg('請在app內打開');
} else {
$('.wrap').removeClass('no-in-app')
@@ -107,7 +107,7 @@ function getInit() {
},
error(err) {
hideLoading(layerIndex)
toastMsg('网络错误,请退出重')
toastMsg('網絡錯誤,請退出重')
}
})
}
@@ -156,7 +156,7 @@ function getConvertRecord(page) {
scrollBool = true;
bodyScroolFun(false)
hideLoading(layerIndex)
toastMsg('网络错误,请退出重')
toastMsg('網絡錯誤,請退出重')
}
})
}
@@ -204,7 +204,7 @@ function openFireworks(type, num) {
error(err) {
canWish = true
hideLoading(layerIndex)
toastMsg('网络错误,请退出重')
toastMsg('網絡錯誤,請退出重')
}
})
}
@@ -272,7 +272,7 @@ function getRank(type) {
},
error(err) {
hideLoading(layerIndex)
toastMsg('网络错误,请退出重')
toastMsg('網絡錯誤,請退出重')
}
})
}
@@ -290,7 +290,7 @@ function sendLog(event) {
}
},
error(err) {
toastMsg('网络错误,请退出重')
toastMsg('網絡錯誤,請退出重')
}
})
}
@@ -368,7 +368,7 @@ $('.gift-box-wrap .wish').click(function () {
// }, 1000);
}
}else {
toastMsg('烟花点燃中,请稍后~')
toastMsg('煙花點燃中,請稍後~')
}
@@ -523,8 +523,15 @@ $('.tishiBox .close').click(function () {
$('.tishiBox').on('click', '.recharge', function () {
if (browser.app) {
if (browser.android) {
sendLog('pay_click')
window.location.href = urlPrefix + '/peko/modules/pay/index.html?channelType=4';
let channel = pubInfo.deviceInfo.channel;
console.log(pubInfo.deviceInfo);
if (channel == "google") {
sendLog('pay_click')
window.androidJsObj.openChargePage(0);
} else {
sendLog('pay_click')
window.location.href = urlPrefix + '/peko/modules/pay/index.html?channelType=4';
}
} else if (browser.ios) {
sendLog('pay_click')
window.webkit.messageHandlers.openChargePage.postMessage(null)