main.js 8.8 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/main"],{"93a5":function(e,t,a){"use strict";a.r(t);var o=a("9c98");for(var i in o)["default"].indexOf(i)<0&&function(e){a.d(t,e,(function(){return o[e]}))}(i);a("d199");var n=a("f0c5"),r=Object(n["a"])(o["default"],void 0,void 0,!1,null,null,null,!1,void 0,void 0);t["default"]=r.exports},"9c98":function(e,t,a){"use strict";a.r(t);var o=a("b6f5"),i=a.n(o);for(var n in o)["default"].indexOf(n)<0&&function(e){a.d(t,e,(function(){return o[e]}))}(n);t["default"]=i.a},a891:function(e,t,a){"use strict";(function(e,t){var o=a("4ea4"),i=o(a("9523"));a("4789");var n=o(a("66fd")),r=o(a("93a5")),s=o(a("ff00")),c=o(a("00e9")),l=o(a("9159")),d=o(a("00a0")),u=o(a("ac0a")),g=o(a("c786"));function p(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function b(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?p(Object(a),!0).forEach((function(t){(0,i.default)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):p(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}e.__webpack_require_UNI_MP_PLUGIN__=a,n.default.prototype.$util=l.default,n.default.prototype.$config=d.default,n.default.prototype.$Cache=c.default,n.default.prototype.$eventHub=new n.default,n.default.prototype.$socket=new u.default,n.default.config.productionTip=!1;n.default.component("skeleton",(function(){a.e("components/skeleton/index").then(function(){return resolve(a("4aa5"))}.bind(null,a)).catch(a.oe)})),n.default.component("pageLoading",(function(){a.e("components/pageLoading").then(function(){return resolve(a("dba4"))}.bind(null,a)).catch(a.oe)})),n.default.component("easyLoadimage",(function(){Promise.all([a.e("common/vendor"),a.e("components/easy-loadimage/easy-loadimage")]).then(function(){return resolve(a("cad3"))}.bind(null,a)).catch(a.oe)})),r.default.mpType="app";var f=new n.default(b(b({},r.default),{},{store:s.default,Cache:c.default,i18n:g.default}));t(f).$mount()}).call(this,a("bc2e")["default"],a("543d")["createApp"])},b243:function(e,t,a){},b6f5:function(e,t,a){"use strict";(function(e,o){var i=a("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(a("2eee")),r=i(a("c973")),s=(a("86eb"),a("00a0")),c=a("4e39"),l=(i(a("5998")),i(a("69b2"))),d=a("f9f0"),u=a("5743"),g=a("d1ea"),p=a("26cb"),b=i(a("19b6")),f=i(a("00e9")),v="--view-theme: rgba(66,202,77,1);--view-theme-16: #42CA4D;--view-priceColor:#FF7600;--view-minorColor:rgba(108, 198, 94, 0.5);--view-minorColorT:rgba(66, 202, 77, 0.1);--view-bntColor:#FE960F;--view-op-ten: rgba(66,202,77, 0.1);--view-main-start:#70E038; --view-main-over:#42CA4D;--view-op-point-four: rgba(66,202,77, 0.04);--view-op-point-eight: rgba(66,202,77, 0.8);--view-linear:linear-gradient(180deg, rgba(66,202,77,0.2) 0%, rgba(255,255,255,0) 100%);",w="--view-theme: rgba(233,51,35,1);--view-theme-16: #e93323;--view-priceColor:#e93323;--view-minorColor:rgba(233, 51, 35, 0.5);--view-minorColorT:rgba(233, 51, 35, 0.1);--view-bntColor:#FE960F;--view-op-ten: rgba(233,51,35, 0.1);--view-main-start:#FF6151; --view-main-over:#e93323;--view-op-point-four: rgba(233,51,35, 0.04);--view-op-point-eight: rgba(233,51,35, 0.8);--view-linear:linear-gradient(180deg, rgba(232,58,35,0.2) 0%, rgba(255,255,255,0) 100%)",h="--view-theme: rgba(29,176,252,1);--view-theme-16:#1db0fc;--view-priceColor:#FD502F;--view-minorColor:rgba(58, 139, 236, 0.5);--view-minorColorT:rgba(9, 139, 243, 0.1);--view-bntColor:#22CAFD;--view-op-ten: rgba(29,176,252, 0.1);--view-main-start:#40D1F4; --view-main-over:#1DB0FC;--view-op-point-four: rgba(29,176,252, 0.04);--view-op-point-eight: rgba(29,176,252, 0.8);--view-linear:linear-gradient(180deg, rgba(29,176,252,0.2) 0%, rgba(255,255,255,0) 100%);",m="--view-theme: rgba(255,68,143,1);--view-theme-16:#ff448f;--view-priceColor:#FF448F;--view-minorColor:rgba(255, 68, 143, 0.5);--view-minorColorT:rgba(255, 68, 143, 0.1);--view-bntColor:#282828;--view-op-ten: rgba(255,68,143, 0.1);--view-main-start:#FF67AD; --view-main-over:#FF448F;--view-op-point-four: rgba(255,68,143, 0.04);--view-op-point-eight: rgba(255,68,143, 0.8);--view-linear:linear-gradient(180deg, rgba(255,68,143,0.2) 0%, rgba(255,255,255,0) 100%);",y="--view-theme: rgba(254,92,45,1); --view-theme-16:#FE5C2D;--view-priceColor:#FE5C2D;--view-minorColor:rgba(254, 92, 45, 0.5);--view-minorColorT:rgba(254, 92, 45, 0.1);--view-bntColor:#FDB000;--view-op-ten: rgba(254,92,45, 0.1);--view-main-start:#FF9445; --view-main-over:#FE5C2D;--view-op-point-four: rgba(254,92,45, 0.04);--view-op-point-eight: rgba(254,92,45, 0.8);--view-linear:linear-gradient(180deg, rgba(254,92,45,0.2) 0%, rgba(255,255,255,0) 100%);",S={globalData:{spid:0,code:0,isLogin:!1,userInfo:{},MyMenus:[],globalData:!1,isIframe:!1,tabbarShow:!0,windowHeight:0,locale:""},mixins:[b.default],computed:(0,p.mapGetters)(["isLogin","cartNum"]),watch:{isLogin:{deep:!0,handler:function(e,t){e||this.$store.commit("indexData/setCartNum","")}},cartNum:function(t,a){this.$store.commit("indexData/setCartNum",t+""),t>0?e.setTabBarBadge({index:Number(e.getStorageSync("FOOTER_ADDCART"))||2,text:t+""}):e.hideTabBarRedDot({index:Number(e.getStorageSync("FOOTER_ADDCART"))||2})}},onShow:function(){var t=e.getEnterOptionsSync();if(t.query.spread&&(this.$Cache.set("spread",t.query.spread),this.globalData.spid=t.query.spread,this.globalData.pid=t.query.spread,(0,d.silenceBindingSpread)(this.globalData)),t.query.spid&&(this.$Cache.set("spread",t.query.spid),this.globalData.spid=t.query.spid,this.globalData.pid=t.query.spid,(0,d.silenceBindingSpread)(this.globalData)),t.query.scene){var a=this.$util.getUrlParams(decodeURIComponent(t.query.scene));if(a.pid)this.$Cache.set("spread",a.pid),this.globalData.spid=a.pid,this.globalData.pid=a.pid;else switch(t.scene){case 1047:this.globalData.code=t.query.scene;break;case 1048:this.globalData.code=t.query.scene;break;case 1049:this.globalData.code=t.query.scene;break;case 1001:this.globalData.spid=t.query.scene;break}(0,d.silenceBindingSpread)(this.globalData)}},onLaunch:function(t){var a=this;return(0,r.default)(n.default.mark((function t(){var i,r,d,p,b;return n.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.hideTabBar(),i=a,(0,c.basicConfig)().then((function(t){e.setStorageSync("BASIC_CONFIG",t.data)})),(0,u.colorChange)("color_change").then((function(t){switch(e.setStorageSync("is_diy",t.data.is_diy),e.$emit("is_diy",t.data.is_diy),e.setStorageSync("color_status",t.data.status),t.data.status){case 1:e.setStorageSync("viewColor",h),e.$emit("ok",h,t.data.status);break;case 2:e.setStorageSync("viewColor",v),e.$emit("ok",v,t.data.status);break;case 3:e.setStorageSync("viewColor",w),e.$emit("ok",w,t.data.status);break;case 4:e.setStorageSync("viewColor",m),e.$emit("ok",m,t.data.status);break;case 5:e.setStorageSync("viewColor",y),e.$emit("ok",y,t.data.status);break;default:e.setStorageSync("viewColor",w),e.$emit("ok",w,t.data.status);break}})),(0,g.getLangVersion)().then((function(t){var o=t.data.version;o!=e.getStorageSync("LANG_VERSION")&&(0,g.getLangJson)().then((function(t){var o=Object.keys(t.data)[0];f.default.set("locale",Object.keys(t.data)[0]),a.$i18n.setLocaleMessage(o,t.data[o]),e.setStorageSync("localeJson",t.data)})),e.setStorageSync("LANG_VERSION",o)})),""!=s.HTTP_REQUEST_URL){t.next=8;break}return t.abrupt("return",!1);case 8:o.getUpdateManager(),r=o.getEnterOptionsSync(),o.canIUse("getUpdateManager")&&1154!=r.scene&&(d=o.getUpdateManager(),d.onCheckForUpdate((function(e){e.hasUpdate&&(d.onUpdateFailed((function(){return i.Tips({title:"新版本下载失败"})})),d.onUpdateReady((function(){o.showModal({title:"更新提示",content:"新版本已经下载好,是否重启当前应用?",success:function(e){e.confirm&&d.applyUpdate()}})})),d.onUpdateFailed((function(){o.showModal({title:"发现新版本",content:"请删除当前小程序,重启搜索打开..."})})))}))),e.getSystemInfo({success:function(e){i.globalData.navHeight=e.statusBarHeight*(750/e.windowWidth)+91}}),p=e.getMenuButtonBoundingClientRect(),i.globalData.navH=2*p.top+p.height/2,b=e.getSystemInfoSync().SDKVersion,l.default.compareVersion(b,"2.21.3")>=0?i.$Cache.set("MP_VERSION_ISNEW",!0):i.$Cache.set("MP_VERSION_ISNEW",!1),(0,u.getCrmebCopyRight)().then((function(t){e.setStorageSync("copyRight",t.data)})),(0,c.getSystemVersion)().then((function(t){t.data.version_code<s.SYSTEM_VERSION&&e.showModal({title:"提示",content:"请重新打包并上传小程序",success:function(e){e.confirm}})}));case 18:case"end":return t.stop()}}),t)})))()},methods:{}};t.default=S}).call(this,a("543d")["default"],a("bc2e")["default"])},d199:function(e,t,a){"use strict";var o=a("b243"),i=a.n(o);i.a}},[["a891","common/runtime","common/vendor"]]]);