公司小程序
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
3.8 KiB

3 years ago
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/main"],{"02f9":function(e,t,a){"use strict";a.r(t);var n=a("2e94"),o=a.n(n);for(var r in n)"default"!==r&&function(e){a.d(t,e,(function(){return n[e]}))}(r);t["default"]=o.a},"183a":function(e,t,a){"use strict";(function(e){a("d6ad");var t=i(a("66fd")),n=i(a("7206")),o=i(a("c598")),r=i(a("4457")),u=i(a("3b85")),l=i(a("2a3d")),c=i(a("1a14")),f=i(a("6b66"));function i(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function s(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?d(Object(a),!0).forEach((function(t){p(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):d(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function p(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}wx.__webpack_require_UNI_MP_PLUGIN__=a,t.default.prototype.$store=o.default;var g=new l.default;t.default.prototype.$fire=g,t.default.prototype.$Define=c.default,t.default.prototype.$utils=f.default,t.default.config.productionTip=!1,n.default.mpType="app",t.default.use(r.default);var h=a("5b40");t.default.mixin(h),t.default.mixin(u.default);var b=new t.default(s({store:o.default,fire:g},n.default));a("76c2")(b),e(b).$mount()}).call(this,a("543d")["createApp"])},"2e94":function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=c(a("1a14")),o=c(a("c963")),r=c(a("9f1b")),u=c(a("cfe1")),l=c(a("0145"));function c(e){return e&&e.__esModule?e:{default:e}}var f=new l.default,i={onLaunch:function(){var t=this;e.addInterceptor("request",{invoke:function(t){t.url=n.default.BaseUrl+t.url;var a=e.getStorageSync(n.default.StoreKeys.WeChatLoginToken);t.header["content-type"]="application/json",t.header["outsourcing.partner.userapp.token"]=a},success:function(a){var n=a.data.code,r=a.data.msg;r&&""!=r&&0!=n&&t.showToast(r),0!=n&&401==a.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 a=e.getUpdateManager();a.onCheckForUpdate((function(t){console.log(t),t.hasUpdate&&a.onUpdateReady((function(t){e.showModal({title:"更新提示",content:"新版本已经准备好,是否重启应用?",success:function(e){e.confirm&&a.applyUpdate()}})}))}))},onShow:function(){},onHide:function(){},globalData:{Define:n.default,Player:o.default,mainPageData:r.default,agreementData:f,customermanager:u.default,isNeedRefreshWallet:!1,showingSkipData:null,editingCustomer:null},methods:{LoadPlayerInfoFromStore:function(){for(var t=n.default.StoreKeys,a=[t.WeChatLoginToken,t.WeChatGender,t.WeChatHeadUrl,t.WeChatNickName],r=0;r<a.length;r++){var u=a[r],l=e.getStorageSync(u);l&&(console.log("从缓存中加载到了属性:",u,l),o.default[u]=l)}var c=o.default.user_token;c&&""!=c&&this.$utils.loginWithToken(c,o.default)},showToast:function(t){e.$u.sleep(500).then((function(){e.$u.toast(t)}))}}};t.default=i}).call(this,a("543d")["default"])},7206:function(e,t,a){"use strict";a.r(t);var n=a("02f9");for(var o in n)"default"!==o&&function(e){a.d(t,e,(function(){return n[e]}))}(o);a("c1c4");var r,u,l,c,f=a("f0c5"),i=Object(f["a"])(n["default"],r,u,!1,null,null,null,!1,l,c);t["default"]=i.exports},c1c4:function(e,t,a){"use strict";var n=a("c46a"),o=a.n(n);o.a},c46a:function(e,t,a){}},[["183a","common/runtime","common/vendor"]]]);