(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/product/seckill"],{"202a":function(t,n,e){"use strict";e.r(n);var i=e("2388"),o=e("cae5");for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);e("e504");var s=e("f0c5"),u=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=u.exports},2388:function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return i}));var i={uniCountdown:function(){return e.e("components/uni-countdown/uni-countdown").then(e.bind(null,"8ffd"))},uniLoadMore:function(){return e.e("components/uni-load-more/uni-load-more").then(e.bind(null,"bfdb"))}},o=function(){var t=this.$createElement;this._self._c},a=[]},be67:function(t,n,e){"use strict";(function(t){var i=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(e("448a")),a=(e("2991"),e("26cb"),e("5e62")),s=e("b7b7"),u={components:{uniCountdown:function(){e.e("components/uni-countdown/uni-countdown").then(function(){return resolve(e("8ffd"))}.bind(null,e)).catch(e.oe)},uniLoadMore:function(){e.e("components/uni-load-more/uni-load-more").then(function(){return resolve(e("bfdb"))}.bind(null,e)).catch(e.oe)}},data:function(){return{indexList:[],showTime:"",showTImeId:"",stop:!1,show:!1,status:0,topNavWidth:"25%",classIndex:0,itemWidht:0}},computed:{scrollLeft:function(){return this.classIndex>1?this.itemWidht*(this.classIndex-1.5):0}},onLoad:function(t){this.getClass()},methods:{swiperChange:function(t){this.classIndex=t.target.current,this.getList(this.classIndex,"tabChange")},numClassWidht:function(){var n=this;t.createSelectorQuery().select(".seckillBox").fields({size:!0},(function(t){n.itemWidht=Math.floor(t.width/750*187.5)})).exec()},tabClass:function(t){this.classIndex=t},navProduct:function(n,e){if(1==n.status){var i=n.dataList[e];console.log(i,"data"),t.navigateTo({url:"/pages/product/miaosha?id="+i.id+"&type=1&isVip=3"})}},getList:function(t,n){var e=this,i=this.indexList[t];console.log(i,n,"23232323"),"tabChange"===n&&!0===i.loaded||"noMore"!==i.loadingType&&"loading"!==i.loadingType&&(i.loadingType="loading",(0,a.getSeckillList)({page:i.page,limit:i.limit},i.id).then((function(t){var n;console.log(t,"煮熟"),(n=i.dataList).push.apply(n,(0,o.default)(t.data)),i.page++,i.limit==t.data.length?i.loadingType="more":i.loadingType="noMore",e.$set(i,"loaded",!0)})).catch((function(t){console.log(t)})))},getClass:function(){var t=this;(0,a.getSeckillClass)({}).then((function(n){var e=n.data;t.indexList=e.seckillTime.map((function(n,e){n.page=1,n.limit=6,n.dataList=[],n.loadingType="more";var i=n;if(1===i.status)t.timeComputed(1e3*i.stop,i);else{var o=i.time.split(":"),a=o[0],s=o[1],u=new Date;u.setHours(a,s,0),t.timeComputed(u.getTime(),i)}return n})),t.classIndex=e.seckillTimeIndex,t.$nextTick((function(){t.getList(t.classIndex)})),t.indexList.length<=4?t.topNavWidth=100/t.indexList.length+"%":t.$nextTick((function(){t.numClassWidht()}))})).catch((function(t){console.log(t)}))},timeComputed:function(t,n){var e=(0,s.timeComputed)(t);console.log(e),n.stopTimeH=e.hours,n.stopTimeM=e.minutes,n.stopTimeS=e.seconds}}};n.default=u}).call(this,e("543d")["default"])},cae5:function(t,n,e){"use strict";e.r(n);var i=e("be67"),o=e.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);n["default"]=o.a},d05d:function(t,n,e){},e35c:function(t,n,e){"use strict";(function(t,n){var i=e("4ea4");e("12d5");i(e("66fd"));var o=i(e("202a"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(o.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},e504:function(t,n,e){"use strict";var i=e("d05d"),o=e.n(i);o.a}},[["e35c","common/runtime","common/vendor"]]]);