seckill.js 3.6 KB

12345678910
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/visualization/components/seckill"],{"032d":function(t,e,i){"use strict";var n=i("9416"),s=i.n(n);s.a},9055:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=(t._self._c,t.isIframe&&!t.spikeList.length),n=i?t.$t("秒杀模块,暂无数据"):null,s=t.spikeList.length&&t.isShow&&!t.isIframe,a=s?t.$t("限时秒杀"):null,o=s?t.$t("场"):null,l=s?t.$t("更多"):null,c=s?t.__map(t.spikeList,(function(e,i){var n=t.__get_orig(e),s=t.$t("¥"),a=t.$t("¥");return{$orig:n,m4:s,m5:a}})):null,u=t.spikeList.length&&t.isIframe,r=u?t.$t("限时秒杀"):null,d=u?t.$t("场"):null,f=u?t.$t("更多"):null,p=u?t.__map(t.spikeList,(function(e,i){var n=t.__get_orig(e),s=t.$t("¥"),a=t.$t("¥");return{$orig:n,m9:s,m10:a}})):null;t.$mp.data=Object.assign({},{$root:{g0:i,m0:n,g1:s,m1:a,m2:o,m3:l,l0:c,g2:u,m6:r,m7:d,m8:f,l1:p}})},s=[]},9416:function(t,e,i){},cc9d:function(t,e,i){"use strict";i.r(e);var n=i("f6cc"),s=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=s.a},f616:function(t,e,i){"use strict";i.r(e);var n=i("9055"),s=i("cc9d");for(var a in s)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return s[t]}))}(a);i("032d");var o=i("f0c5"),l=Object(o["a"])(s["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=l.exports},f6cc:function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("6557"),s=i("2a39"),a=getApp(),o={name:"seckill",components:{countDown:function(){i.e("components/countDown/index").then(function(){return resolve(i("80f6"))}.bind(null,i)).catch(i.oe)}},props:{dataConfig:{type:Object,default:function(){}}},watch:{dataConfig:{immediate:!0,handler:function(t,e){t&&(this.isShow=t.isShow.val,this.selectType=t.tabConfig.tabVal,this.$set(this,"selectId",t.selectConfig.activeValue||""),this.$set(this,"type",t.titleInfo.type),this.salesOrder=1==t.goodsSort.type?"desc":"",this.newsOrder=2==t.goodsSort.type?"news":"",this.ids=t.ids?t.ids.join(","):"",this.numConfig=t.numConfig.val,this.productslist())}}},data:function(){return{datatime:0,point:"",spikeList:[],name:this.$options.name,isIframe:a.globalData.isIframe,isShow:!0,selectType:0,selectId:"",salesOrder:"",newsOrder:"",ids:"",page:1,limit:this.$config.LIMIT,type:"",numConfig:0}},created:function(){},mounted:function(){},methods:{productslist:function(){var t=this,e={};e=t.selectType?{page:t.page,limit:t.limit,type:t.type,ids:t.ids,selectType:t.selectType}:{page:t.page,limit:t.numConfig<=t.limit?t.numConfig:t.limit,type:t.type,newsOrder:t.newsOrder,salesOrder:t.salesOrder,selectId:t.selectId,selectType:t.selectType},(0,s.getHomeProducts)(e).then((function(e){t.spikeList=e.data.list,t.point=e.data.time,t.datatime=e.data.stop})).catch((function(e){t.$util.Tips({title:e})}))},goDetail:function(e){var i=this;(0,n.goPage)(e).then((function(n){t.navigateTo({url:"/pages/activity/goods_seckill_details/index?id=".concat(e.id,"&time=").concat(i.datatime,"&status=1")})}))}}};e.default=o}).call(this,i("543d")["default"])}}]);
  2. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  3. 'pages/index/visualization/components/seckill-create-component',
  4. {
  5. 'pages/index/visualization/components/seckill-create-component':(function(module, exports, __webpack_require__){
  6. __webpack_require__('543d')['createComponent'](__webpack_require__("f616"))
  7. })
  8. },
  9. [['pages/index/visualization/components/seckill-create-component']]
  10. ]);