(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{"0de9":function(e,t,n){"use strict";function o(e){var t=Object.prototype.toString.call(e);return t.substring(8,t.length-1)}function r(){return"string"===typeof __channelId__&&__channelId__}function i(e,t){switch(o(t)){case"Function":return"function() { [native code] }";default:return t}}function a(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o1){var l=u.pop();s=u.join("---COMMA---"),0===l.indexOf(" at ")?s+=l:s+="---COMMA---"+l}else s=u[0];console[a](s)}n.r(t),n.d(t,"log",(function(){return a})),n.d(t,"default",(function(){return u}))},"229c":function(e,t,n){"use strict";n.r(t);var o=n("31f9"),r=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);t["default"]=r.a},"31f9":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{}},onReady:function(){},onLaunch:function(){},onLoad:function(){},methods:{handleMessage:function(t){if(e("log","\u539f\u59cb\u4fe1\u606f:"+t," at pages/index/index.vue:37"),e("log","\u63a5\u6536\u5230\u7684\u6d88\u606f\uff1a"+JSON.stringify(t)," at pages/index/index.vue:38"),t){var n=JSON.parse(t.detail.data);if(e("log","json\u89e3\u6790\uff1a"+JSON.stringify(n)," at pages/index/index.vue:42"),n&&n.content&&n.title&&""!=n.content&&""!=n.title)uni.createPushMessage({content:n.content,title:n.title,sound:"system",success:function(t){e("log","\u63a8\u9001\u6210\u529f",t," at pages/index/index.vue:49")},fail:function(t){e("log","\u63a8\u9001\u5931\u8d25",t," at pages/index/index.vue:52")}});else if(n&&n.type&&"file"==n.type&&n.url&&""!=n.url&&n.fileName&&""!=n.fileName&&n.token&&""!=n.token){var o=!1;try{var r=n.urlType;n.postRequest;"POST"==r&&(o=!0)}catch(l){o=!1}var i=n.url,a=n.fileName,u=n.token;if(o){var s=n.postRequest;this.downloadPostFile(i,a,u,s)}else e("log","\u79fb\u52a8\u7aef\u6587\u4ef6\u4e0b\u8f7d\u901a\u7528\u65b9\u5f0f"," at pages/index/index.vue:73"),e("log","url:"+i," at pages/index/index.vue:74"),this.downloadFile(i,a,u)}else{if(!n||!n.type||"scanCode"!=n.type)return;this.currentWebView=plus.webview.currentWebview(),e("log","66666",this.currentWebView," at pages/index/index.vue:82"),this.scancode()}}},scancode:function(){uni.scanCode({scanType:["qrCode"],success:function(t){e("log","\u6761\u7801\u7c7b\u578b\uff1a"+t.scanType," at pages/index/index.vue:115"),e("log","\u6761\u7801\u5185\u5bb9\uff1a"+t.result," at pages/index/index.vue:116"),plus.webview.getDisplayWebview()[0].evalJS("window.postJS(".concat(t.result,")"))}})},downloadFile:function(t,n,o){uni.downloadFile({url:t,header:{token:o},success:function(t){200===t.statusCode&&(e("log","res:",t," at pages/index/index.vue:139"),uni.saveFile({tempFilePath:t.tempFilePath,success:function(t){var o=t.savedFilePath,r=o.lastIndexOf("/"),i=n.lastIndexOf("."),a=n.slice(0,i)+Date.now()+n.slice(i,n.length),u=o.slice(0,r+1)+a;e("log","download:"+o," at pages/index/index.vue:150"),e("log","\u4fee\u6539\u4e4b\u540e\u7684\u6587\u4ef6\u8def\u5f84\uff1a"+u," at pages/index/index.vue:151"),plus.io.resolveLocalFileSystemURL(o,(function(t){t.getParent((function(n){t.moveTo(n,"/"+a,(function(t){e("log","\u6587\u4ef6\u540d\u79f0\u66ff\u6362\u5b8c\u6210"," at pages/index/index.vue:158")}))}))})),setTimeout((function(){uni.openDocument({filePath:u,success:function(){e("log","\u6253\u5f00\u6210\u529f"," at pages/index/index.vue:167")},fail:function(){e("log","\u6253\u5f00\u5931\u8d25"," at pages/index/index.vue:170")}})}),1e3)}}))},fail:function(e){uni.showToast({icon:"none",mask:!0,title:"\u5931\u8d25\u8bf7\u91cd\u65b0\u4e0b\u8f7d"})}})},downloadPostFile:function(t,n,o,r){var i=n.lastIndexOf("."),a="_doc/uniapp_save/"+n.slice(0,i)+Date.now()+n.slice(i,n.length);e("log","\u6587\u4ef6\u8def\u5f84:"+a," at pages/index/index.vue:192");var u=plus.downloader.createDownload(t,{filename:a,method:"POST",data:r},(function(t,n){e("log","d====>",t," at pages/index/index.vue:199"),e("log","status====>",n," at pages/index/index.vue:200"),200==n?plus.runtime.openFile(t.filename):(plus.downloader.clear(),reject({data:t,status:n}))}));u.setRequestHeader("token",o),u.setRequestHeader("Content-Type","application/json"),u.start()}}};t.default=n}).call(this,n("0de9")["default"])},"476e":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){}));var o=function(){var e=this.$createElement,t=this._self._c||e;return t("view",[t("web-view",{attrs:{id:"myWebview",_i:1},on:{message:this.handleMessage}})])},r=[]},"4ea4":function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports["default"]=e.exports},"5c9e":function(e,t,n){"use strict";n.r(t);var o=n("d543"),r=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);t["default"]=r.a},7037:function(e,t){function n(t){return e.exports=n="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.exports.__esModule=!0,e.exports["default"]=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"75b5":function(e,t,n){"use strict";n.r(t);var o=n("5c9e");for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var i=n("f0c5"),a=Object(i["a"])(o["default"],void 0,void 0,!1,null,null,null,!1,void 0,void 0);t["default"]=a.exports},8273:function(e,t,n){if("undefined"===typeof Promise||Promise.prototype.finally||(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}))}))}),"undefined"!==typeof uni&&uni&&uni.requireGlobal){var o=uni.requireGlobal();ArrayBuffer=o.ArrayBuffer,Int8Array=o.Int8Array,Uint8Array=o.Uint8Array,Uint8ClampedArray=o.Uint8ClampedArray,Int16Array=o.Int16Array,Uint16Array=o.Uint16Array,Int32Array=o.Int32Array,Uint32Array=o.Uint32Array,Float32Array=o.Float32Array,Float64Array=o.Float64Array,BigInt64Array=o.BigInt64Array,BigUint64Array=o.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),__definePage("pages/index/index",(function(){return Vue.extend(n("e712").default)}))},"8bbf":function(e,t){e.exports=Vue},9523:function(e,t,n){var o=n("a395");e.exports=function(e,t,n){return t=o(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports["default"]=e.exports},a395:function(e,t,n){var o=n("7037")["default"],r=n("e50d");e.exports=function(e){var t=r(e,"string");return"symbol"===o(t)?t:String(t)},e.exports.__esModule=!0,e.exports["default"]=e.exports},a5aa:function(e,t,n){var o=n("7037");uni.addInterceptor({returnValue:function(e){return!e||"object"!==o(e)&&"function"!==typeof e||"function"!==typeof e.then?e:new Promise((function(t,n){e.then((function(e){return e[0]?n(e[0]):t(e[1])}))}))}})},b932:function(e,t){uni.invokePushCallback({type:"enabled",offline:!0}),Promise.resolve().then((function(){(function(){"undefined"!==typeof plus&&plus.push&&plus.globalEvent.addEventListener("newPath",(function(e){var t=e.path;if(t){var n=getCurrentPages(),o=n[n.length-1];o&&o.$page&&o.$page.fullPath===t||uni.navigateTo({url:t,fail:function(e){e.errMsg.indexOf("tabbar")>-1?uni.switchTab({url:t,fail:function(e){console.error(e.errMsg)}}):console.error(e.errMsg)}})}}))})()}))},d543:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={onLoad:function(){},onLaunch:function(){e("log","App Launch"," at App.vue:10")},onShow:function(){e("log","App Show"," at App.vue:13")},onHide:function(){e("log","App Hide"," at App.vue:16")}};t.default=n}).call(this,n("0de9")["default"])},e50d:function(e,t,n){var o=n("7037")["default"];e.exports=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},e712:function(e,t,n){"use strict";n.r(t);var o=n("476e"),r=n("229c");for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);var a=n("f0c5"),u=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=u.exports},f0c5:function(e,t,n){"use strict";function o(e,t,n,o,r,i,a,u,s,l){var c,f="function"===typeof e?e.options:e;if(s){f.components||(f.components={});var d=Object.prototype.hasOwnProperty;for(var p in s)d.call(s,p)&&!d.call(f.components,p)&&(f.components[p]=s[p])}if(l&&("function"===typeof l.beforeCreate&&(l.beforeCreate=[l.beforeCreate]),(l.beforeCreate||(l.beforeCreate=[])).unshift((function(){this[l.__module]=this})),(f.mixins||(f.mixins=[])).push(l)),t&&(f.render=t,f.staticRenderFns=n,f._compiled=!0),o&&(f.functional=!0),i&&(f._scopeId="data-v-"+i),a?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},f._ssrRegister=c):r&&(c=u?function(){r.call(this,this.$root.$options.shadowRoot)}:r),c)if(f.functional){f._injectStyles=c;var v=f.render;f.render=function(e,t){return c.call(t),v(e,t)}}else{var y=f.beforeCreate;f.beforeCreate=y?[].concat(y,c):[c]}return{exports:e,options:f}}n.d(t,"a",(function(){return o}))},f484:function(e,t,n){"use strict";var o=n("4ea4"),r=o(n("9523"));n("8273"),n("b932");var i=o(n("75b5")),a=o(n("8bbf"));function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}n("a5aa"),a.default.config.productionTip=!1,i.default.mpType="app";var s=new a.default(function(e){for(var t=1;t