(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0f0b4a"],{"9e08":function(i,t,e){"use strict";e.r(t);var s=function(){var i=this,t=i.$createElement,e=i._self._c||t;return e("div",{ref:"container",staticClass:"quality-recommend"},[e("div",{staticClass:"slider-banner swiper"},[e("swiper",{staticClass:"swiper-wrapper",attrs:{options:i.RecommendSwiper}},i._l(i.imgUrls,function(i,t){return e("swiperSlide",{key:t,staticClass:"swiper-slide"},[e("img",{staticClass:"slide-image",attrs:{src:i.img}})])}),1),e("div",{staticClass:"swiper-pagination"})],1),e("div",{staticClass:"title acea-row row-center-wrapper"},[e("div",{staticClass:"line"}),e("div",{staticClass:"name"},[e("span",{staticClass:"iconfont",class:i.icon}),i._v(i._s(i.name)+"\n    ")]),e("div",{staticClass:"line"})]),e("GoodList",{attrs:{"good-list":i.goodsList,"is-sort":!1}}),e("Loading",{attrs:{loadend:i.loadend,loading:i.loading}})],1)},a=[],n=e("7212"),o=(e("e5d0"),e("d829")),l=e("3a5e"),r=e("73f5"),d={name:"HotNewGoods",components:{swiper:n["swiper"],swiperSlide:n["swiperSlide"],GoodList:o["a"],Loading:l["a"]},props:{},data:function(){return{imgUrls:[],goodsList:[],name:"",icon:"",RecommendSwiper:{pagination:{el:".swiper-pagination",clickable:!0},autoplay:{disableOnInteraction:!1,delay:2e3},loop:!0,speed:1e3,observer:!0,observeParents:!0},page:1,limit:20,loading:!1,loadend:!1}},mounted:function(){var i=this;this.titleInfo(),this.getIndexGroomList(),this.$scroll(this.$refs.container,function(){!i.loading&&i.getIndexGroomList()})},methods:{titleInfo:function(){var i=this.$route.params.type;"1"===i?(this.name="精品推荐",this.icon="icon-jingpintuijian",document.title="精品推荐"):"2"===i?(this.name="热门榜单",this.icon="icon-remen",document.title="热门榜单"):"3"===i&&(this.name="首发新品",this.icon="icon-xinpin",document.title="首发新品")},getIndexGroomList:function(){var i=this,t=this;if(!t.loading&&!t.loadend){t.loading=!0;var e=this.$route.params.type,s={page:t.page,limit:t.limit};Object(r["e"])(e,s).then(function(i){t.loading=!1,t.imgUrls=i.data.banner,t.goodsList.push.apply(t.goodsList,i.data.list),t.loadend=i.data.list.length<t.limit,t.page=t.page+1}).catch(function(t){i.$dialog.toast({mes:t.msg})})}}}},c=d,p=e("2877"),m=Object(p["a"])(c,s,a,!1,null,null,null);t["default"]=m.exports}}]);
//# sourceMappingURL=chunk-2d0f0b4a.daea60bb.js.map