周总批发商场
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
3.6 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/activity/goods_seckill/index"],{"1b1b":function(t,i,e){},4647:function(t,i,e){"use strict";e.r(i);var n=e("b780"),a=e.n(n);for(var l in n)["default"].indexOf(l)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(l);i["default"]=a.a},a456:function(t,i,e){"use strict";var n=e("1b1b"),a=e.n(n);a.a},a501:function(t,i,e){"use strict";e.r(i);var n=e("bca7"),a=e("4647");for(var l in a)["default"].indexOf(l)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(l);e("a456");var o=e("f0c5"),s=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);i["default"]=s.exports},b780:function(t,i,e){"use strict";(function(t){var n=e("4ea4");Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a=e("84d8"),l=n(e("19b6")),o=e("00a0"),s={components:{home:function(){Promise.all([e.e("common/vendor"),e.e("components/home/index")]).then(function(){return resolve(e("3b71"))}.bind(null,e)).catch(e.oe)}},mixins:[l.default],data:function(){return{imgHost:o.HTTP_REQUEST_URL,topImage:"",seckillList:[],timeList:[],active:5,scrollLeft:0,interval:0,status:1,countDownHour:"00",countDownMinute:"00",countDownSecond:"00",page:1,limit:8,loading:!1,loadend:!1,pageloading:!1,intoindex:""}},onLoad:function(){this.getSeckillConfig()},methods:{getSeckillConfig:function(){var t=this;(0,a.getSeckillIndexTime)().then((function(i){t.topImage=i.data.lovely,t.timeList=i.data.seckillTime,t.active=i.data.seckillTimeIndex,t.$nextTick((function(){t.intoindex="sort"+i.data.seckillTimeIndex})),t.timeList.length&&(t.scrollLeft=100*(t.active-1.37),setTimeout((function(){t.loading=!0}),2e3),t.seckillList=[],t.page=1,t.status=t.timeList[t.active].status,t.getSeckillList())}))},getSeckillList:function(){var t=this,i={page:t.page,limit:t.limit};t.loadend||t.pageloading||(this.pageloading=!0,(0,a.getSeckillList)(t.timeList[t.active].id,i).then((function(i){var e=i.data,n=e.length<t.limit;t.page++,t.seckillList=t.seckillList.concat(e),t.page=t.page,t.pageloading=!1,t.loadend=n})).catch((function(i){t.pageloading=!1})))},settimeList:function(t,i){this.active=i,this.interval&&(clearInterval(this.interval),this.interval=null),this.interval=0,this.countDownHour="00",this.countDownMinute="00",this.countDownSecond="00",this.status=this.timeList[this.active].status,this.loadend=!1,this.page=1,this.seckillList=[],this.getSeckillList()},goDetails:function(i){t.navigateTo({url:"/pages/activity/goods_seckill_details/index?id="+i.id})}},onReachBottom:function(){this.getSeckillList()}};i.default=s}).call(this,e("543d")["default"])},bca7:function(t,i,e){"use strict";e.d(i,"b",(function(){return n})),e.d(i,"c",(function(){return a})),e.d(i,"a",(function(){}));var n=function(){var t=this,i=t.$createElement,e=(t._self._c,t.timeList.length),n=t.__map(t.timeList,(function(i,e){var n=t.__get_orig(i),a=t.$t(i.state);return{$orig:n,m0:a}})),a=t.$t("¥"),l=t.$t("¥"),o=t.$t("限量"),s=t.$t("已抢"),c=1==t.status?t.$t("抢购中"):null,u=1!=t.status&&2==t.status?t.$t("未开始"):null,r=1!=t.status&&2!=t.status?t.$t("已结束"):null,d=t.__map(t.seckillList,(function(i,e){var n=t.__get_orig(i),a=t.$t(i.unit_name)||"";return{$orig:n,m4:a}})),f=0==t.seckillList.length&&(1!=t.page||0==t.active),g=f?t.$t("暂无商品,去看点别的吧"):null;t.$mp.data=Object.assign({},{$root:{g0:e,l0:n,m1:a,m2:l,m3:o,m5:s,m6:c,m7:u,m8:r,l1:d,g1:f,m9:g}})},a=[]},bea0:function(t,i,e){"use strict";(function(t,i){var n=e("4ea4");e("4789");n(e("66fd"));var a=n(e("a501"));t.__webpack_require_UNI_MP_PLUGIN__=e,i(a.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])}},[["bea0","common/runtime","common/vendor"]]]);