!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=42)}([function(e,t,n){"use strict";function r(e,t,n,r,a,o,i,s){var u,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),i?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},c._ssrRegister=u):a&&(u=s?function(){a.call(this,this.$root.$options.shadowRoot)}:a),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:c}}n.d(t,"a",function(){return r})},function(e,t){e.exports={}},function(e,t,n){"use strict";n.r(t);var r=n(3),a=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,function(){return r[e]})}(o);t.default=a.a},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{}},onLoad:function(t){var n=this,r=t.from,a=t.callback,o=t.type,i=t.data;this.__from=r,this.__callback=a,this.__type=o,this.__page=e.webview.currentWebview().id;try{this.data=i?JSON.parse(decodeURIComponent(i)):{}}catch(e){this.data=null}e.key.addEventListener("backbutton",function(){"function"==typeof n.onClose?n.onClose():e.webview.currentWebview().close("auto")}),weex.requireModule("globalEvent").addEventListener("plusMessage",function(e){var t=e.data.__message;t&&n.__onMessageCallback&&n.__onMessageCallback(t.data)})},methods:{postMessage:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={__message:{__page:this.__page,data:t,keep:n}};if("nvue"===this.__type)e.webview.postMessageToUniNView(r,this.__from);else{var a=e.webview.getWebviewById(this.__from);a&&a.evalJS("__plusMessage&&__plusMessage(".concat(JSON.stringify({data:r}),")"))}},onMessage:function(e){this.__onMessageCallback=e}}};t.default=n}).call(this,n(5).weexPlus)},function(e,t,n){"use strict";var r=function(){var e=this.$createElement;return(this._self._c||e)("view")},a=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a})},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.weexPlus=t.default=void 0,r="function"==typeof getUni?getUni:function(){var e=function(e){return"function"==typeof e},t=/^\$|^on|^create|Sync$|Manager$|^pause/,n=["os","getCurrentSubNVue","getSubNVueById","stopRecord","stopVoice","stopBackgroundAudio","stopPullDownRefresh","hideKeyboard","hideToast","hideLoading","showNavigationBarLoading","hideNavigationBarLoading","canIUse","navigateBack","closeSocket","pageScrollTo","drawCanvas"],r=function(e){return!(t.test(e)&&"createBLEConnection"!==e||~n.indexOf(e))},o=function(t){return function(){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{};return e(o.success)||e(o.fail)||e(o.complete)?t.apply(void 0,[o].concat(r)):new Promise(function(e,n){t.apply(void 0,[Object.assign({},o,{success:e,fail:n})].concat(r)),Promise.prototype.finally=function(e){var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})}}).then(function(e){return[null,e]}).catch(function(e){return[e]})}},i=[],s=void 0;function u(e){i.forEach(function(t){return t({origin:s,data:e})})}var c=a.webview.currentWebview().id,l=new BroadcastChannel("UNI-APP-SUBNVUE");function f(e){e.$processed=!0;var t=a.webview.currentWebview().id===e.id,n="uniNView"===e.__uniapp_origin_type&&e.__uniapp_origin_id,r=e.id;if(e.postMessage=function(e){n?l.postMessage({data:e,to:t?n:r}):b({type:"UniAppSubNVue",data:e})},e.onMessage=function(e){i.push(e)},e.__uniapp_mask_id){s=e.__uniapp_host;var o=e.__uniapp_mask,u=a.webview.getWebviewById(e.__uniapp_mask_id);u=u.parent()||u;var c=e.show,f=e.hide,d=e.close,p=function(){u.setStyle({mask:"none"})};e.show=function(){u.setStyle({mask:o});for(var t=arguments.length,n=Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:E,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/x-www-form-urlencoded";return"object"===(void 0===e?"undefined":j(e))?"POST"===t.toUpperCase()&&"application/json"===n.toLowerCase()?JSON.stringify(e):Object.keys(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&"):e},U=weex.requireModule("plusstorage"),L="__TYPE",F=weex.requireModule("clipboard"),R=function(){if("function"==typeof getUniEmitter)return getUniEmitter;var e={$on:function(){console.warn("uni.$on failed")},$off:function(){console.warn("uni.$off failed")},$once:function(){console.warn("uni.$once failed")},$emit:function(){console.warn("uni.$emit failed")}};return function(){return e}}();function q(e,t,n){return e[t].apply(e,n)}var W=Object.freeze({loadFontFace:function(t){var n=t.family,r=t.source,a=(t.desc,t.success),o=(t.fail,t.complete);O.addRule("fontFace",{fontFamily:n,src:r.replace(/"/g,"'")});var i={errMsg:"loadFontFace:ok",status:"loaded"};e(a)&&a(i),e(o)&&o(i)},ready:P,request:function(t){var n=t.url,r=t.data,a=t.header,o=t.method,i=void 0===o?"GET":o,s=t.dataType,u=void 0===s?"json":s,c=(t.responseType,t.success),l=t.fail,f=t.complete,d=!1,p=!1,v={};if(a)for(var h in a)p||"content-type"!==h.toLowerCase()?v[h]=a[h]:(p=!0,v["Content-Type"]=a[h]);return i===E&&r&&(n=n+(~n.indexOf("?")?"&"===n.substr(-1)||"?"===n.substr(-1)?"":"&":"?")+D(r)),I.fetch({url:n,method:i,headers:v,type:"json"===u?"json":"text",body:i!==E?D(r,i,v["Content-Type"]):""},function(t){var n=t.status,r=(t.ok,t.statusText,t.data),a=t.headers,o={};!n||-1===n||d?(o.errMsg="request:fail",e(l)&&l(o)):(o.data=r,o.statusCode=n,o.header=a,e(c)&&c(o)),e(f)&&f(o)}),{abort:function(){d=!0}}},getStorage:function(t){var n=t.key,r=(t.data,t.success),a=t.fail,o=t.complete;U.getItem(n+L,function(t){if("success"===t.result){var i=t.data;U.getItem(n,function(t){if("success"===t.result){var n=t.data;i&&n?("String"!==i&&(n=JSON.parse(n)),e(r)&&r({errMsg:"getStorage:ok",data:n})):(t.errMsg="setStorage:fail",e(a)&&a(t))}else t.errMsg="setStorage:fail",e(a)&&a(t);e(o)&&o(t)})}else t.errMsg="setStorage:fail",e(a)&&a(t),e(o)&&o(t)})},setStorage:function(t){var n=t.key,r=t.data,a=t.success,o=t.fail,i=t.complete,s="String";"object"===(void 0===r?"undefined":j(r))&&(s="Object",r=JSON.stringify(r)),U.setItem(n,r,function(t){"success"===t.result?U.setItem(n+L,s,function(t){"success"===t.result?e(a)&&a({errMsg:"setStorage:ok"}):(t.errMsg="setStorage:fail",e(o)&&o(t))}):(t.errMsg="setStorage:fail",e(o)&&o(t)),e(i)&&i(t)})},removeStorage:function(t){var n=t.key,r=(t.data,t.success),a=t.fail,o=t.complete;U.removeItem(n,function(t){"success"===t.result?e(r)&&r({errMsg:"removeStorage:ok"}):(t.errMsg="removeStorage:fail",e(a)&&a(t)),e(o)&&o(t)}),U.removeItem(n+L)},clearStorage:function(e){e.key,e.data,e.success,e.fail,e.complete},getClipboardData:function(t){var n=t.success,r=(t.fail,t.complete);F.getString(function(t){var a={errMsg:"getClipboardData:ok",data:t.data};e(n)&&n(a),e(r)&&r(a)})},setClipboardData:function(t){var n=t.data,r=t.success,a=(t.fail,t.complete),o={errMsg:"setClipboardData:ok"};F.setString(n),e(r)&&r(o),e(a)&&a(o)},onSubNVueMessage:u,getSubNVueById:d,getCurrentSubNVue:function(){return d(a.webview.currentWebview().id)},$on:function(){return q(R(),"$on",[].concat(Array.prototype.slice.call(arguments)))},$off:function(){return q(R(),"$off",[].concat(Array.prototype.slice.call(arguments)))},$once:function(){return q(R(),"$once",[].concat(Array.prototype.slice.call(arguments)))},$emit:function(){return q(R(),"$emit",[].concat(Array.prototype.slice.call(arguments)))}}),Y={os:{nvue:!0}},J={};return"undefined"!=typeof Proxy?J=new Proxy({},{get:function(e,t){if("os"===t)return{nvue:!0};if("postMessage"===t)return b;if("requireNativePlugin"===t)return T;if("onNavigationBarButtonTap"===t)return M;if("onNavigationBarSearchInputChanged"===t)return C;if("onNavigationBarSearchInputConfirmed"===t)return $;if("onNavigationBarSearchInputClicked"===t)return V;var n=W[t];return n||(n=w(t)),r(t)?o(n):n}}):(Object.keys(Y).forEach(function(e){J[e]=Y[e]}),J.postMessage=b,J.requireNativePlugin=T,J.onNavigationBarButtonTap=M,J.onNavigationBarSearchInputChanged=C,J.onNavigationBarSearchInputConfirmed=$,J.onNavigationBarSearchInputClicked=V,Object.keys({uploadFile:!0,downloadFile:!0,chooseImage:!0,previewImage:!0,getImageInfo:!0,saveImageToPhotosAlbum:!0,chooseVideo:!0,saveVideoToPhotosAlbum:!0,saveFile:!0,getSavedFileList:!0,getSavedFileInfo:!0,removeSavedFile:!0,openDocument:!0,setStorage:!0,getStorage:!0,getStorageInfo:!0,removeStorage:!0,clearStorage:!0,getLocation:!0,chooseLocation:!0,openLocation:!0,getSystemInfo:!0,getNetworkType:!0,makePhoneCall:!0,scanCode:!0,setScreenBrightness:!0,getScreenBrightness:!0,setKeepScreenOn:!0,vibrateLong:!0,vibrateShort:!0,addPhoneContact:!0,showToast:!0,showLoading:!0,hideToast:!0,hideLoading:!0,showModal:!0,showActionSheet:!0,setNavigationBarTitle:!0,setNavigationBarColor:!0,navigateTo:!0,redirectTo:!0,reLaunch:!0,switchTab:!0,navigateBack:!0,getProvider:!0,login:!0,getUserInfo:!0,share:!0,requestPayment:!0,subscribePush:!0,unsubscribePush:!0,onPush:!0,offPush:!0}).forEach(function(e){var t=W[e];t||(t=w(e)),r(e)?J[e]=o(t):J[e]=t})),J};var a=new WeexPlus(weex);t.weexPlus=a;var o=r(weex,a,BroadcastChannel);t.default=o},function(e,t,n){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(n(7).default,Vue.prototype.__$appStyle__)},function(e,t,n){"use strict";n.r(t);var r=n(1),a=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,function(){return r[e]})}(o);t.default=a.a},function(e,t,n){"use strict";n.r(t);var r=n(4),a=n(2);for(var o in a)"default"!==o&&function(e){n.d(t,e,function(){return a[e]})}(o);var i=n(0);var s=Object(i.a)(a.default,r.a,r.b,!1,null,null,"690d182e");(function(){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style)}).call(s),t.default=s.exports},,,,function(e,t,n){"use strict";var r=n(29),a=n(22),o=n(0);var i=Object(o.a)(a.default,r.a,r.b,!1,null,null,"e92c5e7a");(function(){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(n(38).default,this.options.style):Object.assign(this.options.style,n(38).default)}).call(i),t.default=i.exports},,,,,,,,,,function(e,t,n){"use strict";var r=n(23),a=n.n(r);t.default=a.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(43));function a(e){return e&&e.__esModule?e:{default:e}}var o={mixins:[a(n(8)).default],components:{picker:r.default},data:function(){return{range:[],rangeKey:"",value:0,mode:"selector",fields:"day",start:"",end:"",disabled:!1,visible:!1}},onLoad:function(){var e=this;null===this.data?this.postMessage({event:"created"},!0):this.showPicker(this.data),this.onMessage(function(t){e.showPicker(t)})},onReady:function(){var e=this;this.$nextTick(function(){e.visible=!0})},methods:{showPicker:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.column;for(var n in e)"column"!==n&&("number"==typeof t?this.$set(this.$data[n],t,e[n]):this.$data[n]=e[n])},close:function(e){var t=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).value,r=void 0===n?-1:n;this.visible=!1,setTimeout(function(){t.postMessage({event:e,value:r})},210)},onClose:function(){this.close("cancel")},columnchange:function(e){var t=e.column,n=e.value;this.$set(this.value,t,n),this.postMessage({event:"columnchange",column:t,value:n},!0)}}};t.default=o},function(e,t,n){"use strict";n.r(t);var r=n(25),a=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,function(){return r[e]})}(o);t.default=a.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(44);function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0&&(n=t.map(function(){return 0})),n},endArray:function(){var e=this.mode===l?"-":":",t=this.mode===l?this.dateArray:this.timeArray,n=this.end.split(e).map(function(e,n){return t[n].indexOf(e)});return n.indexOf(-1)>=0&&(n=t.map(function(e){return e.length-1})),n},units:function(){switch(this.mode){case l:return["年","月","日"];case c:return["时","分"];default:return[]}}},watch:{valueArray:function(e){var t=this;if(this.mode===c||this.mode===l){var n=this.mode===c?this._getTimeValue:this._getDateValue,r=this.valueArray,a=this.startArray,o=this.endArray;if(this.mode===l){var i=this.dateArray,s=i[2].length,f=i[2][r[2]],d=new Date("".concat(i[0][r[0]],"/").concat(i[1][r[1]],"/").concat(f)).getDate();d<(f=Number(f))&&(r[2]-=d+s-f)}n(r)n(o)&&this._cloneArray(r,o)}e.forEach(function(e,n){e!==t.oldValueArray[n]&&(t.oldValueArray[n]=e,t.mode===u&&t.$emit("columnchange",{column:n,value:e}))})},visible:function(e){var t=this;e?this.$nextTick(function(){i.transition(t.$refs.picker,{styles:{transform:"translateY(0)"},duration:200})}):i.transition(this.$refs.picker,{styles:{transform:"translateY(283px)"},duration:200})}},created:function(){o=weex.config.env.deviceWidth/weex.config.scale/16/this.rangeArray.length,this._createTime(),this._createDate(),this._setValue(),this.$watch("value",this._setValue),this.$watch("mode",this._setValue)},methods:{getTexts:function(e,t){var n=this;return e.map(function(e){var r=("object"==typeof e?e[n.rangeKey]||"":e)+(n.units[t]||"");if(o>0&&r.length>o)for(var a=0,i=0;i127||94===s?1:.5)>=o)return r.slice(0,i+1)+"..."}return r}).join("\n")},_createTime:function(){var e=[],t=[];e.splice(0,e.length);for(var n=0;n<24;n++)e.push((n<10?"0":"")+n);t.splice(0,t.length);for(var r=0;r<60;r++)t.push((r<10?"0":"")+r);this.timeArray.push(e,t)},_createDate:function(){for(var e=[],t=(new Date).getFullYear(),n=t-61,r=t+61;n<=r;n++)e.push(String(n));for(var a=[],o=1;o<=12;o++)a.push((o<10?"0":"")+o);for(var i=[],s=1;s<=31;s++)i.push((s<10?"0":"")+s);this.dateArray.push(e,a,i)},_getTimeValue:function(e){return 60*e[0]+e[1]},_getDateValue:function(e){return 366*e[0]+31*(e[1]||0)+(e[2]||0)},_cloneArray:function(e,t){for(var n=0;n9?e:"0"+e}}]);