(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0f0b4a"],{"9e08":function(t,i,s){"use strict";s.r(i);var e=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{ref:"container",staticClass:"quality-recommend"},[s("div",{staticClass:"slider-banner swiper"},[s("swiper",{staticClass:"swiper-wrapper",attrs:{options:t.RecommendSwiper}},t._l(t.imgUrls,(function(t,i){return s("swiperSlide",{key:i,staticClass:"swiper-slide"},[s("img",{staticClass:"slide-image",attrs:{src:t.img}})])})),1),s("div",{staticClass:"swiper-pagination"})],1),s("div",{staticClass:"title acea-row row-center-wrapper"},[s("div",{staticClass:"line"}),s("div",{staticClass:"name"},[s("span",{staticClass:"iconfont",class:t.icon}),t._v(t._s(t.name)+"\n    ")]),s("div",{staticClass:"line"})]),s("GoodList",{attrs:{"good-list":t.goodsList,"is-sort":!1}}),s("Loading",{attrs:{loadend:t.loadend,loading:t.loading}})],1)},a=[],n=s("7212"),o=(s("e5d0"),function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"goodList"},t._l(t.goodList,(function(i,a){return e("div",{key:a,staticClass:"item acea-row row-between-wrapper",on:{click:function(s){return t.goDetails(i)}}},[e("div",{staticClass:"pictrue"},[e("img",{staticClass:"image",attrs:{src:i.image}}),i.activity&&"1"===i.activity.type?e("span",{staticClass:"pictrue_log pictrue_log_class"},[t._v("秒杀")]):t._e(),i.activity&&"2"===i.activity.type?e("span",{staticClass:"pictrue_log pictrue_log_class"},[t._v("砍价")]):t._e(),i.activity&&"3"===i.activity.type?e("span",{staticClass:"pictrue_log pictrue_log_class"},[t._v("拼团")]):t._e()]),e("div",{staticClass:"underline"},[e("div",{staticClass:"text"},[e("div",{staticClass:"line1"},[t._v(t._s(i.store_name))]),e("div",{staticClass:"money font-color-red"},[t._v("\n          ￥"),e("span",{staticClass:"num"},[t._v(t._s(i.price))])]),e("div",{staticClass:"vip-money acea-row row-middle"},[i.vip_price&&i.vip_price>0?e("div",{staticClass:"vip"},[t._v("\n            ￥"+t._s(i.vip_price||0)),e("img",{staticClass:"image",attrs:{src:s("69ed")}})]):t._e(),e("span",{staticClass:"num"},[t._v("已售"+t._s(i.sales)+t._s(i.unit_name))])])])]),e("div",{staticClass:"iconfont icon-gouwuche cart-color acea-row row-center-wrapper"})])})),0)}),c=[],r=s("00fd"),l={name:"GoodList",props:{goodList:{type:Array,default:function(){return[]}},isSort:{type:Boolean,default:!0}},data:function(){return{}},methods:{goDetails:function(t){var i=this;Object(r["c"])(t).then((function(){i.$router.push({path:"/detail/"+t.id})}))}}},d=l,p=s("2877"),u=Object(p["a"])(d,o,c,!1,null,null,null),m=u.exports,g=s("3a5e"),v=s("73f5"),_={name:"HotNewGoods",components:{swiper:n["swiper"],swiperSlide:n["swiperSlide"],GoodList:m,Loading:g["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 t=this;this.titleInfo(),this.getIndexGroomList(),this.$scroll(this.$refs.container,(function(){!t.loading&&t.getIndexGroomList()}))},methods:{titleInfo:function(){var t=this.$route.params.type;"1"===t?(this.name="精品推荐",this.icon="icon-jingpintuijian",document.title="精品推荐"):"2"===t?(this.name="热门榜单",this.icon="icon-remen",document.title="热门榜单"):"3"===t&&(this.name="首发新品",this.icon="icon-xinpin",document.title="首发新品")},getIndexGroomList:function(){var t=this,i=this;if(!i.loading&&!i.loadend){i.loading=!0;var s=this.$route.params.type,e={page:i.page,limit:i.limit};Object(v["e"])(s,e).then((function(t){i.loading=!1,i.imgUrls=t.data.banner,i.goodsList.push.apply(i.goodsList,t.data.list),i.loadend=t.data.list.length<i.limit,i.page=i.page+1})).catch((function(i){t.$dialog.toast({mes:i.msg})}))}}}},w=_,f=Object(p["a"])(w,e,a,!1,null,null,null);i["default"]=f.exports}}]);
//# sourceMappingURL=chunk-2d0f0b4a.0363b701.js.map