(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesB/pages/activity/GoodsSeckill/index","components/Loading"],{3804:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"Loading",props:{loaded:Boolean,loading:Boolean}};e.default=n},"54ce":function(t,e,i){"use strict";(function(t){i("0371");n(i("66fd"));var e=n(i("95ce"));function n(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,i("543d")["createPage"])},"73b0":function(t,e,i){"use strict";i.r(e);var n=i("3804"),a=i.n(n);for(var c in n)"default"!==c&&function(t){i.d(e,t,(function(){return n[t]}))}(c);e["default"]=a.a},"77c4":function(t,e,i){},"95ce":function(t,e,i){"use strict";i.r(e);var n=i("ddd4"),a=i("c09a");for(var c in a)"default"!==c&&function(t){i.d(e,t,(function(){return a[t]}))}(c);i("d70a");var s,o=i("f0c5"),u=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"12426054",null,!1,n["a"],s);e["default"]=u.exports},c09a:function(t,e,i){"use strict";i.r(e);var n=i("e289"),a=i.n(n);for(var c in n)"default"!==c&&function(t){i.d(e,t,(function(){return n[t]}))}(c);e["default"]=a.a},d70a:function(t,e,i){"use strict";var n=i("77c4"),a=i.n(n);a.a},ddd4:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return c})),i.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement;t._self._c},c=[]},df82:function(t,e,i){"use strict";i.r(e);var n=i("f152"),a=i("73b0");for(var c in a)"default"!==c&&function(t){i.d(e,t,(function(){return a[t]}))}(c);var s,o=i("f0c5"),u=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],s);e["default"]=u.exports},e289:function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("8c03");a(i("df82"));function a(t){return t&&t.__esModule?t:{default:t}}var c=function(){i.e("components/CountDown").then(function(){return resolve(i("7e6d"))}.bind(null,i)).catch(i.oe)},s={name:"GoodsSeckill",components:{CountDown:c},props:{},data:function(){return{headerImg:"",timeList:[],sticky:!1,loading:!1,datatime:0,active:0,seckillList:[],status:!1,loadingList:!1,page:1,limit:5,title:[],opacity:1}},mounted:function(){this.mountedStart()},onReachBottom:function(){!this.loadingList&&this.getSeckillList()},filters:{getStatusText:function(t){var e=["活动已结束","正在疯抢","即将开抢"][t-1];return e}},methods:{changeTime:function(t){this.active=t,this.getSeckillList()},mountedStart:function(){var e=this;t.showLoading(),(0,n.getSeckillConfig)().then((function(i){e.$set(e,"headerImg",i.data.lovely),e.$set(e,"timeList",i.data.seckillTime),e.$set(e,"active",i.data.seckillTimeIndex);var n=[];n=i.data.seckillTime.map((function(t,e){return{name:"div",attrs:{class:"timeItem"},children:[{name:"div",attrs:{class:"time"},children:[{type:"text",text:t.time}]},{name:"div",attrs:{class:"state"},children:[{type:"text",text:t.state}]}]}})),e.$set(e,"title",n),e.datatime=e.timeList[e.active].stop,e.getSeckillList(),e.$nextTick((function(){e.sticky=!0,t.hideLoading()}))}))},setTime:function(t){var e=this;e.page=1,e.loadingList=!1,e.status=!1,e.active=t,e.datatime=e.timeList[e.active].stop,this.seckillList=[],e.getSeckillList()},getSeckillList:function(){var e=this;if(!e.loadingList&&!e.status){var i=e.timeList[e.active].id;(0,n.getSeckillList)(i,{page:e.page,limit:e.limit}).then((function(i){e.status=i.data.length