You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
4.0 KiB

(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<e.limit,e.seckillList.push.apply(e.seckillList,i.data),e.page++,t.hideLoading()}))}},goDetail:function(t){var e=this,i=e.timeList[e.active].stop;this.$yrouter.push({path:"/pages/activity/SeckillDetails/index",query:{id:t.id,time:i,status:e.timeList[e.active].status}})},onPageScroll:function(t){var e=t.scrollTop;if(e<=2)this.opacity=1;else{if(this.opacity<=0)return;this.opacity=1-e/40}}}};e.default=s}).call(this,i("543d")["default"])},f152: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=[]}},[["54ce","common/