diff --git a/view/peko/activity/act-newYear-2022/index.html b/view/peko/activity/act-newYear-2022/index.html index 5eebf26..131a9c9 100644 --- a/view/peko/activity/act-newYear-2022/index.html +++ b/view/peko/activity/act-newYear-2022/index.html @@ -188,7 +188,7 @@ - + \ No newline at end of file diff --git a/view/peko/activity/act-newYear-2022/js/index.js b/view/peko/activity/act-newYear-2022/js/index.js index d55b970..c03d7a1 100644 --- a/view/peko/activity/act-newYear-2022/js/index.js +++ b/view/peko/activity/act-newYear-2022/js/index.js @@ -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)