(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21f45b"],{d8b3: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),i._m(0),e("Promotion-good",{attrs:{benefit:i.goodsList}}),e("Loading",{attrs:{loadend:i.loadend,loading:i.loading}})],1)},a=[function(){var i=this,t=i.$createElement,e=i._self._c||t;return e("div",{staticClass:"title acea-row row-center-wrapper"},[e("div",{staticClass:"line"}),e("div",{staticClass:"name"},[e("span",{staticClass:"iconfont icon-cuxiaoguanli"}),i._v("促销单品\n    ")]),e("div",{staticClass:"line"})])}],n=e("7212"),o=(e("e5d0"),e("91c8")),r=e("3a5e"),l=e("73f5"),d={name:"GoodsPromotion",components:{swiper:n["swiper"],swiperSlide:n["swiperSlide"],PromotionGood:o["a"],Loading:r["a"]},props:{},data:function(){return{imgUrls:[],goodsList:[],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.getIndexGroomList(),this.$scroll(this.$refs.container,function(){!i.loading&&i.getIndexGroomList()})},methods:{getIndexGroomList:function(){var i=this,t=this;if(!t.loading&&!t.loadend){t.loading=!0;var e={page:t.page,limit:t.limit};Object(l["e"])(4,e).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"),g=Object(p["a"])(c,s,a,!1,null,null,null);t["default"]=g.exports}}]);
//# sourceMappingURL=chunk-2d21f45b.dc2b5e22.js.map