(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/product/seckill"],{"19f1":function(t,n,e){"use strict";(function(t){e("856e");o(e("66fd"));var n=o(e("d8dc"));function o(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e("543d")["createPage"])},"7b89":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return o}));var o={uniCountdown:function(){return e.e("components/uni-countdown/uni-countdown").then(e.bind(null,"8558"))},uniLoadMore:function(){return e.e("components/uni-load-more/uni-load-more").then(e.bind(null,"ef69"))}},i=function(){var t=this,n=t.$createElement;t._self._c},a=[]},"8c04":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;e("0c67"),e("26cb");var o=e("64ab"),i=e("7201");function a(t){return s(t)||c(t)||u(t)||r()}function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(t,n){if(t){if("string"===typeof t)return l(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?l(t,n):void 0}}function c(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function s(t){if(Array.isArray(t))return l(t)}function l(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=t[e];return o}var d=function(){e.e("components/uni-countdown/uni-countdown").then(function(){return resolve(e("8558"))}.bind(null,e)).catch(e.oe)},f=function(){e.e("components/uni-load-more/uni-load-more").then(function(){return resolve(e("ef69"))}.bind(null,e)).catch(e.oe)},m={components:{uniCountdown:d,uniLoadMore:f},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 o=n.dataList[e];console.log(o,"data"),t.navigateTo({url:"/pages/product/miaosha?id="+o.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,o.getSeckillList)({page:i.page,limit:i.limit},i.id).then((function(t){var n;console.log(t,"煮熟"),(n=i.dataList).push.apply(n,a(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,o.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 o=n;if(1===o.status)t.timeComputed(1e3*o.stop,o);else{var i=o.time.split(":"),a=i[0],r=i[1],u=new Date;u.setHours(a,r,0),t.timeComputed(u.getTime(),o)}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,i.timeComputed)(t);console.log(e),n.stopTimeH=e.hours,n.stopTimeM=e.minutes,n.stopTimeS=e.seconds}}};n.default=m}).call(this,e("543d")["default"])},"8ed4":function(t,n,e){"use strict";e.r(n);var o=e("8c04"),i=e.n(o);for(var a in o)"default"!==a&&function(t){e.d(n,t,(function(){return o[t]}))}(a);n["default"]=i.a},"91e9":function(t,n,e){"use strict";var o=e("ebfa"),i=e.n(o);i.a},d8dc:function(t,n,e){"use strict";e.r(n);var o=e("7b89"),i=e("8ed4");for(var a in i)"default"!==a&&function(t){e.d(n,t,(function(){return i[t]}))}(a);e("91e9");var r,u=e("f0c5"),c=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],r);n["default"]=c.exports},ebfa:function(t,n,e){}},[["19f1","common/runtime","common/vendor"]]]);