(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;t0?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