dggzichahu/public/pc/_nuxt/3f760be.js

1 line
12 KiB
JavaScript
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window.webpackJsonp=window.webpackJsonp||[]).push([[34,12,14,15],{404:function(t,e,r){"use strict";var n=r(11),o=r(5),c=r(116),l=r(23),d=r(15),f=r(52),m=r(251),v=r(81),h=r(7),x=r(83),w=r(82).f,_=r(42).f,y=r(22).f,k=r(405).trim,S="Number",C=o.Number,I=C.prototype,N=f(x(I))==S,E=function(t){var e,r,n,o,c,l,d,code,f=v(t,!1);if("string"==typeof f&&f.length>2)if(43===(e=(f=k(f)).charCodeAt(0))||45===e){if(88===(r=f.charCodeAt(2))||120===r)return NaN}else if(48===e){switch(f.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+f}for(l=(c=f.slice(2)).length,d=0;d<l;d++)if((code=c.charCodeAt(d))<48||code>o)return NaN;return parseInt(c,n)}return+f};if(c(S,!C(" 0o1")||!C("0b1")||C("+0x1"))){for(var z,A=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof A&&(N?h((function(){I.valueOf.call(r)})):f(r)!=S)?m(new C(E(e)),r,A):E(e)},T=n?w(C):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),L=0;T.length>L;L++)d(C,z=T[L])&&!d(A,z)&&y(A,z,_(C,z));A.prototype=I,I.constructor=A,l(o,S,A)}},405:function(t,e,r){var n=r(27),o="["+r(406)+"]",c=RegExp("^"+o+o+"*"),l=RegExp(o+o+"*$"),d=function(t){return function(e){var r=String(n(e));return 1&t&&(r=r.replace(c,"")),2&t&&(r=r.replace(l,"")),r}};t.exports={start:d(1),end:d(2),trim:d(3)}},406:function(t,e){t.exports="\t\n\v\f\r    \u2028\u2029\ufeff"},407:function(t,e,r){var content=r(409);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(14).default)("03051d40",content,!0,{sourceMap:!1})},408:function(t,e,r){"use strict";r(407)},409:function(t,e,r){var n=r(13)(!1);n.push([t.i,".price-format{display:flex;align-items:baseline}",""]),t.exports=n},410:function(t,e,r){"use strict";r.r(e);r(404),r(68),r(252);var n={data:function(){return{priceSlice:{}}},components:{},props:{firstSize:{type:Number,default:14},secondSize:{type:Number,default:14},color:{type:String},weight:{type:[String,Number],default:500},price:{type:[String,Number],default:""},showSubscript:{type:Boolean,default:!0},subscriptSize:{type:Number,default:14},lineThrough:{type:Boolean,default:!1}},created:function(){this.priceFormat()},watch:{price:function(t){this.priceFormat()}},methods:{priceFormat:function(){var t=this.price,e={};null!==t&&(t=parseFloat(t),t=String(t).split("."),e.first=t[0],e.second=t[1],this.priceSlice=e)}}},o=(r(408),r(8)),component=Object(o.a)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("span",{class:(t.lineThrough?"line-through":"")+"price-format",style:{color:t.color,"font-weight":t.weight}},[t.showSubscript?r("span",{style:{"font-size":t.subscriptSize+"px","margin-right":"1px"}},[t._v("¥")]):t._e(),t._v(" "),r("span",{style:{"font-size":t.firstSize+"px","margin-right":"1px"}},[t._v(t._s(t.priceSlice.first))]),t._v(" "),t.priceSlice.second?r("span",{style:{"font-size":t.secondSize+"px"}},[t._v("."+t._s(t.priceSlice.second))]):t._e()])}),[],!1,null,null,null);e.default=component.exports},411:function(t,e,r){var content=r(413);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(14).default)("7277513c",content,!0,{sourceMap:!1})},412:function(t,e,r){"use strict";r(411)},413:function(t,e,r){var n=r(13)(!1);n.push([t.i,".null-data[data-v-7fa0e58c]{padding:100px}.null-data .img-null[data-v-7fa0e58c]{width:150px;height:150px}",""]),t.exports=n},414:function(t,e,r){"use strict";r.r(e);var n={components:{},props:{img:{type:String},text:{type:String,default:"暂无数据"},imgStyle:{type:String,default:""}},methods:{}},o=(r(412),r(8)),component=Object(o.a)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"bg-white column-center null-data"},[r("img",{staticClass:"img-null",style:t.imgStyle,attrs:{src:t.img,alt:""}}),t._v(" "),r("div",{staticClass:"muted mt8"},[t._v(t._s(t.text))])])}),[],!1,null,"7fa0e58c",null);e.default=component.exports},418:function(t,e,r){var content=r(426);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(14).default)("f37a30f2",content,!0,{sourceMap:!1})},425:function(t,e,r){"use strict";r(418)},426:function(t,e,r){var n=r(13)(!1);n.push([t.i,".goods-list[data-v-483dfcdd]{align-items:stretch}.goods-list .goods-item[data-v-483dfcdd]{display:block;box-sizing:border-box;width:224px;height:310px;margin-bottom:16px;padding:12px 12px 16px;border-radius:4px;transition:all .2s}.goods-list .goods-item[data-v-483dfcdd]:hover{transform:translateY(-8px);box-shadow:0 0 6px rgba(0,0,0,.1)}.goods-list .goods-item .goods-img[data-v-483dfcdd]{width:200px;height:200px}.goods-list .goods-item .name[data-v-483dfcdd]{margin-bottom:10px;height:40px;line-height:20px}.goods-list .goods-item .seckill .btn[data-v-483dfcdd]{padding:4px 12px;border-radius:4px;border:1px solid transparent}.goods-list .goods-item .seckill .btn.not-start[data-v-483dfcdd]{border-color:#ff2c3c;color:#ff2c3c;background-color:transparent}.goods-list .goods-item .seckill .btn.end[data-v-483dfcdd]{background-color:#e5e5e5;color:#fff}",""]),t.exports=n},433:function(t,e,r){"use strict";r.r(e);r(404);var n={props:{list:{type:Array,default:function(){return[]}},num:{type:Number,default:5},type:{type:String},status:{type:Number}},watch:{list:{immediate:!0,handler:function(t){}}},computed:{getSeckillText:function(){switch(this.status){case 0:return"未开始";case 1:return"立即抢购";case 2:return"已结束"}}}},o=(r(425),r(8)),component=Object(o.a)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"goods-list row wrap"},t._l(t.list,(function(e,n){return r("nuxt-link",{key:n,staticClass:"goods-item bg-white",style:{marginRight:(n+1)%t.num==0?0:"14px"},attrs:{to:"/goods_details/"+e.id}},[r("el-image",{staticClass:"goods-img",attrs:{lazy:"",src:e.image,alt:""}}),t._v(" "),r("div",{staticClass:"name line2"},[t._v(t._s(e.name))]),t._v(" "),"seckill"==t.type?r("div",{staticClass:"seckill row-between"},[r("div",{staticClass:"primary row"},[t._v("\n 秒杀价"),r("price-formate",{attrs:{price:e.seckill_price,"first-size":18}})],1),t._v(" "),r("div",{class:["btn bg-primary white",{"not-start":0==t.status,end:2==t.status}]},[t._v(t._s(t.getSeckillText))])]):r("div",{staticClass:"row-between wrap"},[r("div",{staticClass:"price row"},[r("div",{staticClass:"primary mr8"},[r("price-formate",{attrs:{price:e.price,"first-size":16}})],1),t._v(" "),r("div",{staticClass:"muted sm line-through"},[r("price-formate",{attrs:{price:e.market_price}})],1)]),t._v(" "),r("div",{staticClass:"muted xs"},[t._v(t._s(e.sales_sum)+"人购买")])])],1)})),1)}),[],!1,null,"483dfcdd",null);e.default=component.exports;installComponents(component,{PriceFormate:r(410).default})},446:function(t,e,r){t.exports=r.p+"img/goods_null.38f1689.png"},448:function(t,e,r){"use strict";var n=r(2),o=r(86).findIndex,c=r(168),l="findIndex",d=!0;l in[]&&Array(1).findIndex((function(){d=!1})),n({target:"Array",proto:!0,forced:d},{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),c(l)},484:function(t,e,r){var content=r(532);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(14).default)("3bb20a00",content,!0,{sourceMap:!1})},530:function(t,e,r){t.exports=r.p+"img/seckill_banner.e023174.png"},531:function(t,e,r){"use strict";r(484)},532:function(t,e,r){var n=r(13)(!1);n.push([t.i,".seckill .banner img[data-v-d8a2ecb4]{width:100%;display:block}.seckill .time-list[data-v-d8a2ecb4]{background-color:#414141}.seckill .time-list .swiper[data-v-d8a2ecb4]{--swiper-navigation-size:20px;--swiper-navigation-color:#fff}.seckill .time-list .swiper .swiper-button-next[data-v-d8a2ecb4],.seckill .time-list .swiper .swiper-button-prev[data-v-d8a2ecb4]{top:0;width:25px;height:100%;margin-top:0;background-size:12px 22px}.seckill .time-list .swiper .swiper-button-prev[data-v-d8a2ecb4]{left:0}.seckill .time-list .swiper .swiper-button-next[data-v-d8a2ecb4]{right:0}.seckill .time-list .swiper .swiper-item[data-v-d8a2ecb4]{cursor:pointer;height:60px;width:120px}.seckill .time-list .swiper .swiper-item.active[data-v-d8a2ecb4]{background-color:#ff2c3c}.seckill .time-list .swiper .swiper-item.active .time-status[data-v-d8a2ecb4]{background-color:#fff;color:#ff2c3c}.seckill .time-list .swiper .swiper-item .time-status[data-v-d8a2ecb4]{color:#ccc;border-radius:60px;padding:1px 8px}",""]),t.exports=n},603:function(t,e,r){"use strict";r.r(e);var n=r(3),o=(r(47),r(448),{head:function(){return{title:this.$store.getters.headTitle,link:[{rel:"icon",type:"image/x-icon",href:this.$store.getters.favicon}]}},components:{},watchQuery:!0,asyncData:function(t){return Object(n.a)(regeneratorRuntime.mark((function e(){var r,n,data,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.$get,e.next=3,r("seckill/seckillTime");case 3:return n=e.sent,data=n.data,-1==(o=data.findIndex((function(t){return 1==t.status})))&&(o=data.findIndex((function(t){return 0==t.status}))),e.abrupt("return",{timeList:data,swiperIndex:o});case 8:case"end":return e.stop()}}),e)})))()},data:function(){return{page:1,swiperIndex:0,count:0,goodsList:[],timeList:[],hasData:!0,swiperOptions:{initialSlide:0,pagination:{el:".swiper-pagination",clickable:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},preventClicks:!0,slidesPerView:"auto"}}},created:function(){this.swiperOptions.initialSlide=this.swiperIndex,this.getGoods()},methods:{changeTime:function(t){this.swiperIndex=t,this.getGoods(),this.page=1,this.goodsList=[]},changePage:function(t){this.page=t,this.getGoods()},getGoods:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){var r,n,o,c,l,d,f,m;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.swiperIndex,n=t.timeList,o=t.page,c=n[r]?n[r].id:-1,e.next=4,t.$get("seckill/seckillGoods",{params:{page_size:10,page_no:o,id:c}});case 4:l=e.sent,d=l.data,f=d.list,m=d.count,1==l.code&&(t.goodsList=f,t.hasData=!!f.length,t.count=m);case 10:case"end":return e.stop()}}),e)})))()}},computed:{status:function(){var t=this.swiperIndex,e=this.timeList;return e[t]?e[t].status:-1}}}),c=(r(531),r(8)),component=Object(c.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"seckill"},[n("div",{staticClass:"banner mt16 column"},[n("el-image",{attrs:{src:r(530)}})],1),t._v(" "),n("div",{staticClass:"time-list"},[n("client-only",[n("swiper",{ref:"mySwiper",staticClass:"swiper",attrs:{options:t.swiperOptions}},[t._l(t.timeList,(function(e,r){return n("swiper-slide",{key:r,class:{"swiper-item":!0,active:r===t.swiperIndex}},[n("div",{staticClass:"column-center white",staticStyle:{width:"100%",height:"100%"},on:{click:function(e){return t.changeTime(r)}}},[n("div",{staticClass:"bold xxl"},[t._v(t._s(e.start_time))]),t._v(" "),n("div",{staticClass:"xs time-status"},[t._v(t._s(e.tips))])])])})),t._v(" "),n("div",{staticClass:"swiper-button-prev",attrs:{slot:"button-prev"},slot:"button-prev"}),t._v(" "),n("div",{staticClass:"swiper-button-next",attrs:{slot:"button-next"},slot:"button-next"})],2)],1)],1),t._v(" "),n("div",{staticClass:"goods mt16"},[t.hasData?[n("goods-list",{attrs:{type:"seckill",list:t.goodsList,status:t.status}}),t._v(" "),t.count?n("div",{staticClass:"pagination row-center",staticStyle:{"padding-bottom":"38px"}},[n("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:t.count,"prev-text":"上一页","next-text":"下一页","hide-on-single-page":"","page-size":10},on:{"current-change":t.changePage}})],1):t._e()]:n("null-data",{attrs:{img:r(446),text:"暂无秒杀~"}})],2)])}),[],!1,null,"d8a2ecb4",null);e.default=component.exports;installComponents(component,{GoodsList:r(433).default,NullData:r(414).default})}}]);