webpackJsonp([18],{"2BDk":function(r,t){},QSyu:function(r,t){r.exports="data:image/png;base64,[encoded data, 5348 characters]"},Y8DH:function(r,t){r.exports="data:image/png;base64,[encoded data, 12616 characters]"},l8mQ:function(r,t){},owE8:function(r,t,q){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=q("Dd8w"),i=q.n(e),A=(q("Au9i"),q("vAZe"),{name:"DiscountBody",props:["item"],computed:{rangeText:function(){return 0===this.item.range?"全部商品可用":1===this.item.range?"部分分类可用":2===this.item.range?"部分品牌可用":3===this.item.range?"部分商品可用":""},getTitleStyle:function(){return{width:window.screen.width-160+"px"}}},methods:{getTime:function(r){var t=new Date(1e3*r);return t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate()},goDetail:function(r){this.$router.push({name:"discountDetail",query:{id:r}})}}}),l={render:function(){var r=this,t=r.$createElement,e=r._self._c||t;return e("div",{staticClass:"discount-container",on:{click:function(t){r.goDetail(r.item.id)}}},[e("img",{staticClass:"photo",attrs:{src:q("Y8DH")}}),r._v(" "),e("div",{staticClass:"right-container"},[e("div",{staticClass:"top"},[e("p",{staticClass:"title",style:r.getTitleStyle},[r._v(r._s(this.item.name))]),r._v(" "),e("p",{staticClass:"promo"},[r._v(r._s(this.item.promo))])]),r._v(" "),e("div",{staticClass:"bottom"},[e("p",{staticClass:"range"},[r._v(r._s(r.rangeText))]),r._v(" "),e("p",{staticClass:"time"},[r._v("\n\t\t\t\t"+r._s(r.getTime(this.item.start_at))+"-"+r._s(r.getTime(this.item.end_at))+"\n\t\t\t")])])])])},staticRenderFns:[]};var k=q("VU/8")(A,l,!1,function(r){q("l8mQ")},null,null).exports,n=q("NYxO"),s={components:{DiscountBody:k},computed:i()({},Object(n.e)({activitiesList:function(r){return r.discount.activitiesList}})),created:function(){this.fetchActivityList()},methods:i()({},Object(n.b)({fetchActivityList:"fetchActivityList"}),{goBack:function(){this.$router.go(-1)}})},O={render:function(){var r=this,t=r.$createElement,q=r._self._c||t;return q("div",[q("mt-header",{staticClass:"header",attrs:{title:"优惠活动"}},[q("header-item",{attrs:{slot:"left",isBack:!0},on:{onclick:r.goBack},slot:"left"})],1),r._v(" "),q("div",{staticClass:"discount-body",attrs:{"infinite-scroll-disabled":"loading","infinite-scroll-distance":"10"}},[r._l(r.activitiesList,function(r,t){return q("discount-body",{key:t,attrs:{index:t,item:r}})}),r._v(" "),r.activitiesList&&r.activitiesList.length<=0?q("div",{staticClass:"wrapper-list-empty"},[r._m(0)]):r._e()],2)],1)},staticRenderFns:[function(){var r=this.$createElement,t=this._self._c||r;return t("div",[t("img",{attrs:{src:q("QSyu")}}),this._v(" "),t("p",[this._v("暂无优惠活动")])])}]};var u=q("VU/8")(s,O,!1,function(r){q("2BDk")},"data-v-c82f3e92",null);t.default=u.exports}});
//# sourceMappingURL=18.aee4dbd5a0295a0ac5c0.js.map