invoke("imagePreview",{current:e[isFinite(n)&&n>=0&&n<e.length?n:0],urls:e}),!0},e.openNewWindow=function(){return!1},e.login=function(){return!1},e.getLoginTicket=function(){return null},e.callWithScheme=function(n,o){/MicroMessenger\/([0-5]\.|6\.[0-4]\.|6\.5\.[0-5]\.)/i.test(navigator.userAgent)?e._callWithScheme(n):WeixinJSBridge&&WeixinJSBridge.invoke("launchApplication",{schemeUrl:n},(function(t){t.err_msg.indexOf("access_denied")>=0&&reportWxJsAPIErrMsg("launchApplication: "+t.err_msg),"launchApplication:fail"==t.err_msg&&e._callWithScheme(n),"function"==typeof o&&o(t)}))},window.WeixinJSBridge?e._readyCallback():document.addEventListener("WeixinJSBridgeReady",e._readyCallback,!1)}}function i(e,n){if(window.localStorage){var o=localStorage.getItem("JsBridge-Download");if(o)try{var t=JSON.parse(o);for(var a in o={},t)i-t[a].timestamp<604800&&(o[a]=t[a])}catch(e){o={}}else o={};var i=Date.now();return n&&(o[e]={timestamp:i,downloadId:n}),localStorage.setItem("JsBridge-Download",JSON.stringify(o)),!0}return!1}}(window.JsBridge,window)},function(e,n){function o(e,n,o){return n in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,e}function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,n,a){var i;if(e&&e.SCENE==e.SCENE_NONE){var r=navigator.userAgent.indexOf("V1_AND_SQ_")>=0,d=navigator.userAgent.match(/(?:V1_AND_SQ_|QQ\/)([\d\.]+)/);if(d&&e._greaterThanOrEqual(d[1],"4.6")){e.SCENE=e.SCENE_MOBILEQ;var s=1,l={},c=e._call=function(n){var o,a=["jsbridge:/",n];a.push(s);for(var i=1,r=arguments.length;i<r;i++){var d=arguments[i];if("function"==typeof d){o=d;break}a.push(encodeURIComponent("object"==t(d)?JSON.stringify(d):d+""))}return l[s]={cb:o},e._callWithScheme(a.join("/"),s),s++};e.multiCall=function(n,o){var t=0,a={},i={},r=function(e){e&&e.guid&&e.guid in a&&(i[a[e.guid]]=0==e.r?e.data:null,"function"==typeof cb&&cb(key,e),t--,delete a[e.guid],0==t&&"function"==typeof o&&o(i))};for(var d in n){var s=n[d],l=[s.name].concat(s.args||[]);l.push(r),a[e._call.apply(e,l)]=d,t++}},e.onResume=function(){},e.callback=function(n,o){"resume"!=n?o&&(isFinite(n)?l[n]&&(e._callback(n),l[n].cb&&l[n].cb(o.result),delete l[n]):0==o.r&&"interface.getQueryDownloadAction"==n?m(o.data,!0,!0):o.guid&&l[o.guid]&&(e._callback(o.guid),l[o.guid].cb&&l[o.guid].cb(o.data),delete l[o.guid])):"function"==typeof e.onResume&&e.onResume()},n.QzoneApp={fire:function(n,o){e.callback(n,o)}},n.publicAccountDownload={queryProcess:function(e){m(e,!0)}};var p=e.Download;p._stateMap=(o(i={20:p.STATE_QUEUING,2:p.STATE_DOWNLOADING,12:p.STATE_DOWNLOADING,3:p.STATE_PAUSED,10:p.STATE_PAUSED,4:p.STATE_DOWNLOADED,5:p.STATE_INSTALLING,6:p.STATE_INSTALLED,13:p.STATE_INSTALLED,9:p.STATE_READY},"10",p.STATE_READY),o(i,"-1",p.STATE_FAILED),o(i,"-2",p.STATE_FAILED),o(i,"-3",p.STATE_FAILED),o(i,"-4",p.STATE_FAILED),o(i,"-5",p.STATE_FAILED),o(i,"-6",p.STATE_FAILED),i),p.prototype._getDownloadParam=function(e){return{myAppConfig:0,appid:this.args.sngAppId,myAppId:this.args.hnAppId,versionCode:this.args.versionCode,url:this.args.url,packageName:this.args.packageName,actionCode:e,appName:this.args.alias,isAutoDownload:1,isAutoInstall:1,sourceType:"biz_src_yyb",via:this.args.via||""}};var w=0,u=[];p._query=function(e){u.push(e),w||(w=setTimeout(f))},p.prototype._init=function(){this._callback(p.STATE_READY,{identifier:this.args.sngAppId}),p._query(this)},p.prototype.start=function(){switch(this.state){case p.STATE_READY:case p.STATE_FAILED:c("q_download/doDownloadAction",this._getDownloadParam(this.args.isUpdate?12:2));break;case p.STATE_PAUSED:c("q_download/doDownloadAction",this._getDownloadParam(2));break;default:this._callback()}return!0},p.prototype.stop=function(){return c("q_download/doDownloadAction",this._getDownloadParam(3)),!0},p.prototype.install=function(){return c("q_download/doDownloadAction",this._getDownloadParam(5)),!0},p.onBatchCallback=function(){},p.callback=function(e){debug("[mqq.js] JsBridge.Download.callback res: "+JSON.stringify(e)),m(e)},e.onReady((function(){c("q_download/registerDownloadCallBackListener","JsBridge.Download.callback")})),e.getAppInstalledVersion=function(e,n){return c("qzone_app/getAppInfoBatch",e.join(","),",",!1,!1,!1,(function(e){e=e&&JSON.parse(e.data||e)||[];for(var o,t={},a=0;o=e[a];a++)t[o[0]]=o[1];n&&n(t)})),!0},e.startApp=function(e){return c("qqZoneAppList/startApp",e,""),!0},e._setShareInfo=function(){var n=e._shareInfo;c("QQApi/setShareInfo",{share_url:n.jumpUrl,title:n.title,desc:n.summary,image_url:n.iconUrl})},e.share=function(){return!1},e.showPictures=function(){return!1},e.openNewWindow=function(e){return c("QQApi/openUrl",{url:e,target:1}),!0},e.login=function(){return!1},e.getLoginTicket=function(){return null},e._readyCallback()}}function f(){w=0;for(var e,n={guid:1,infolist:[]},o=0;e=u[o];o++)n.infolist.push({appid:e.args.sngAppId,myAppId:e.args.hnAppId,packageName:e.args.packageName,versionCode:e.args.versionCode});u=[],r||(n=n.infolist),c("q_download/getQueryDownloadAction",n)}function m(e,n,o){if("[object Array]"!=Object.prototype.toString.call(e)){var t=p._getDownloadState(e.state,n);if((e.appid||e.packagename)&&t){var a=p._instances[e.appid]||p._instances[e.packagename];a&&a._callback(t,{percentage:e.pro})}}else{o&&"function"==typeof p.onBatchCallback&&p.onBatchCallback(e);for(var i,r=0;i=e[r];r++)m(i,n)}}}(window.JsBridge,window)},function(e,n,o){var t=o(0).getQuery,a={};window.oneLog=function(e,n){a[n]||(e&&e(),a[n]=!0)},window.debug=function(){window.debugEnabled=window.debugEnabled||t("debug"),window.debugEnabled&&console.log.apply(console,arguments)}},function(e,n){function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){if(window.tbs_bridge){var e=window.tbs_bridge;e.callbackId=Date.now(),e.callbacks={},e.exec=function(n,t,a,i){var r,d,s=o(a),l=o(i);if("undefined"===s&&"undefined"===l)a="";else if("function"===s)i=a,a="",l="function";else if("object"!
Back to home |
File page
Subscribe |
Register |
Login
| N