(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/home/index"],{"277f":function(e,t,n){"use strict";(function(e){n("6cdc");o(n("4a15"));var t=o(n("f5b8"));function o(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("f3be")["createPage"])},"3ef7":function(e,t,n){"use strict";n.r(t);var o=n("cb90"),r=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=r.a},"4b17":function(e,t,n){"use strict";var o=n("a01c"),r=n.n(o);r.a},"50ec":function(e,t,n){"use strict";var o;n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o}));var r=function(){var e=this,t=e.$createElement,n=(e._self._c,e.$util.isEmpty(e.ad)),o=e.$util.isEmpty(e.category);e.$mp.data=Object.assign({},{$root:{g0:n,g1:o}})},a=[]},a01c:function(e,t,n){},cb90:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n("7736"),r=n("2f3b"),a=n("01ea"),c=n("5f87"),i=n("1b62");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(){n.e("components/app-swiper").then(function(){return resolve(n("150c"))}.bind(null,n)).catch(n.oe)},d=function(){n.e("components/module/app-trademark").then(function(){return resolve(n("ea75"))}.bind(null,n)).catch(n.oe)},p=function(){n.e("pages/home/components/goods-list-big").then(function(){return resolve(n("0b57"))}.bind(null,n)).catch(n.oe)},g=function(){n.e("pages/home/components/goods-list-middle").then(function(){return resolve(n("1060"))}.bind(null,n)).catch(n.oe)},m=function(){n.e("pages/home/components/goods-list-small").then(function(){return resolve(n("fd08"))}.bind(null,n)).catch(n.oe)},b={name:"home",components:{AppSwiper:s,AppTrademark:d,goodsListBig:p,goodsListMiddle:g,goodsListSmall:m},mixins:[i.share],data:function(){return{data:{},ad:[],category:[],columnStyle:null,currentTabIndex:0,account:"",pageTitle:""}},computed:l({},(0,o.mapGetters)({orderShop:"getOrderShop"})),onLoad:function(e){},mounted:function(){},onShow:function(){e.hideTabBar()},methods:{init:function(){var t=this;(0,a.getOrderShop)().then((function(e){})),this._detail().then((function(n){var o=e.getStorageSync("account");console.log(t.pageTitle),(0,c.getShopUser)().then((function(e){var n={title:t.pageTitle,desc:"",imgUrl:"",pagePath:"/pages/home/index?fromUserId=".concat(e.id,"&account=").concat(o)};t.jweixinFn(n),console.log("分享地址","/pages/home/index?fromUserId=".concat(e.id,"&account=").concat(o))}))}))},_detail:function(){var t=this;return(0,r.getMainIndex)().then((function(n){if(t.data=n.data,t.$util.isEmpty(n.data))return!1;t.ad=n.data.ad.map((function(e){return e.img=e.adImg,e})),t.pageTitle=n.data.sj.name,e.setNavigationBarTitle({title:t.pageTitle}),t.category=n.data.category,t.columnStyle=n.data.columnStyle}))},adDetailFn:function(e){},tabClick:function(e){this.currentTabIndex=e}}};t.default=b}).call(this,n("f3be")["default"])},f5b8:function(e,t,n){"use strict";n.r(t);var o=n("50ec"),r=n("3ef7");for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);n("4b17");var c,i=n("0095"),u=Object(i["a"])(r["default"],o["b"],o["c"],!1,null,"46e200d6",null,!1,o["a"],c);t["default"]=u.exports}},[["277f","common/runtime","common/vendor"]]]);