tida
Version:
tida
2 lines (1 loc) • 20.1 kB
JavaScript
module.exports=webpackJsonp([1],{2:function(e,a){e.exports=require("@weex-module/windvane")},28:function(e,a,n){"use strict";function t(e){return e&&e.__esModule?e:{default:e}}var o=n(29),i=t(o),r=n(31),l=t(r),s=n(1),c=navigator.userAgent,u=/AliApp\(TM\//gi.test(c),p=(/AliApp\(TB\//gi.test(c),{});if(s.isWeex){var d=n(9),f=n(32);p={pushWindow:function(e,a){d.push(e,a,a)},popWindow:function(e,a){d.pop(e,a,a)},openWindow:function(e,a){d.open(e,a,a)},closeWindow:function(e,a){d.close(e,a,a)},showTitle:function(e,a){f.show(e,a,a)},hideTitle:function(e,a){f.hide(e,a,a)},setTitle:function(e,a){f.setTitle(e,a,a)},setLeftItem:function(e,a){f.setLeftItem(e,a,a)},setRightItem:function(e,a){f.setRightItem(e,a,a)},setStyle:function(e,a){f.setStyle(e,a,a)},setStatusBarStyle:function(e,a){f.setStatusBarStyle(e,a,a)}}}else p=u?i.default:l.default;e.exports=p},29:function(e,a,n){"use strict";function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(a,"__esModule",{value:!0});var o=n(0),i=t(o),r=n(30),l=(t(r),{toast:function(e,a){var n="string"==typeof e?{text:e}:e;n.duration=n.duration||2e3;var t={message:n.text,duration:(n.duration||2e3)/1e3};i.default.call("WVUIToast","toast",t,a,a)},showLoading:function(e,a){e=e||"加载中...",window.TMM&&TMM.APP.call("Window.showProgress",[e],a,a)},hideLoading:function(e){window.TMM&&TMM.APP.call("Window.hideProgress",[],e,e)},showTitle:function(e){window.TMM&&TMM.APP.call("Window.showTitle",[1],e,e)},hideTitle:function(e){window.TMM&&TMM.APP.call("Window.hideTitle",[],e,e)},setTitle:function(e,a){var n="string"==typeof e?e:e&&e.text;window.TMM&&TMM.APP.call("Window.setTitle",[n],a,a)},pushWindow:function(e,a){var n="string"==typeof e?e:e&&e.url;if(n)if(window.lib&&lib.env.os.isAndroid)window.TMM&&TMM.APP.call("Logic.triggerAction",["link:url="+n],a,a);else{var t={url:n};i.default.call("Base","openWindow",t,a,a)}else a&&a({errorCode:2,errorMessage:"参数无效"})},popWindow:function(e){window.TMM&&TMM.APP.call("Window.back",[],e,e)},pageVisibility:{watch:function(e){if(!this.visibility){var a=function(a){var n={errorCode:a.code||0,errorMessage:"调用成功",visible:a.data&&a.data.visible};e&&e(n)};window.TMM&&TMM.APP.call("PageVisibility.watchVisibilitychange",["visibility"],a,a)}},clearWatch:function(e){TMM.APP.call("PageVisibility.clearWatch",["visibility"],e,e)}}});a.default=l,e.exports=a.default},30:function(module,exports,__webpack_require__){"use strict";var _typeof="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};~function(win){if(!win.TMM){try{if(void 0===DeviceInfo||"object"!=(void 0===DeviceInfo?"undefined":_typeof(DeviceInfo)))var DeviceInfo={}}catch(e){var DeviceInfo={}}if("object"!=(void 0===DeviceInfo?"undefined":_typeof(DeviceInfo)))var DeviceInfo={};var PhoneGap={queue:{ready:!0,commands:[],timer:null}};PhoneGap.Channel=function(e){this.type=e,this.handlers={},this.guid=0,this.fired=!1,this.enabled=!0},PhoneGap.Channel.prototype.subscribe=function(e,a,n){if(null!=e){var t=e;return"object"==(void 0===a?"undefined":_typeof(a))&&e instanceof Function&&(t=PhoneGap.close(a,e)),n=n||t.observer_guid||e.observer_guid||this.guid++,t.observer_guid=n,e.observer_guid=n,this.handlers[n]=t,n}},PhoneGap.Channel.prototype.subscribeOnce=function(e,a){var n=null,t=this,o=function(){e.apply(a||null,arguments),t.unsubscribe(n)};return this.fired?("object"==(void 0===a?"undefined":_typeof(a))&&e instanceof Function&&(e=PhoneGap.close(a,e)),e.apply(this,this.fireArgs)):n=this.subscribe(o),n},PhoneGap.Channel.prototype.unsubscribe=function(e){e instanceof Function&&(e=e.observer_guid),this.handlers[e]=null,delete this.handlers[e]},PhoneGap.Channel.prototype.fire=function(e){if(this.enabled){var a=!1;for(var n in this.handlers){var t=this.handlers[n];if(t instanceof Function){var o=0==t.apply(this,arguments);a=a||o}}return this.fired=!0,this.fireArgs=arguments,!a}return!0},PhoneGap.Channel.join=function(e,a){for(var n=a.length,t=function(){--n||e()},o=0;o<n;o++)a[o].fired?n--:a[o].subscribeOnce(t);n||e()},PhoneGap.available=void 0!=DeviceInfo.uuid,PhoneGap.addConstructor=function(e){PhoneGap.onPhoneGapInit.subscribeOnce(function(){try{e()}catch(e){"function"==typeof debug.log?debug.log("Failed to run constructor: "+debug.processMessage(e)):alert("Failed to run constructor: "+e.message)}})},PhoneGap.addPlugin=function(e,a){window.plugins||(window.plugins={}),window.plugins[e]||(window.plugins[e]=a)},PhoneGap.onDOMContentLoaded=new PhoneGap.Channel("onDOMContentLoaded"),PhoneGap.onNativeReady=new PhoneGap.Channel("onNativeReady"),PhoneGap.onPhoneGapInit=new PhoneGap.Channel("onPhoneGapInit"),PhoneGap.onPhoneGapReady=new PhoneGap.Channel("onPhoneGapReady"),PhoneGap.onPhoneGapInfoReady=new PhoneGap.Channel("onPhoneGapInfoReady"),PhoneGap.onResume=new PhoneGap.Channel("onResume"),PhoneGap.onPause=new PhoneGap.Channel("onPause"),"undefined"!=typeof _nativeReady&&PhoneGap.onNativeReady.fire(),PhoneGap.onDeviceReady=new PhoneGap.Channel("onDeviceReady"),PhoneGap.Channel.join(function(){setTimeout(function(){try{CallbackServer.usePolling()?PhoneGap.JSCallbackPolling():PhoneGap.JSCallback()}catch(e){}},1),PhoneGap.onPhoneGapInit.fire(),PhoneGap.onPhoneGapReady.fire()},[PhoneGap.onDOMContentLoaded,PhoneGap.onNativeReady]),PhoneGap.Channel.join(function(){navigator.notification.activityStop(),PhoneGap.onDeviceReady.fire(),PhoneGap.onResume.fire()},[PhoneGap.onPhoneGapReady,PhoneGap.onPhoneGapInfoReady]),document.addEventListener("DOMContentLoaded",function(){PhoneGap.onDOMContentLoaded.fire()},!1),PhoneGap.m_document_addEventListener=document.addEventListener,document.addEventListener=function(e,a,n){var t=e.toLowerCase();"deviceready"==t?PhoneGap.onDeviceReady.subscribeOnce(a):"resume"==t?PhoneGap.onResume.subscribe(a):"pause"==t?PhoneGap.onPause.subscribe(a):PhoneGap.m_document_addEventListener.call(document,e,a)},PhoneGap.stringify=function(e){if("undefined"==typeof JSON){for(var a="[",n=0;n<e.length;n++){n>0&&(a+=",");var t=_typeof(e[n]);if("number"==t||"boolean"==t)a+=e[n];else if(e[n]instanceof Array)a=a+"["+e[n]+"]";else if(e[n]instanceof Object){var o=!0;a+="{";for(var i in e[n]){o||(a+=","),a=a+'"'+i+'":';var r=_typeof(e[n][i]);"number"==r||"boolean"==r?a+=e[n][i]:a=a+'"'+e[n][i]+'"',o=!1}a+="}"}else{var l=e[n].replace(/\\/g,"\\\\");l=l.replace(/"/g,'\\"'),a=a+'"'+l+'"'}}return a+="]"}return JSON.stringify(e)},PhoneGap.clone=function(e){if(!e)return e;if(e instanceof Array){for(var a=new Array,n=0;n<e.length;++n)a.push(PhoneGap.clone(e[n]));return a}if(e instanceof Function)return e;if(!(e instanceof Object))return e;a=new Object;for(n in e)n in a&&a[n]==e[n]||(a[n]=PhoneGap.clone(e[n]));return a},PhoneGap.callbackId=0,PhoneGap.callbacks={},PhoneGap.callbackStatus={NO_RESULT:0,OK:1,CLASS_NOT_FOUND_EXCEPTION:2,ILLEGAL_ACCESS_EXCEPTION:3,INSTANTIATION_EXCEPTION:4,MALFORMED_URL_EXCEPTION:5,IO_EXCEPTION:6,INVALID_ACTION:7,JSON_EXCEPTION:8,ERROR:9},PhoneGap.exec=function(success,fail,service,action,args){try{var callbackId=service+PhoneGap.callbackId++;(success||fail)&&(PhoneGap.callbacks[callbackId]={success:success,fail:fail});var r=""+PluginManager.exec(service,action,callbackId,this.stringify(args),!0);if(r.length>0){if(eval("var v="+r+";"),v.status==PhoneGap.callbackStatus.OK){if(success){try{success(v.message)}catch(e){console.log("Error in success callback: "+callbackId+" = "+e)}v.keepCallback||delete PhoneGap.callbacks[callbackId]}return v.message}if(v.status!=PhoneGap.callbackStatus.NO_RESULT){if(console.log("Error: Status="+r.status+" Message="+v.message),fail){try{fail(v.message)}catch(e){console.log("Error in error callback: "+callbackId+" = "+e)}v.keepCallback||delete PhoneGap.callbacks[callbackId]}return null}v.keepCallback||delete PhoneGap.callbacks[callbackId]}}catch(e){console.log("Error: "+e)}},PhoneGap.callbackSuccess=function(e,a){if(PhoneGap.callbacks[e]){if(a.status==PhoneGap.callbackStatus.OK)try{PhoneGap.callbacks[e].success&&PhoneGap.callbacks[e].success(a.message)}catch(a){console.log("Error in success callback: "+e+" = "+a)}a.keepCallback||delete PhoneGap.callbacks[e]}},PhoneGap.callbackError=function(e,a){if(PhoneGap.callbacks[e]){try{PhoneGap.callbacks[e].fail&&PhoneGap.callbacks[e].fail(a.message)}catch(a){console.log("Error in error callback: "+e+" = "+a)}a.keepCallback||delete PhoneGap.callbacks[e]}},PhoneGap.run_command=function(){if(PhoneGap.available&&PhoneGap.queue.ready){PhoneGap.queue.ready=!1;var e=PhoneGap.queue.commands.shift();0==PhoneGap.queue.commands.length&&(clearInterval(PhoneGap.queue.timer),PhoneGap.queue.timer=null);for(var a=[],n=null,t=1;t<e.length;t++){var o=e[t];void 0!=o&&null!=o||(o=""),"object"==(void 0===o?"undefined":_typeof(o))?n=o:a.push(encodeURIComponent(o))}var i="gap://"+e[0]+"/"+a.join("/");if(null!=n){var r=[];for(var l in n)"string"==typeof l&&r.push(encodeURIComponent(l)+"="+encodeURIComponent(n[l]));r.length>0&&(i+="?"+r.join("&"))}document.location=i}},PhoneGap.JSCallback=function(){var xmlhttp=new XMLHttpRequest;PhoneGap.JSCallbackPort=CallbackServer.getPort(),PhoneGap.JSCallbackToken=CallbackServer.getToken(),xmlhttp.onreadystatechange=function(){if(4==xmlhttp.readyState)if(200==xmlhttp.status){var msg=xmlhttp.responseText;setTimeout(function(){try{var t=eval(msg)}catch(e){console.log("Message from Server: "+msg),console.log("JSCallback Error: "+e)}},1),setTimeout(PhoneGap.JSCallback,1)}else 404==xmlhttp.status?setTimeout(PhoneGap.JSCallback,10):(console.log("The status is: "+xmlhttp.status),console.log("JSCallback Error: Request failed."),CallbackServer.restartServer(),setTimeout(PhoneGap.JSCallback,100))},xmlhttp.open("GET","http://127.0.0.1:"+PhoneGap.JSCallbackPort+"/"+PhoneGap.JSCallbackToken,!0),xmlhttp.send()},PhoneGap.JSCallbackPollingPeriod=50,PhoneGap.JSCallbackPolling=function(){var msg=CallbackServer.getJavascript();msg?(setTimeout(function(){try{var t=eval(""+msg)}catch(e){console.log("JSCallbackPolling Error: "+e)}},1),setTimeout(PhoneGap.JSCallbackPolling,1)):setTimeout(PhoneGap.JSCallbackPolling,PhoneGap.JSCallbackPollingPeriod)},PhoneGap.createUUID=function(){return PhoneGap.UUIDcreatePart(4)+"-"+PhoneGap.UUIDcreatePart(2)+"-"+PhoneGap.UUIDcreatePart(2)+"-"+PhoneGap.UUIDcreatePart(2)+"-"+PhoneGap.UUIDcreatePart(6)},PhoneGap.UUIDcreatePart=function(e){for(var a="",n=0;n<e;n++){var t=parseInt(256*Math.random()).toString(16);1==t.length&&(t="0"+t),a+=t}return a},PhoneGap.close=function(e,a,n){return void 0===n?function(){return a.apply(e,arguments)}:function(){return a.apply(e,n)}},PhoneGap.onDOMContentLoaded.fire(),PhoneGap.onNativeReady.fire();var TMM=TMM||{};TMM.getRandom=function(e,a){switch(arguments.length){case 1:return parseInt(Math.random()*e+1);case 2:return parseInt(Math.random()*(a-e+1)+e);default:return 0}},TMM.getPara=function(e,a){if(a=a||location.toString(),-1==a.indexOf("?")||-1==a.indexOf(e+"="))return"";a=a.split("#")[0];for(var n,t,o,i=a.substring(location.href.indexOf("?")+1),r=i.split("&"),l=0;l<r.length;l++)if(-1!=(n=r[l].indexOf("="))&&(t=r[l].substring(0,n),o=r[l].substring(n+1),t==e))return unescape(o.replace(/\+/g," "));return""};var parseJSON=function(e){if("string"!=typeof e)return e;try{return JSON.parse(String(e).replace(/\"\{/g,"{").replace(/\}\"/g,"}"))}catch(e){return{}}};TMM._parseJSON=parseJSON,TMM.cookie=function(e,a,n){if(void 0===a){var t=null;if(document.cookie&&""!=document.cookie)for(var o=document.cookie.split(";"),i=0;i<o.length;i++){var r=o[i].trim();if(r.substring(0,e.length+1)==e+"="){t=decodeURIComponent(r.substring(e.length+1));break}}return t}n=n||{},null===a&&(a="",n.expires=-1);var l="";if(n.expires&&("number"==typeof n.expires||n.expires.toUTCString)){var s;"number"==typeof n.expires?(s=new Date,s.setTime(s.getTime()+24*n.expires*60*60*1e3)):s=n.expires,l="; expires="+s.toUTCString()}var c=n.path?"; path="+n.path:"",u=n.domain?"; domain="+n.domain:"",p=n.secure?"; secure":"";document.cookie=[e,"=",encodeURIComponent(a),l,c,u,p].join("")},TMM.UA={os:function(){for(var e=navigator.userAgent,a=["iPhone OS ","Android ","Android/"],n={iphone:!1,android:!1},t="",o=[],i=0;i<a.length;i++){var r=e.indexOf(a[i]);if(r>-1){switch(i){case 0:n.iphone=!0;break;case 1:case 2:n.android=!0}var l=a[i].length;t=e.substr(r+l,6),o=t.split(/_|\./)}}var s={iphone:n.iphone,android:n.android,version:o,tmallApp:""};return/AliApp\(TM\/([\d\.]+)\)/i.test(e)?s.tmallApp=RegExp.$1:!/AliApp\(TM-PD/i.test(e)&&/T-UA=[^_]+_([\d\.]+)_/i.test(e)&&(s.tmallApp=RegExp.$1),s}(),WindVane:function(){var e=navigator.userAgent,a=e.indexOf("WindVane/");return-1==a?null:e.substr(a+"WindVane/".length,5)}(),taobaoApp:function(){var e=navigator.userAgent,a=e.indexOf("AliApp(TB/");return-1==a?null:e.substr(a+"AliApp(TB/".length,5)}()},TMM.APP={call:function call(funName,param,_success,_fail,isDebug){if(param=param||[],"Stats.trace"==funName&¶m.length<3&¶m.push(""),!0===isDebug&&(_success=_fail=function(e){alert("object"==(void 0===e?"undefined":_typeof(e))?JSON.stringify([e]):e)}),"number"==typeof arguments[arguments.length-1]){var timeout=arguments[arguments.length-1],noTimeout=function(e){return["Share.share","Application.login","Application.addShakeListener","Lottery.shake","Share.point"].indexOf(e)>-1},timeoutTimer=setTimeout(function(e){noTimeout(e)||_success&&_success({errorCode:5,errorMessage:"调用超时"})},timeout,funName);if("function"==typeof _success){var suc=_success;_success=function(e){suc(e),clearTimeout(timeoutTimer),timeoutTimer=null}}if("function"==typeof _fail){var tempFail=_fail;_fail=function(e){tempFail(e),clearTimeout(timeoutTimer),timeoutTimer=null}}}var noHandlerCallback=function(){var e={code:1,errorCode:1,errorMessage:"You Are Not In TMALL!",ret:{retCod:1,retMsg:"You Are Not In TMALL!"}};_fail?_fail(e):_success&&_success(e)};if(!TMM.UA.os.tmallApp&&TMM.UA.WindVane&&window.WindVane)if("Stats.trace"==funName||"Server.HybridServer"==funName){var mtopParam=null;if(param[1])try{eval("mtopParam = "+param[1])}catch(e){}else mtopParam={};TMM.UA.taobaoApp&&parseInt(TMM.UA.taobaoApp.replace(/\./g,""))>=501?window.WindVane.call("MtopWVPlugin","send",{api:"mtop.tmw."+param[0],v:"1.0",post:"1",ecode:"1",isSec:"1",param:mtopParam},_success,_fail):window.WindVane.call("WVServer","send",{api:"mtop.tmw."+param[0],v:"1.0",post:"1",ecode:"1",isSec:"1",param:mtopParam},_success,_fail)}else noHandlerCallback();else{if(!TMM.UA.os.tmallApp)return void noHandlerCallback();if(TMM.UA.os.android)if(TMM.UA.os.tmallApp)if(parseFloat(TMM.UA.os.tmallApp)>=4.4){var callbackId=funName.split(".")[0]+PhoneGap.callbackId++,successName="",failName="";PhoneGap.callbacks[callbackId]={success:function(e){_success&&_success(parseJSON(e&&e.message))},fail:function(e){_fail&&_fail(parseJSON(e&&e.message))}},successName="PhoneGap.callbacks."+callbackId+".success",failName="PhoneGap.callbacks."+callbackId+".fail",window.prompt("js-appcall.html?"+funName+":"+encodeURIComponent(PhoneGap.stringify(param))+":"+successName+":"+failName)}else if("undefined"!=typeof PluginManager){funName=funName.split(".");var suc=null;isDebug?suc=_success:_success&&(suc=function suc(data){try{eval("var json="+data),_success(json)}catch(e){console.log("TmmError:"+e),_fail&&_fail()}}),PhoneGap.exec(suc,_fail,funName[0],funName[1],param)}else _success&&_success({errorCode:403,errorMesage:"low version app or PluginManager is undefined"});else _success&&_success({errorCode:404,errorMesage:"not support app"});else{var iframe=document.createElement("iframe"),callbackId=funName.split(".")[0]+PhoneGap.callbackId++,successName="",failName="";(_success||_fail)&&(PhoneGap.callbacks[callbackId]={success:function(e){_success&&_success(e);try{iframe.parentNode.removeChild(iframe)}catch(e){}},fail:function(e){_fail&&_fail(e);try{iframe.parentNode.removeChild(iframe)}catch(e){}}},successName="PhoneGap.callbacks."+callbackId+".success",failName="PhoneGap.callbacks."+callbackId+".fail"),iframe.setAttribute("src","js-appcall.html?"+funName+":"+encodeURIComponent(PhoneGap.stringify(param))+":"+successName+":"+failName),iframe.style.display="none",document.body.appendChild(iframe),iframe.onload=function(){try{var json=iframe.contentDocument.body.innerText||iframe.contentDocument.body.textContent;eval("json = "+json)}catch(e){json={errorCode:3,errorMessage:"invalid data"}}successName&&eval(successName+"(json)")}}}},update:function(){TMM.UA.os.iphone?self.location="http://itunes.apple.com/cn/app/id518966501?mt=8":TMM.APP.call("Application.update",[!1])}},TMM.Device={motion:function(e,a){if(window.DeviceMotionEvent){var n={last_update:0,x:null,y:null,z:null,last_x:null,last_y:null,last_z:null};window.addEventListener("devicemotion",function(t){var o=t.accelerationIncludingGravity,i=(new Date).getTime();if(i-n.last_update>100){var r=i-n.last_update;n.last_update=i,n.x=o.x,n.y=o.y,n.z=o.z;(Math.abs(n.x-n.last_x)+Math.abs(n.y-n.last_y)+Math.abs(n.z-n.last_z))/r*1e4>e&&a(),n.last_x=n.x,n.last_y=n.y,n.last_z=n.z}},!1)}},vibrate:function(e,a){a?TMM.APP.call("Notification.vibrate",[500]):navigator.vibrate&&navigator.vibrate(500)}},TMM.Log={sprefer:function(e){var a="log_"+(new Date).getTime(),n=window[a]=new Image;n.onload=n.onerror=function(){window[a]=null},n.src="http://m.tmall.com/web_channel.htm?url=/act/tmm-blank.php&sprefer="+e+"&t="+(new Date).valueOf(),n=null}},win.PhoneGap=PhoneGap,win.TMM=TMM}}(window)},31:function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(t),i={toast:function(e,a){var n="string"==typeof e?{message:e,duration:2}:e,t={apiName:"Tida.WVUIToast",methodName:"toast",methodParam:JSON.stringify(n),appKey:e.appkey};o.default.call("wopc","invoke",t,a,a)},showLoading:function(e,a){var n=document,t=n.getElementById("_HA_Loading");if(t)t.style.display="block";else{var o=n.createElement("div");o.id="_HA_Loading",o.style.cssText="position:absolute;z-index:9999;width:100%;height:100%;left:0;top:0;background:url(//assets.alicdn.com/mw/base/styles/component/more/images/loading.gif) 50% 50% no-repeat;background-size:40px 16px;pointer-events:none;",t=n.createDocumentFragment(),t.appendChild(o)}n.body.appendChild(t)},hideLoading:function(e){var a=document.getElementById("_HA_Loading");a&&(a.style.display="none")},showTitle:function(e,a){var n={apiName:"Tida.WebAppInterface",methodName:"setNaviBarHidden",methodParam:"0",appKey:e.appkey};o.default.call("wopc","invoke",n,a,a)},hideTitle:function(e,a){var n={apiName:"Tida.WebAppInterface",methodName:"setNaviBarHidden",methodParam:"1",appKey:e.appkey};o.default.call("wopc","invoke",n,a,a)},setTitle:function(e,a){var n="string"==typeof e?e:e&&e.text;lib.env.os.isAndroid;document.title=n;var t={apiName:"Tida.WebAppInterface",methodName:"setCustomPageTitle",methodParam:JSON.stringify({title:n}),appKey:e.appkey};o.default.call("wopc","invoke",t,a,a)},pushWindow:function(e,a){var n="string"==typeof e?e:e&&e.url,t=e&&e.force||!0,i={apiName:t?"Tida.WVNative":"Tida.Base",methodName:"openWindow",methodParam:JSON.stringify({url:n}),appKey:e.appkey};o.default.call("wopc","invoke",i,a,function(e){window.location.href=n,a&&a(e)})},popWindow:function(e,a){var n={apiName:"Tida.WVNative",methodName:"nativeBack",appKey:e.appkey};o.default.call("wopc","invoke",n,a,a)},pageVisibility:{watch:function(e){this.visibility||(this.visibility=function(a){e&&e({errorCode:0,errorMessage:"调用成功",visible:a&&"WV.Event.APP.Active"==a.type?1:0})},document.addEventListener("WV.Event.APP.Active",this.visibility,!1),document.addEventListener("WV.Event.APP.Background",this.visibility,!1))},clearWatch:function(e){document.removeEventListener("WV.Event.APP.Active",this.visibility,!1),document.removeEventListener("WV.Event.APP.Background",this.visibility,!1),delete this.visibility,e&&e({errorCode:0,errorMessage:"调用成功"})}}};a.default=i,e.exports=a.default},32:function(e,a){e.exports=require("@weex-module/navigationBar")},9:function(e,a){e.exports=require("@weex-module/navigator")}},[28]);