diff --git a/view/peko/activity/midAutumnFestival/js/index.js b/view/peko/activity/midAutumnFestival/js/index.js index a807135..1189517 100644 --- a/view/peko/activity/midAutumnFestival/js/index.js +++ b/view/peko/activity/midAutumnFestival/js/index.js @@ -128,7 +128,7 @@ function jackpotConfig () { leftTime = res.data.jackpotEndTime - res.timestamp; if (leftTime >= 0) { countup(); - }else{ + } else { $('.page1 .play1 .playBox .dosBg p').html(`000000秒`) } } else { @@ -663,17 +663,32 @@ $('.page1 .play2 .playBox2 .task .taks2 .but').click(function () { if (bool == 1) { return; } - if (browser.app) { - if (browser.ios) { - window.webkit.messageHandlers.jumpAppointPage.postMessage(JSON.stringify({ routerType: 75, routerVal: dynamicWorldId })) - } else if (browser.android) { + if (browser.android) { + if (JSON.parse(pubInfo.deviceInfo).appVersionCode >= 200) { if (androidJsObj && typeof androidJsObj === 'object') { tools.nativeUtils.jumpAppointPage('DONG_TAI', dynamicWorldId); } + } else { + toastMsg('請前往論壇發佈話題圖文'); + } + } else if (browser.ios) { + if (pubInfo.deviceInfo.appVersion.replace(".", "").replace(".", "") >= 1014) { + window.webkit.messageHandlers.jumpAppointPage.postMessage(JSON.stringify({ routerType: 75, routerVal: dynamicWorldId })) + } else { + toastMsg('請前往論壇發佈話題圖文'); } - } else { - toastMsg('請在app內打開') } + // if (browser.app) { + // if (browser.ios) { + // window.webkit.messageHandlers.jumpAppointPage.postMessage(JSON.stringify({ routerType: 75, routerVal: dynamicWorldId })) + // } else if (browser.android) { + // if (androidJsObj && typeof androidJsObj === 'object') { + // tools.nativeUtils.jumpAppointPage('DONG_TAI', dynamicWorldId); + // } + // } + // } else { + // toastMsg('請在app內打開') + // } }) // 完成首頁循環任務按鈕 $('.page1 .play2 .playBox2 .task .taks3 .but,.page1 .play2 .playBox2 .task .taks4 .but,.page1 .play2 .playBox2 .task .taks5 .but').click(function () {