12 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/main"],{0:function(e,t,n){"use strict";(function(e,t,o){var r=n(4),a=r(n(11));n(26);var c=r(n(27)),u=r(n(25)),i=r(n(37));n(41);var f=r(n(42));n(33);var l=n(164);function s(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}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}e.__webpack_require_UNI_MP_PLUGIN__=n,t.$http=l.$http,l.$http.baseUrl="https://pro.cloud.boyuantech.net/manage",l.$http.beforeRequest=function(e){e.header={Token:t.getStorageSync("Token")}},l.$http.afterRequest=function(e){if(console.log(e.errMsg),"request:fail "==e.errMsg&&(console.log(1),t.showToast({icon:"error",title:"无网络"})),2e3===e.data.code)return t.removeStorageSync("Token"),t.showToast({title:"令牌过期,请重新登录",icon:"none",duration:2e3}),t.removeStorageSync("Token"),void t.redirectTo({url:"/pages/login/login"})},t.$showMsg=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"数据请求失败!",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1500;t.showToast({title:e,duration:n,icon:"none",mask:!0})},u.default.use(f.default),u.default.config.productionTip=!1,c.default.mpType="app";var p=new u.default(d(d({},c.default),{},{store:i.default}));o(p).$mount()}).call(this,n(1)["default"],n(2)["default"],n(2)["createApp"])},27:function(e,t,n){"use strict";n.r(t);var o=n(28);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);n(34);var a,c,u,i,f=n(36),l=Object(f["default"])(o["default"],a,c,!1,null,null,null,!1,u,i);l.options.__file="App.vue",t["default"]=l.exports},28:function(e,t,n){"use strict";n.r(t);var o=n(29),r=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=r.a},29:function(e,t,n){"use strict";(function(e,o){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(30)),c=r(n(32)),u=r(n(33)),i={onLaunch:function(){var e=(0,c.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,u.default)();case 2:this.UpdateManager();case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")},methods:{UpdateManager:function(){if(e.canIUse("getUpdateManager")){var t=e.getUpdateManager();t.onCheckForUpdate((function(e){e.hasUpdate&&o.showModal({title:"更新提示",content:"检测到新版本,是否下载新版本并重启小程序?",success:function(e){e.confirm?downLoadAndUpdate(t):e.cancel&&o.showModal({title:"温馨提示~",content:"本次版本更新涉及到新的功能添加,旧版本无法正常访问的哦~",showCancel:!1,confirmText:"确定更新",success:function(e){e.confirm&&downLoadAndUpdate(t)}})}})}))}else e.showModal({title:"提示",content:"当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。"})}}};t.default=i}).call(this,n(2)["default"],n(1)["default"])},34:function(e,t,n){"use strict";n.r(t);var o=n(35),r=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=r.a},35:function(e,t,n){}},[[0,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../.sourcemap/mp-weixin/common/main.js.map
|