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.
2 lines
3.8 KiB
2 lines
3.8 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/main"],{10:function(e,t,n){"use strict";n.r(t);var a=n(11),o=n.n(a);for(var r in a)"default"!==r&&function(e){n.d(t,e,(function(){return a[e]}))}(r);t["default"]=o.a},11:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(69)),o=i(n(77)),r=i(n(78)),u=i(n(82)),l=i(n(6));function i(e){return e&&e.__esModule?e:{default:e}}var f=new l.default,c={onLaunch:function(){var t=this;e.addInterceptor("request",{invoke:function(t){t.url=a.default.BaseUrl+t.url;var n=e.getStorageSync(a.default.StoreKeys.WeChatLoginToken);t.header["content-type"]="application/json",t.header["outsourcing.partner.userapp.token"]=n},success:function(n){var a=n.data.code,r=n.data.msg;r&&""!=r&&0!=a&&t.showToast(r),0!=a&&401==n.statusCode&&(o.default.clear(),e.clearStorageSync(),e.navigateTo({url:"/pages/WxLogin/WxLogin"}))},fail:function(e){console.log("interceptor-fail",e),t.showToast("网络出现错误,请稍后再试")},complete:function(e){}}),this.LoadPlayerInfoFromStore(o.default),r.default.getMainPageData();var n=e.getUpdateManager();n.onCheckForUpdate((function(t){console.log(t),t.hasUpdate&&n.onUpdateReady((function(t){e.showModal({title:"更新提示",content:"新版本已经准备好,是否重启应用?",success:function(e){e.confirm&&n.applyUpdate()}})}))}))},onShow:function(){},onHide:function(){},globalData:{Define:a.default,Player:o.default,mainPageData:r.default,agreementData:f,customermanager:u.default,isNeedRefreshWallet:!1,showingSkipData:null,editingCustomer:null},methods:{LoadPlayerInfoFromStore:function(){for(var t=a.default.StoreKeys,n=[t.WeChatLoginToken,t.WeChatGender,t.WeChatHeadUrl,t.WeChatNickName],r=0;r<n.length;r++){var u=n[r],l=e.getStorageSync(u);l&&(console.log("从缓存中加载到了属性:",u,l),o.default[u]=l)}var i=o.default.user_token;i&&""!=i&&this.$utils.loginWithToken(i,o.default)},showToast:function(t){e.$u.sleep(500).then((function(){e.$u.toast(t)}))}}};t.default=c}).call(this,n(0)["default"])},12:function(e,t,n){},74:function(e,t,n){"use strict";(function(e){n(3);var t=c(n(2)),a=c(n(76)),o=c(n(85)),r=c(n(87)),u=c(n(204)),l=c(n(205)),i=c(n(69)),f=c(n(73));function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}wx.__webpack_require_UNI_MP_PLUGIN__=n,t.default.prototype.$store=o.default;var g=new l.default;t.default.prototype.$fire=g,t.default.prototype.$Define=i.default,t.default.prototype.$utils=f.default,t.default.config.productionTip=!1,a.default.mpType="app",t.default.use(r.default);var h=n(206);t.default.mixin(h),t.default.mixin(u.default);var v=new t.default(s({store:o.default,fire:g},a.default));n(207)(v),e(v).$mount()}).call(this,n(0)["createApp"])},76:function(e,t,n){"use strict";n.r(t);var a=n(10);for(var o in a)"default"!==o&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n(84);var r,u,l,i,f=n(1),c=Object(f["a"])(a["default"],r,u,!1,null,null,null,!1,l,i);c.options.__file="App.vue",t["default"]=c.exports},84:function(e,t,n){"use strict";var a=n(12),o=n.n(a);o.a}},[[74,"common/runtime","common/vendor"]]]);
|
|
//# sourceMappingURL=../../.sourcemap/mp-weixin/common/main.js.map
|