report({eventName:b.autoEventName.openQQDownloaderForDownloadApp,eventExtInfo:e}),void d.callWithScheme(e)}if(s.appExtInfo.isCpQQDownloader)p.init();else if(s.appExtInfo.isCpInnerApp)c.init();else if(g.os.ios)!function(){window.updateDownBtn("iosdown");var e=d.getAppIOSScheme();if((e&&g.browser.wechat||N("debug"))&&($("body").addClass("ios"),$(".ios-open-tips").show(),b.report({eventName:b.pvEventName.iosOpenTips}),window.oneLog((function(){x("wx_ios_browseropentips_pv")}),"wx_ios_browseropentips")),$("#btn-fast-download").unbind("click").bind("click",(function(){g.browser.wechat?x("wx_ios_fastclick"):g.browser.mqq?x("mqq_ios_fastclick"):g.browser.qqbrowser?x("mtt_ios_fastclick"):x("other_ios_fastclick"),a.iosUrl?(b.report({eventName:b.clickBtnEventName.mainBtn,eventResult:b.clickActionEventResult.openAppStore,eventExtInfo:a.iosUrl}),d.setLocationHref(a.iosUrl)):(b.report({eventName:b.clickBtnEventName.mainBtn,eventResult:b.clickActionEventResult.alert}),alert("\n抱歉,当前没有检测到iOS版本\n您可以尝试前往AppStore搜索查看"))})),$("#btn-ios-open").unbind(UI.EVENTS.touchstart).bind(UI.EVENTS.touchstart,(function(){if(g.browser.wechat)return b.report({eventName:b.clickBtnEventName.iosOpenBtn,eventResult:b.clickActionEventResult.showOpenGuide}),void O();a.iosUrl?(b.report({eventName:b.clickBtnEventName.iosOpenBtn,eventResult:b.clickActionEventResult.openAppStore,eventExtInfo:a.iosUrl}),d.setLocationHref(a.iosUrl)):e?(b.report({eventName:b.clickBtnEventName.iosOpenBtn,eventResult:b.clickActionEventResult.openCpApp,eventExtInfo:e}),d.setLocationHref(e)):(b.report({eventName:b.clickBtnEventName.iosOpenBtn,eventResult:b.clickActionEventResult.alert}),alert("\n抱歉,当前没有检测到iOS版本\n您可以尝试前往AppStore搜索查看"))})),e){if(g.browser.wechat)return;b.report({eventName:b.autoEventName.openCpApp,eventExtInfo:e}),d.setLocationHref(e)}else a.iosUrl&&(b.report({eventName:b.autoEventName.openAppStore,eventExtInfo:a.iosUrl}),d.setLocationHref(a.iosUrl));if(window.isDownBase){if(a.iosUrl&&1!=i.showTips||(i.gameFloatingWindowInfo&&$(document.body).append('<div class="top-tips">'+i.gameFloatingWindowInfo+"</div>"),window.oneLog((function(){x("ios_toptips_pv")}),"ios_toptips"),b.report({eventName:b.pvEventName.iosTopTips})),!a.iosUrl)return $("#btn-fast-download").removeClass("is-b-blue").addClass("is-disable"),void $("#btn-ios-open").parents(".btnwrapper").addClass("is-disable");if(1==i.showTips);}else if(!a.iosUrl);}();else if(g.os.android)if(d.isWechatSupportVersion()||d.isMqqSupportVersion())window.JsBridge&&window.JsBridge.onReady((function(){try{g.browser.wechat&&window.tbs_bridge&&window.tbs_bridge.nativeExec&&window.tbs_bridge.nativeExec("ug","test",-1,"{}"),window.tbs_bridge&&window.tbs_bridge.exec?(b.start("".concat(b.clientApiEventName.tbsGetStackInfo)),window.tbs_bridge.exec("ug","getStackInfo",(function(e){b.endAndReportSampleData({eventName:"".concat(b.clientApiEventName.tbsGetStackInfo),eventResult:e?e.code+"":b.apiErrCode,eventExtInfo:e.message||""}),e&&0==e.code&&e.stackInfo?(window.qbExchangeToken=e.stackInfo,I(window.qbExchangeToken),m.reportGetTbsStack(e.message||"",0)):(window.qbExchangeToken="",m.reportGetTbsStack(e&&e.message||"",e&&e.code||""))}))):(b.endAndReportSampleData({eventName:"".concat(b.clientApiEventName.tbsGetStackInfo),eventResult:b.eventResult.fail,eventExtInfo:"no tbs_bridge"}),m.reportGetTbsStack("no tbs_bridge",-1e4))}catch(e){console.log(e)}u.checkAppState([g.browser.pname],(function(e){g.browser.pversioncode=e[g.browser.pname]||null,b.setMediaAppVersion(g.browser.pversioncode),l.checkState(window.AppInfoData.appDetail.packageName,window.AppInfoData.relatedPkgList,(function(e){if(e)l.init(e,u.getCache().yybVersion,window.AppInfoData.appDetail.versionCode);else{var n=u.getCache(),o=n.yybVersion,t=n.cpAppVersion;if(q=!1,window.via="ANDROIDWXZ."+(o?"YYB.":"NEWYYB.")+(s.sceneVia?s.sceneVia:g.browser.wechat?"WX":"QQ"),g.browser.wechat&&(t?T(t,a.versionCode)<0?window.via+=".SAFEUPGRATE":window.via+=".OPEN":window.via+=".SAFEDOWNLOAD"),Q(!0),window.oneLog((function(){var e=o;(g.browser.wechat||g.browser.mqq)&&x((g.browser.wechat?"wx_":"mqq_")+(e?"android_yyb_pagepv":"android_noyyb_pagepv")),g.browser.wechat&&(t?T(t,a.versionCode)>=0?x(e?"wx_android_yyb_hasapp_pagepv":"wx_android_noyyb_hasapp_pagepv"):x(e?"wx_android_yyb_oldapp_pagepv":"wx_android_noyyb_oldapp_pagepv"):x(e?"wx_android_yyb_noapp_pagepv":"wx_android_noyyb_noapp_pagepv")),s.isPageReloaded&&(window.reportScene="reloadFor31415",setTimeout((function(){$("#btn-fast-download").trigger(UI.EVENTS.touchstart),window.isDownBase?$("#reloadDialog").hide():$("#reloadDialog").addClass("invisible")}),500))}),"pagepv"),s.isAutoDownAndCloseWin&&o&&!t){var i=k.getUrl();i||(i=d.getTmast({yybVersion:o,outerCall:!0})),b.report({eventName:b.autoEventName.openQQDownloaderForDownloadApp,eventExtInfo:i}),d.callWithScheme(i)}}})),d.onPageResume((function(){l.checkState(window.AppInfoData.appDetail.packageName,window.AppInfoData.relatedPkgList,(function(e){e?l.init(e,u.getCache().yybVersion,window.AppInfoData.appDetail.versionCode):(q=!1,u.check(window.AppInfoData.appDetail.packageName,(function(e,n){b.setInstallation({yybVersion:e,cpAppVersion:n}),Q(!1)})))}))}))}))}));else if(g.browser.qqbrowser&&g.browser.version&&T(g.browser.version,"5.0")>=0&&d.isSupportAppOperationInMtt())l.checkState(window.AppInfoData.appDetail.packageName,window.AppInfoData.relatedPkgList,(function(e){e?l.init(e,u.getCache().yybVersion,window.AppInfoData.appDetail.versionCode):L()})),b.start("".concat(b.clientApiEventName.checkAppState)),u.checkAppState([g.browser.pname],(function(e){g.browser.pversioncode=e[g.browser.pname],b.setMediaAppVersion(g.browser.pversioncode),b.endAndReportSampleData({eventName:"".concat(b.clientApiEventName.checkAppState)})}));else{var n=d.getAppAndroidScheme(),o=d.getAppAndroidScheme(!0),t="1"==N("ntc"),r=0==location.hash.indexOf("#fromopen");r&&location.replace(location.protocol+"//"+location.hostname+location.pathname+location.search+"#"),!t&&(o||n&&r)?(x("other_android_pagepv"),b.report({eventName:b.autoEventName.openCpApp,eventExtInfo:o||n}),d.setLocationHref(o||n),r&&E.init(o||n)):x("other_android_noschema_pagepv"),V()}else V()}window.
Back to home |
File page
Subscribe |
Register |
Login
| N