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 lines
8.8 KiB
1 lines
8.8 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/main"],{"1b97":function(e,t,a){"use strict";var o=a("9207"),i=a.n(o);i.a},"1e80":function(e,t,a){"use strict";(function(e,t){var o=a("4ea4"),i=o(a("9523"));a("248d");var n=o(a("66fd")),r=o(a("e773")),s=o(a("b120")),c=o(a("ebdf")),l=o(a("d96f")),d=o(a("989b")),u=o(a("6e865")),g=o(a("10aa"));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("ddac"))}.bind(null,a)).catch(a.oe)})),n.default.component("pageLoading",(function(){a.e("components/pageLoading").then(function(){return resolve(a("79e4"))}.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("9362"))}.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"])},6049: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("666f"),a("989b")),c=a("a9a5"),l=(i(a("fd9f")),i(a("7635"))),d=a("94de"),u=a("d322"),g=a("8ba8"),p=a("26cb"),b=i(a("66ca")),f=i(a("ebdf")),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"])},9207:function(e,t,a){},a807:function(e,t,a){"use strict";a.r(t);var o=a("6049"),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},e773:function(e,t,a){"use strict";a.r(t);var o=a("a807");for(var i in o)["default"].indexOf(i)<0&&function(e){a.d(t,e,(function(){return o[e]}))}(i);a("1b97");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}},[["1e80","common/runtime","common/vendor"]]]); |