You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
146 KiB

4 years ago
var plusContext={};const DC_INTERVAL_ID="__dc__Interval_id__";var __dc__setInterval=function(e,t){return setIntervalWeex(DC_INTERVAL_ID,e,t)},__dc__clearInterval=function(e){clearIntervalWeex(DC_INTERVAL_ID,e)};plusContext.setInterval=__dc__setInterval,plusContext.clearInterval=__dc__clearInterval,plusContext.setTimeout=function(e,t){var n=arguments.length,i=Array(2<n?n-2:0);for(idx=2;idx<n;idx++)i[idx-2]=arguments[idx];var o=__dc__setInterval(function(){__dc__clearInterval(o),e.apply(void 0,i)},t=t||1);return o},plusContext.clearTimeout=__dc__clearInterval,plusContext.getLocationHerf=function(e){return e.weex.config.bundleUrl};var PlusObject=function(plusContext,param){plusContext.__param__=param;var dc_plusobjects={},dc_plusMouldes={};function PlusObject(e,t){for(var n in this.weex=t,this.__HtMl_Id__,this.weexBridge=t.requireModule("plus"),this.globalEvent=t.requireModule("globalEvent"),dc_plusMouldes){var i;this[n]||(i=dc_plusMouldes[n](plusContext,this,this.require,param[n]))&&(this[n]=i)}}return PlusObject.prototype.updateConfigInfo=function(){var e=this.weexBridge.getConfigInfo();if(e)for(var t in"string"==typeof e&&(e=JSON.parse(e)),this.__WebVieW_Id__=e.__WebVieW_Id__,this.__HtMl_Id__=e.__HtMl_Id__,e){var n=this[t];if("object"==typeof n&&e[t])if(n.updateInfo)n.updateInfo(e[t]);else{var i,o=e[t];for(i in o)n[i]=n[i]||o[i]}}},PlusObject.prototype.require=function(e){var t;return this[e]||(t=dc_plusMouldes[e](plusContext,this,this.require,param[e]))&&(this[e]=t),this[e]},PlusObject.prototype.importMoudle=function(name){if(this[name])return this[name];var script=this.weexBridge.importMoudle(name);return eval(script),this.require(name)},PlusObject.register=function(e,t){dc_plusMouldes[e]=t},PlusObject.newPlus=function(e,t){var n=dc_plusobjects[e];return n||((n=new PlusObject(e,t)).updateConfigInfo(),dc_plusobjects[e]=n),n},PlusObject.deletePlus=function(e){dc_plusobjects[e]&&delete dc_plusobjects[e]},PlusObject}(plusContext,param);function WebviewGroupMoudle(e,s,t){var c="WebviewGroup";function n(e,t){s.webview.NView.prototype.constructor.apply(this,[c]),this.__children=[];var n=[];if(Array.isArray(e))for(var i=0;i<e.length;i++){var o=e[i];o.styles=o.styles||{},o.styles.name=o.id;var r=new s.webview.Webview(o.url,o.styles,!0,o.extras);s.webview.__pushWindow__(r),this.__children.push(r);o=[r.__uuid__,[o.url,o.styles,r.__callback_id__,location.host+location.pathname,o.extras]];n.push(o)}s.webview.exec(this,"createGroup",[n,t,this.__callback_id__])}var i=n.prototype;return(s=s).tools.extend(i,t.NView.prototype),(i.constructor=n).prototype.setSelectIndex=function(e){s.webview.exec(this,"setSelectIndex",[e])},n.prototype.children=function(){return this.__children},t.createGroup=function(e,t){return new n(e,t)},n}function LoadWebviewMoudle(e,u,t){var l=t,_="NWindow",c=(u=u).bridge,f=u.tools;function d(){return e.getLocationHerf(u)}function p(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)n(e[t])}function n(e){var t;(t=e).onclick&&"function"==typeof t.onclick&&(e=c.callbackId(function(){t.onclick(t)}),t.__cb__={id:e,htmlId:u.__HtMl_Id__})}function h(e){if(Array.isArray(e))for(var t,n=0;n<e.length;n++)(t=e[n])&&"input"==t.tag?t.inputStyles&&(t.inputStyles.onComplete&&"function"==typeof t.inputStyles.onComplete&&(t.inputStyles.__onCompleteCallBackId__=c.callbackId(t.inputStyles.onComplete)),t.inputStyles.onFocus&&"function"==typeof t.inputStyles.onFocus&&(t.inputStyles.__onFocusCallBackId__=c.callbackId(t.inputStyles.onFocus)),t.inputStyles.onBlur&&"function"==typeof t.inputStyles.onBlur&&(t.inputStyles.__onBlurCallBackId__=c.callbackId(t.inputStyles.onBlur))):t&&"richtext"==t.tag&&t.richTextStyles&&t.richTextStyles.onClick&&"function"==typeof t.richTextStyles.onClick&&(t.richTextStyles.__onClickCallBackId__=c.callbackId(t.richTextStyles.onClick))}function i(e,t,n,i){if(this.__view_array__=new Array,l.NView.prototype.constructor.apply(this,[_]),this.id=null,t&&t.name&&(this.id=t.name),i)for(var o in i)this[o]=i[o];!this.id&&e&&(this.id=t.name=e),f.platform==f.IOS&&t&&t.navigationbar&&(this.__navigationbar__=t.navigationbar