seckill.js 3.2 KB

12345678910
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/diy/components/seckill"],{"1d88":function(t,i,n){},2908:function(t,i,n){"use strict";n.r(i);var e=n("315d4"),o=n("9198");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(i,t,(function(){return o[t]}))}(a);n("48a64");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},"315d4":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>0&&t.$permission("seckill")),e=n?t.$t("限时秒杀"):null,o=n?t.$t("更多"):null,a=n?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=[]},"48a64":function(t,i,n){"use strict";var e=n("1d88"),o=n.n(e);o.a},"690a":function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e=n("84d8"),o={name:"seckill",components:{countDown:function(){n.e("components/countDown/index").then(function(){return resolve(n("80f6"))}.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},9198:function(t,i,n){"use strict";n.r(i);var e=n("690a"),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}}]);
  2. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  3. 'pages/index/diy/components/seckill-create-component',
  4. {
  5. 'pages/index/diy/components/seckill-create-component':(function(module, exports, __webpack_require__){
  6. __webpack_require__('543d')['createComponent'](__webpack_require__("2908"))
  7. })
  8. },
  9. [['pages/index/diy/components/seckill-create-component']]
  10. ]);