(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/main"],{"22be":function(t,e,a){"use strict";var n=a("4154"),o=a.n(n);o.a},4154:function(t,e,a){},6311:function(t,e,a){"use strict";a.r(e);var n=a("aa32"),o=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=o.a},"95c0":function(t,e,a){"use strict";a.r(e);var n=a("6311");for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("22be");var r=a("828b"),i=Object(r["a"])(n["default"],void 0,void 0,!1,null,null,null,!1,void 0,void 0);e["default"]=i.exports},aa32:function(t,e,a){"use strict";(function(t){var n=a("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(a("74c1")),r=(n(a("fd32")),{onLaunch:function(t){console.log("App Launch"),this.updateManager();this.onStartupScene(t.query),this.getNav()},onShow:function(){},onHide:function(){},methods:{isFirstEnter:function(){var e=t.getStorageSync("firstEnter");t.getSystemInfo({success:function(a){console.log("firstEnter="+e),"ios"!=a.platform||e||(console.log("---------------"),t.navigateTo({url:"/pages/privacy/privacy"}))}})},updateManager:function(){var e=t.getUpdateManager();e.onCheckForUpdate((function(a){a.hasUpdate&&e.onUpdateReady((function(a){t.showModal({title:"更新提示",content:"新版本已经准备好,即将重启应用",showCancel:!1,success:function(t){t.confirm&&e.applyUpdate()}})}))})),e.onUpdateFailed((function(e){t.showModal({title:"更新提示",content:"检查到有新版本,但下载失败,请检查网络设置",showCancel:!1})}))},onStartupScene:function(e){var a=o.default.getSceneData(e),n=e.referee_id;n>0&&(t.getStorageSync("referee_id")||t.setStorageSync("referee_id",n));var r=a.uid;r>0&&(t.getStorageSync("referee_id")||t.setStorageSync("referee_id",r))},getNav:function(){var e=this;t.request({url:this.config.app_url+"/index.php/api/index/nav",data:{app_id:this.config.app_id},success:function(a){var n=a.data.data.vars.data,o=a.data.data.theme.theme;e.$store.commit("changePoints",a.data.data.points_name),e.$store.commit("changeTheme",o),t.setStorageSync("TabBar",n),t.setStorageSync("theme",o)}})},updateWgt:function(e){t.showModal({title:"版本更新",content:"检查到有新版本,请点击更新",confirmText:"更新",showCancel:!1,success:function(a){if(a.confirm){var n=plus.downloader.createDownload(e,{},(function(e,a){t.showToast({title:"下载完成",mask:!1,duration:1e3}),200==a?plus.runtime.install(e.filename,{force:!0},(function(){console.log("install success..."),plus.nativeUI.alert("已更新至最新版本,确定后将重启应用",(function(){plus.runtime.restart()}),"更新提示","确定")}),(function(a){console.log(a),console.log(e.filename),t.showToast({title:"安装失败-01",mask:!1,duration:1500})})):t.showToast({title:"更新失败-02",mask:!1,duration:1500})}));try{n.start();var o=0,r=plus.nativeUI.showWaiting("正在下载");n.addEventListener("statechanged",(function(t,e){switch(t.state){case 1:r.setTitle("正在下载");break;case 2:r.setTitle("已连接到服务器");break;case 3:o=parseInt(parseFloat(t.downloadedSize)/parseFloat(t.totalSize)*100),r.setTitle(" 正在下载"+o+"% ");break;case 4:plus.nativeUI.closeWaiting();break}}))}catch(i){plus.nativeUI.closeWaiting(),t.showToast({title:"更新失败-03",mask:!1,duration:1500})}}}})}}});e.default=r}).call(this,a("df3c")["default"])},aaec:function(t,e,a){"use strict";(function(t,e,n){var o=a("47a9"),r=o(a("3b2d")),i=o(a("7ca3"));a("7d57");var c=o(a("3240")),s=o(a("95c0")),u=(o(a("223c")),o(a("74c1"))),f=o(a("fd32")),p=o(a("ef12")),d=a("ff6e"),l=o(a("0554"));function g(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}t.__webpack_require_UNI_MP_PLUGIN__=a,c.default.prototype.$store=l.default;c.default.component("header-bar",(function(){a.e("components/header").then(function(){return resolve(a("ba77"))}.bind(null,a)).catch(a.oe)}));c.default.component("request-loading",(function(){a.e("components/jjjloading").then(function(){return resolve(a("66f7"))}.bind(null,a)).catch(a.oe)}));c.default.component("tabBar",(function(){a.e("components/tabbar/footTabbar").then(function(){return resolve(a("31b4"))}.bind(null,a)).catch(a.oe)})),c.default.prototype.footTabberData={active:"home"},c.default.prototype.$fire=new p.default,c.default.config.productionTip=!1,s.default.mpType="app",c.default.prototype.config=f.default;var h=new c.default(function(t){for(var e=1;er)return 1;if(o=0?t.requestSubscribeMessage({tmplIds:e,success:function(t){},fail:function(t){},complete:function(t){a()}}):a()},c.default.prototype.isWeixin=function(){var t=navigator.userAgent.toLowerCase();return"micromessenger"==t.match(/MicroMessenger/i)},c.default.prototype.getVisitcode=function(){var t=n.getStorageSync("visitcode");return t||(t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0,a="x"==t?e:3&e|8;return a.toString(16)})),t=t.replace(/-/g,""),n.setStorageSync("visitcode",t)),t},c.default.prototype.topBarTop=function(){return n.getMenuButtonBoundingClientRect().top},c.default.prototype.topBarHeight=function(){return n.getMenuButtonBoundingClientRect().height},c.default.prototype.yulan=function(t,e){var a=[];Array.isArray(t)?t[0].file_path?t.forEach((function(t,e){a.push(t.file_path)})):a=t:a=[t];var o=1*e;n.previewImage({urls:a,current:o,indicator:"default"})},c.default.prototype.theme=function(){return"theme"+this.$store.state.theme||!1},c.default.prototype.footTab=function(){return this.$store.state.footTab||""},c.default.prototype.subPrice=function(t,e){var a=String(t);if(1==e)return a.substring(0,a.indexOf("."));if(2==e){var n=a.indexOf(".");return a.slice(n+1,n+3)}},c.default.prototype.convertTwo=function(t){var e="";return e=t<10?"0"+t:t,e},c.default.prototype.getTabBarLinks=function(){var t=this,e=n.getStorageSync("TabBar"),a=n.getStorageSync("theme");null!=e&&""!=e?this.setTabBarLinks(e,a):n.request({url:this.config.app_url+"/index.php/api/index/nav",data:{app_id:this.config.app_id},success:function(e){var a=e.data.data.vars.data,o=e.data.data.theme.theme;t.$store.commit("changeTheme",o),n.setStorageSync("TabBar",a),n.setStorageSync("theme",o),t.setTabBarLinks(a,o)}})},c.default.prototype.setTabBarLinks=function(t,e){if("0"==t.is_auto){n.showTabBar(),t.list=[];n.setTabBarStyle({color:"#333333",selectedColor:["#ff5704","#19ad57","#ffcc00","#1774ff","#e4e4e4","#c8ba97","#623ceb"][e]}),n.setTabBarItem({index:0,text:"首页",iconPath:"static/tabbar/home.png",selectedIconPath:"static/tabbar/home_"+e+".png"}),n.setTabBarItem({index:1,text:"分类",iconPath:"static/tabbar/category.png",selectedIconPath:"static/tabbar/category_"+e+".png"}),n.setTabBarItem({index:2,text:"店铺",iconPath:"static/tabbar/shop.png",selectedIconPath:"static/tabbar/shop_"+e+".png"}),n.setTabBarItem({index:3,text:"购物车",iconPath:"static/tabbar/cart.png",selectedIconPath:"static/tabbar/cart_"+e+".png"}),n.setTabBarItem({index:4,text:"我的",iconPath:"static/tabbar/user.png",selectedIconPath:"static/tabbar/user_"+e+".png"})}else n.hideTabBar()},c.default.prototype.getThemeColor=function(){var t=this.$store.state.theme;return["#ff5704","#19ad57","#ffcc00","#1774ff","#e4e4e4","#c8ba97","#623ceb"][t]}}).call(this,a("3223")["default"],a("df3c")["createApp"],a("df3c")["default"])}},[["aaec","common/runtime","common/vendor"]]]);