(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3851f843"],{"03b4":function(t,e,s){},"22cd":function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("transition",{attrs:{name:"el-fade-in-linear"}},[s("div",{staticClass:"app-home"},[s("el-backtop",{attrs:{target:".app-home",bottom:100,"visibility-height":100,right:20}}),s("div",{staticClass:"app-header"},[s("appHeader"),s("el-divider")],1),s("span",{staticClass:"carousel-title",staticStyle:{"margin-top":"50px"}},[t._v("今日推荐Today")]),s("home-carousel",{staticStyle:{"margin-bottom":"50px"}}),s("home-discount",{staticStyle:{"margin-bottom":"50px"}}),s("home-recommend",{staticStyle:{"margin-bottom":"50px"}}),s("div",{staticClass:"app-footer"},[s("el-divider"),s("appFooter",{staticClass:"app-footer"})],1)],1)])},o=[],a=s("f392"),c=s("2c4b"),r=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"home-carousel"},[s("el-card",{staticClass:"carousel-card",attrs:{shadow:"hover"}},[s("el-carousel",{attrs:{"indicator-position":"outside",height:"700px"}},t._l(t.carouselList,(function(e){return s("el-carousel-item",{key:e.configId},[s("img",{staticStyle:{height:"auto"},attrs:{src:t.getImgUrl(e.goodsCoverImg)},on:{click:function(s){return t.toSearch(e.configName)}}})])})),1)],1)],1)},n=[],l=(s("14d9"),s("a27e"));function d(t){return l["a"].post("/index-config/list",t)}var m={name:"carousel",methods:{toSearch(t){this.$store.commit("commitSearchKey",t),this.$router.push({name:"search",query:{t:Date.now()}})},async getIndexList(){try{await d({indexType:1}).then(t=>{this.carouselList=t,console.log(this.carouselList)})}catch(t){console.log(t)}},getImgUrl(t){return this.$store.state.baseUrl+"/img/"+t+".jpg"}},data(){return{carouselList:""}},mounted(){this.getIndexList()},beforeRouteUpdate(){this.getIndexList()}},u=m,h=(s("7c4b"),s("e0cb"),s("2877")),g=Object(h["a"])(u,r,n,!1,null,"4158376e",null),p=g.exports,f=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"home-discount"},[s("span",{staticClass:"discount-title"},[t._v("今日优惠Discount")]),s("div",{staticClass:"discount-card-div"},t._l(t.discountList,(function(e){return s("el-card",{key:e.configId,staticClass:"discount-card",staticStyle:{"margin-right":"100px"},attrs:{shadow:"hover"}},[s("img",{staticStyle:{width:"100%",height:"auto"},attrs:{src:t.getImgUrl(e.goodsCoverImg)},on:{click:function(s){return t.toSearch(e.configName)}}})])})),1)])},b=[],v={name:"discount",methods:{toSearch(t){this.$store.commit("commitSearchKey",t),this.$router.push({name:"search",query:{t:Date.now()}})},async getIndexList(){try{await d({indexType:2}).then(t=>{this.discountList=t,console.log(this.discountList)})}catch(t){console.log(t)}},getImgUrl(t){return this.$store.state.baseUrl+"/img/"+t+".jpg"}},data(){return{discountList:""}},mounted(){this.getIndexList()},beforeRouteUpdate(){this.getIndexList()}},y=v,x=(s("e881"),Object(h["a"])(y,f,b,!1,null,"1119cf8c",null)),C=x.exports,w=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"home-recommend"},[s("span",{staticClass:"recommend-title"},[t._v("为您推荐Recommend")]),s("div",{staticClass:"home-recommend-body"},[s("div",{staticClass:"recommend-card-div"},[s("el-card",{staticClass:"recommend-card",staticStyle:{width:"100%",height:"auto"},attrs:{shadow:"hover"}},[s("div",{staticClass:"recommend-row",staticStyle:{width:"100%",height:"auto"}},[s("el-carousel",{staticClass:"recommend-row-carousel",attrs:{interval:3e3,type:"card"}},t._l(t.recommendList,(function(e){return s("el-carousel-item",{key:e.configId},[s("img",{staticClass:"recommend-row-item-img",attrs:{src:t.getImgUrl(e.goodsCoverImg)},on:{click:function(s){return t.toSearch(e.configName)}}})])})),1)],1)])],1)])])},I=[],L={name:"recommend",methods:{toSearch(t){this.$store.commit("commitSearchKey",t),this.$router.push({name:"search",query:{t:Date.now()}})},async getIndexList(){try{await d({indexType:3}).then(t=>{this.recommendList=t,console.log(this.recommendList)})}catch(t){console.log(t)}},getImgUrl(t){return this.$store.state.baseUrl+"/img/"+t+".jpg"}},data(){return{recommendList:""}},mounted(){this.getIndexList()},beforeRouteUpdate(){this.getIndexList()}},S=L,_=(s("ce7e"),s("7a6c"),Object(h["a"])(S,w,I,!1,null,"328ce212",null)),$=_.exports,U={name:"home",components:{appHeader:a["a"],appFooter:c["a"],homeCarousel:p,homeDiscount:C,homeRecommend:$}},k=U,j=(s("563d"),Object(h["a"])(k,i,o,!1,null,"50a58f05",null));e["default"]=j.exports},"402b":function(t,e,s){},"563d":function(t,e,s){"use strict";s("402b")},"7a6c":function(t,e,s){"use strict";s("03b4")},"7c4b":function(t,e,s){"use strict";s("e5df")},ba0d:function(t,e,s){},cd9b:function(t,e,s){},ce7e:function(t,e,s){"use strict";s("fc2b")},e0cb:function(t,e,s){"use strict";s("cd9b")},e5df:function(t,e,s){},e881:function(t,e,s){"use strict";s("ba0d")},fc2b:function(t,e,s){}}]);
//# sourceMappingURL=chunk-3851f843.d5ff1500.js.map