(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/diy/components/seckill"],{"126f":function(t,i,n){"use strict";n.r(i);var e=n("2a76"),o=n("4e23");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(i,t,(function(){return o[t]}))}(a);n("a453");var l=n("f0c5"),c=Object(l["a"])(o["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],void 0);i["default"]=c.exports},"2a76":function(t,i,n){"use strict";n.d(i,"b",(function(){return e})),n.d(i,"c",(function(){return o})),n.d(i,"a",(function(){}));var e=function(){var t=this,i=t.$createElement,n=(t._self._c,t.spikeList.length),e=n>0?t.$t("限时秒杀"):null,o=n>0?t.$t("更多"):null,a=n>0?t.__map(t.spikeList,(function(i,n){var e=t.__get_orig(i),o=t.discountShow?t.$t("折"):null,a=t.seckillShow?t.$t("抢"):null,l=t.priceShow?t.$t("¥"):null;return{$orig:e,m2:o,m3:a,m4:l}})):null;t.$mp.data=Object.assign({},{$root:{g0:n,m0:e,m1:o,l0:a}})},o=[]},"32fa":function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e=n("6a71"),o={name:"seckill",components:{countDown:function(){n.e("components/countDown/index").then(function(){return resolve(n("46a1"))}.bind(null,n)).catch(n.oe)}},props:{dataConfig:{type:Object,default:function(){}},isSortType:{type:String|Number,default:0}},data:function(){return{datatime:"",spikeList:[],countDownColor:this.dataConfig.countDownColor.color[0].item,themeColor:this.dataConfig.themeColor.color[0].item,numberConfig:this.dataConfig.numberConfig.val,lrConfig:this.dataConfig.lrConfig.val,mbConfig:this.dataConfig.mbConfig.val,imgUrl:this.dataConfig.imgConfig.url,priceShow:this.dataConfig.priceShow.val,discountShow:this.dataConfig.discountShow.val,titleShow:this.dataConfig.titleShow.val,seckillShow:this.dataConfig.seckillShow.val,conStyle:this.dataConfig.conStyle.type,prConfig:this.dataConfig.prConfig.val,bgColor:this.dataConfig.bgColor.color[0].item}},created:function(){},mounted:function(){this.getSeckillIndexTime()},methods:{getSeckillIndexTime:function(){var t=this,i=this.$config.LIMIT,n={page:1,limit:this.numberConfig>=i?i:this.numberConfig,type:"index"};(0,e.getSeckillIndexTime)().then((function(i){if(-1!==i.data.seckillTimeIndex){t.datatime=i.data.seckillTime[i.data.seckillTimeIndex].stop;var o=i.data.seckillTime[i.data.seckillTimeIndex].id;(0,e.getSeckillList)(o,n).then((function(i){var n=i.data;n.forEach((function(i){var n=0;i.price>0&&i.ot_price>0&&(n=(parseFloat(i.price)/parseFloat(i.ot_price)).toFixed(2)),i.discountNum=t.$util.$h.Mul(n,10)})),t.spikeList=n}))}}))}}};i.default=o},"4e23":function(t,i,n){"use strict";n.r(i);var e=n("32fa"),o=n.n(e);for(var a in e)["default"].indexOf(a)<0&&function(t){n.d(i,t,(function(){return e[t]}))}(a);i["default"]=o.a},6534:function(t,i,n){},a453:function(t,i,n){"use strict";var e=n("6534"),o=n.n(e);o.a}}]); ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ 'pages/index/diy/components/seckill-create-component', { 'pages/index/diy/components/seckill-create-component':(function(module, exports, __webpack_require__){ __webpack_require__('543d')['createComponent'](__webpack_require__("126f")) }) }, [['pages/index/diy/components/seckill-create-component']] ]);