Files
huangjingfen/pro_v3.5.1/public/statics/mp_view/common/main.js

1 line
8.2 KiB
JavaScript
Raw Normal View History

2026-03-07 22:29:07 +08:00
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/main"],{"07b8":function(e,t,o){"use strict";o.r(t);var n=o("4546");for(var a in n)["default"].indexOf(a)<0&&function(e){o.d(t,e,(function(){return n[e]}))}(a);o("e951");var i=o("828b"),r=Object(i["a"])(n["default"],void 0,void 0,!1,null,null,null,!1,void 0,void 0);t["default"]=r.exports},"1aee":function(e,t,o){"use strict";(function(e,t){var n=o("47a9"),a=n(o("7ca3"));o("f076");var i=n(o("3240")),r=n(o("07b8")),c=n(o("d1e1")),s=n(o("1844")),u=n(o("1e56")),d=n(o("4d38")),l=n(o("4881"));function f(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function h(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?f(Object(o),!0).forEach((function(t){(0,a.default)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):f(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}e.__webpack_require_UNI_MP_PLUGIN__=o,i.default.prototype.$util=u.default,i.default.prototype.$config=d.default,i.default.prototype.$Cache=s.default,i.default.prototype.$eventHub=new i.default,i.default.prototype.$socket=new l.default,i.default.config.productionTip=!1;i.default.component("home",(function(){Promise.all([o.e("common/vendor"),o.e("components/home/index")]).then(function(){return resolve(o("0708"))}.bind(null,o)).catch(o.oe)})),i.default.component("skeleton",(function(){o.e("components/skeleton/index").then(function(){return resolve(o("537b"))}.bind(null,o)).catch(o.oe)})),i.default.component("BaseMoney",(function(){o.e("components/BaseMoney").then(function(){return resolve(o("7202"))}.bind(null,o)).catch(o.oe)})),i.default.component("BaseTag",(function(){o.e("components/BaseTag").then(function(){return resolve(o("ddf8"))}.bind(null,o)).catch(o.oe)})),i.default.component("baseDrawer",(function(){o.e("components/tui-drawer/tui-drawer").then(function(){return resolve(o("af01"))}.bind(null,o)).catch(o.oe)})),i.default.component("easyLoadimage",(function(){o.e("components/easy-loadimage/easy-loadimage").then(function(){return resolve(o("94dd"))}.bind(null,o)).catch(o.oe)})),r.default.mpType="app";var p=new i.default(h(h({},r.default),{},{store:c.default,Cache:s.default}));t(p).$mount()}).call(this,o("3223")["default"],o("df3c")["createApp"])},4546:function(e,t,o){"use strict";o.r(t);var n=o("5685"),a=o.n(n);for(var i in n)["default"].indexOf(i)<0&&function(e){o.d(t,e,(function(){return n[e]}))}(i);t["default"]=a.a},5685:function(e,t,o){"use strict";(function(e,n){var a=o("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(o("7eb4")),r=a(o("34cf")),c=a(o("ee10")),s=(o("5088"),o("4d38")),u=o("769c"),d=o("48a0"),l=o("c4d7"),f=(a(o("998d")),a(o("4891"))),h=o("360a"),p=o("92f9"),g=o("8f59"),m={globalData:{spid:0,code:0,isLogin:!1,userInfo:{},globalData:!1,windowHeight:e.getWindowInfo().windowHeight+"px",sysHeight:e.getWindowInfo().statusBarHeight},computed:(0,g.mapGetters)(["isLogin","cartNum"]),watch:{cartNum:function(t,o){this.$store.commit("indexData/setCartNum",t+""),t>0?e.setTabBarBadge({index:3,text:t>99?"99+":t+""}):e.hideTabBarRedDot({index:3})}},onShow:function(t){var o=e.getEnterOptionsSync();if(o.query.spid&&(this.$Cache.set("spread",o.query.spid),this.globalData.spid=o.query.spid,this.globalData.pid=o.query.spid,(0,l.silenceBindingSpread)(this.globalData)),o.query.scene){var n=this.$util.getUrlParams(decodeURIComponent(o.query.scene));n.spid&&(this.$Cache.set("spread",n.spid),this.globalData.spid=n.spid),(0,l.silenceBindingSpread)(this.globalData)}},onLaunch:function(t){var o=this;e.hideTabBar();this.setConfig(),this.setTheme(),this.$store.dispatch("getBasicConfig"),this.$store.dispatch("getPageFooter"),this.$store.dispatch("getActivityModal"),this.$store.getters.isLogin?this.$store.getters.isLogin&&this.getExpired()&&(this.$Cache.clear(u.LOGIN_STATUS),