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 lines
4.0 KiB
1 lines
4.0 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesB/pages/activity/GoodsSeckill/index","components/Loading"],{"624a":function(t,e,i){"use strict";i.r(e);var n=i("e723"),a=i("6f15");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},"6e76":function(t,e,i){"use strict";(function(t){i("ef82");n(i("66fd"));var e=n(i("f199"));function n(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,i("543d")["createPage"])},"6f15":function(t,e,i){"use strict";i.r(e);var n=i("fc8a"),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},"86df":function(t,e,i){"use strict";var n=i("aeb7"),a=i.n(n);a.a},a586:function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("70e6");a(i("624a"));function a(t){return t&&t.__esModule?t:{default:t}}var c=function(){i.e("components/CountDown").then(function(){return resolve(i("fdd5"))}.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"])},a657: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=[]},aeb7:function(t,e,i){},c878:function(t,e,i){"use strict";i.r(e);var n=i("a586"),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},e723: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=[]},f199:function(t,e,i){"use strict";i.r(e);var n=i("a657"),a=i("c878");for(var c in a)"default"!==c&&function(t){i.d(e,t,(function(){return a[t]}))}(c);i("86df");var s,o=i("f0c5"),u=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"130329b9",null,!1,n["a"],s);e["default"]=u.exports},fc8a: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}},[["6e76","common/runtime","common/vendor"]]]); |