(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4ba20b2e"],{"2b67":function(t,i,s){"use strict";s.r(i);var a=function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("div",{ref:"container",staticClass:"flash-sale"},[a("div",{staticClass:"saleBox"},[t.timeList[t.active]?a("div",{staticClass:"header"},[a("img",{attrs:{src:t.timeList[t.active].slide}})]):t._e()]),t._m(0),a("Tabs",{ref:"timeList",staticClass:"time-tabs",attrs:{"line-height":"0",animated:"","title-inactive-color":"2",sticky:""},model:{value:t.active,callback:function(i){t.active=i},expression:"active"}},t._l(t.timeList,(function(i,e){return a("Tab",{key:e},[a("div",{staticClass:"timeItem",attrs:{slot:"title"},on:{click:function(i){return t.setTime(e)}},slot:"title"},[a("div",{staticClass:"time"},[t._v(t._s(i.time))]),a("div",{staticClass:"state"},[t._v(t._s(i.state))])]),a("div",{staticClass:"list"},t._l(t.seckillList,(function(s,e){return a("div",{key:e,staticClass:"item acea-row row-between-wrapper",on:{click:function(a){return t.goDetail(s.id,i.status)}}},[a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:s.image}})]),a("div",{staticClass:"text acea-row row-column-around"},[a("div",{staticClass:"line1",domProps:{textContent:t._s(s.title)}}),a("div",{staticClass:"money"},[a("span",{staticClass:"num font-color-red",domProps:{textContent:t._s("￥"+s.price)}}),a("span",{staticClass:"ot_price",domProps:{textContent:t._s("￥"+s.ot_price)}})]),a("div",{staticClass:"stock"},[t._v("\n              限量"),a("span",{domProps:{textContent:t._s(s.stock+"件")}})]),a("div",{staticClass:"progress"},[a("div",{staticClass:"bg-red",style:{width:t.loading?s.percent+"%":""}}),a("div",{staticClass:"piece",domProps:{textContent:t._s("已抢"+s.percent+"%")}})])]),1===i.status&&s.quota>0?a("div",{staticClass:"grab bg-color-red"},[t._v("\n            马上抢\n          ")]):t._e(),1===i.status&&s.quota<=0?a("div",{staticClass:"grab bg-color-hui"},[t._v("\n            已售磬\n          ")]):t._e(),2===i.status?a("div",{staticClass:"grab bg-color-red"},[t._v("\n            未开始\n          ")]):t._e(),0===i.status?a("div",{staticClass:"grab bg-color-hui"},[t._v("\n            已结束\n          ")]):t._e()])})),0),!t.status||0===t.seckillList.length&&t.page>1?a("div",{staticClass:"noCommodity"},[a("div",{staticClass:"noPictrue"},[a("img",{staticClass:"image",attrs:{src:s("0c36")}})])]):t._e(),t.seckillList.length>0?a("Loading",{attrs:{loaded:t.status,loading:t.loadingList}}):t._e()],1)})),1),a("div",{attrs:{id:"title0"}}),a("div",{attrs:{id:"title1"}}),a("div",{attrs:{id:"title2"}})],1)},e=[function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("div",{staticClass:"logoPic"},[a("img",{attrs:{src:s("634a")}})])}],c=(s("bda7"),s("5e46")),n=(s("da3c"),s("0b33")),l=s("ca41"),o=s("3a5e"),r={name:"GoodsSeckill",components:{Tab:n["a"],Tabs:c["a"],Loading:o["a"]},props:{},data:function(){return{timeList:[],stickys:!1,loading:!1,datatime:0,active:0,seckillList:[],status:!1,loadingList:!1,page:1,limit:20}},mounted:function(){this.mountedStart()},methods:{mountedStart:function(){var t=this,i=this;Object(l["r"])().then((function(t){i.$set(i,"timeList",t.data.seckillTime),i.$set(i,"active",t.data.seckillTimeIndex),i.datatime=i.timeList[i.active].stop,i.getSeckillList(),i.$nextTick((function(){i.stickys=!0,i.$refs.timeList.scrollIntoView()}))})),this.$scroll(this.$refs.container,(function(){!t.loadingList&&t.getSeckillList()})),setTimeout((function(){i.loading=!0}),500)},setTime:function(t){var i=this;i.active=t,i.datatime=i.timeList[i.active].stop,i.seckillList=[],i.page=1,i.status=!1,i.getSeckillList()},getSeckillList:function(){var t=this;if(!t.loadingList&&!t.status){t.loadingList=!0;var i=t.timeList[t.active].id;Object(l["t"])(i,{page:t.page,limit:t.limit}).then((function(i){t.status=i.data.length<t.limit,t.seckillList.push.apply(t.seckillList,i.data),t.page++,t.loadingList=!1})).catch((function(){t.loadingList=!1}))}},goDetail:function(t,i){var s=this,a=s.timeList[s.active].stop;this.$router.push({path:"/activity/seckill_detail/"+t+"/"+a+"/"+i})}}},d=r,u=(s("6885"),s("2877")),m=Object(u["a"])(d,a,e,!1,null,"77df59b8",null);i["default"]=m.exports},"46df":function(t,i,s){},"634a":function(t,i,s){t.exports=s.p+"h5/img/baokuan.6313c8c8.png"},6885:function(t,i,s){"use strict";var a=s("46df"),e=s.n(a);e.a}}]);
//# sourceMappingURL=chunk-4ba20b2e.16b757f3.js.map