(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21f45b"],{d8b3:function(t,i,e){"use strict";e.r(i);var s=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{ref:"container",staticClass:"quality-recommend"},[e("div",{staticClass:"slider-banner swiper"},[e("swiper",{staticClass:"swiper-wrapper",attrs:{options:t.RecommendSwiper}},t._l(t.imgUrls,(function(t,i){return e("swiperSlide",{key:i,staticClass:"swiper-slide"},[e("img",{staticClass:"slide-image",attrs:{src:t.img}})])})),1),e("div",{staticClass:"swiper-pagination"})],1),t._m(0),e("Promotion-good",{attrs:{benefit:t.goodsList}}),e("Loading",{attrs:{loadend:t.loadend,loading:t.loading}})],1)},a=[function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"title acea-row row-center-wrapper"},[e("div",{staticClass:"line"}),e("div",{staticClass:"name"},[e("span",{staticClass:"iconfont icon-cuxiaoguanli"}),t._v("促销单品\n    ")]),e("div",{staticClass:"line"})])}],n=e("7212"),o=(e("e5d0"),function(){var t=this,i=t.$createElement,e=t._self._c||i;return t.benefit.length>0?e("div",{staticClass:"promotionGood"},t._l(t.benefit,(function(i,s){return e("div",{key:s,staticClass:"item acea-row row-between-wrapper",on:{click:function(e){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:"text"},[e("div",{staticClass:"name line1"},[t._v(t._s(i.store_name))]),e("div",{staticClass:"sp-money acea-row"},[e("div",{staticClass:"moneyCon"},[t._v("\n          促销价: ￥"),e("span",{staticClass:"num"},[t._v(t._s(i.price))])])]),e("div",{staticClass:"acea-row row-between-wrapper"},[e("div",{staticClass:"money"},[t._v("日常价：￥"+t._s(i.ot_price))]),e("div",[t._v("仅剩："+t._s(i.stock)+t._s(i.unit_name))])])])])})),0):t._e()}),r=[],l=e("00fd"),c={name:"PromotionGood",props:{benefit:{type:Array,default:function(){return[]}}},data:function(){return{}},methods:{goDetails:function(t){var i=this;Object(l["c"])(t).then((function(){i.$router.push({path:"/detail/"+t.id})}))}}},d=c,p=e("2877"),u=Object(p["a"])(d,o,r,!1,null,null,null),m=u.exports,g=e("3a5e"),v=e("73f5"),_={name:"GoodsPromotion",components:{swiper:n["swiper"],swiperSlide:n["swiperSlide"],PromotionGood:m,Loading:g["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 t=this;this.getIndexGroomList(),this.$scroll(this.$refs.container,(function(){!t.loading&&t.getIndexGroomList()}))},methods:{getIndexGroomList:function(){var t=this,i=this;if(!i.loading&&!i.loadend){i.loading=!0;var e={page:i.page,limit:i.limit};Object(v["e"])(4,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})}))}}}},f=_,w=Object(p["a"])(f,s,a,!1,null,null,null);i["default"]=w.exports}}]);
//# sourceMappingURL=chunk-2d21f45b.0c032228.js.map