1 line
11 KiB
JavaScript
1 line
11 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[39,13,16,18],{439:function(t,e,r){"use strict";var n=r(18),o=r(2),l=r(3),c=r(137),d=r(27),f=r(19),m=r(273),v=r(54),h=r(136),x=r(272),_=r(5),y=r(97).f,w=r(45).f,S=r(25).f,N=r(440),C=r(441).trim,k="Number",E=o.Number,I=E.prototype,z=o.TypeError,M=l("".slice),T=l("".charCodeAt),F=function(t){var e=x(t,"number");return"bigint"==typeof e?e:O(e)},O=function(t){var e,r,n,o,l,c,d,code,f=x(t,"number");if(h(f))throw z("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=C(f),43===(e=T(f,0))||45===e){if(88===(r=T(f,2))||120===r)return NaN}else if(48===e){switch(T(f,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+f}for(c=(l=M(f,2)).length,d=0;d<c;d++)if((code=T(l,d))<48||code>o)return NaN;return parseInt(l,n)}return+f};if(c(k,!E(" 0o1")||!E("0b1")||E("+0x1"))){for(var A,L=function(t){var e=arguments.length<1?0:E(F(t)),r=this;return v(I,r)&&_((function(){N(r)}))?m(Object(e),r,L):e},R=n?y(E):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),$=0;R.length>$;$++)f(E,A=R[$])&&!f(L,A)&&S(L,A,w(E,A));L.prototype=I,I.constructor=L,d(o,k,L)}},440:function(t,e,r){var n=r(3);t.exports=n(1..valueOf)},441:function(t,e,r){var n=r(3),o=r(33),l=r(17),c=r(442),d=n("".replace),f="["+c+"]",m=RegExp("^"+f+f+"*"),v=RegExp(f+f+"*$"),h=function(t){return function(e){var r=l(o(e));return 1&t&&(r=d(r,m,"")),2&t&&(r=d(r,v,"")),r}};t.exports={start:h(1),end:h(2),trim:h(3)}},442:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},443:function(t,e,r){var content=r(446);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(15).default)("3181fc86",content,!0,{sourceMap:!1})},444:function(t,e,r){"use strict";r.r(e);r(439),r(39),r(274);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:400},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=String(t).split("."),e.first=t[0],e.second=t[1],this.priceSlice=e)}}},o=(r(445),r(9)),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},445:function(t,e,r){"use strict";r(443)},446:function(t,e,r){var n=r(14)(!1);n.push([t.i,".price-format{display:flex;align-items:baseline}",""]),t.exports=n},447:function(t,e,r){var content=r(449);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(15).default)("12a18d22",content,!0,{sourceMap:!1})},448:function(t,e,r){"use strict";r(447)},449:function(t,e,r){var n=r(14)(!1);n.push([t.i,".null-data[data-v-93598fb0]{padding:100px}.null-data .img-null[data-v-93598fb0]{width:150px;height:150px}",""]),t.exports=n},450: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(448),r(9)),component=Object(o.a)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"bg-white flex-col col-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,"93598fb0",null);e.default=component.exports},453:function(t,e,r){var content=r(458);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(15).default)("1469a4e1",content,!0,{sourceMap:!1})},457:function(t,e,r){"use strict";r(453)},458:function(t,e,r){var n=r(14)(!1);n.push([t.i,".goods-list[data-v-060944d1]{align-items:stretch}.goods-list .goods-item[data-v-060944d1]{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-060944d1]:hover{transform:translateY(-8px);box-shadow:0 0 6px rgba(0,0,0,.1)}.goods-list .goods-item .goods-img[data-v-060944d1]{width:200px;height:200px}.goods-list .goods-item .name[data-v-060944d1]{margin-bottom:10px;height:40px;line-height:20px}.goods-list .goods-item .seckill .btn[data-v-060944d1]{padding:4px 12px;border-radius:4px;border:1px solid transparent}.goods-list .goods-item .seckill .btn.not-start[data-v-060944d1]{border-color:#ff2c3c;color:#ff2c3c;background-color:transparent}.goods-list .goods-item .seckill .btn.end[data-v-060944d1]{background-color:#e5e5e5;color:#fff}",""]),t.exports=n},464:function(t,e,r){"use strict";r.r(e);r(439);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(457),r(9)),component=Object(o.a)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"goods-list flex flex-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||e.goods_id)}},[r("el-image",{staticClass:"goods-img",attrs:{lazy:"",src:e.image||e.goods_image,alt:""}}),t._v(" "),r("div",{staticClass:"name line-2"},[t._v(t._s(e.name||e.goods_name))]),t._v(" "),"seckill"==t.type?r("div",{staticClass:"seckill flex row-between"},[r("div",{staticClass:"primary flex"},[t._v("\n 秒杀价\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)+"\n ")])]):r("div",{staticClass:"flex row-between flex-wrap"},[r("div",{staticClass:"price flex col-baseline"},[r("div",{staticClass:"primary m-r-8"},[r("price-formate",{attrs:{price:e.min_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_total||e.sales_sum||0)+"人购买")])])],1)})),1)}),[],!1,null,"060944d1",null);e.default=component.exports;installComponents(component,{PriceFormate:r(444).default})},466:function(t,e,r){t.exports=r.p+"img/goods_null.38f1689.png"},532:function(t,e,r){var content=r(590);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(15).default)("ad05104a",content,!0,{sourceMap:!1})},589:function(t,e,r){"use strict";r(532)},590:function(t,e,r){var n=r(14),o=r(189),l=r(591),c=n(!1),d=o(l);c.push([t.i,".special-area .header-top[data-v-5f15828c]{margin:16px 0}.special-area .header-img[data-v-5f15828c]{width:1180px;height:240px;background:url("+d+")}.special-area .header-img .header-img-tile .max-title[data-v-5f15828c]{margin-top:65px;font-size:32px;text-align:center}.special-area .header-img .header-img-tile .min-title[data-v-5f15828c]{padding:5px 27px;font-size:14px;text-align:center;border-radius:100px;background-color:#ba7af6}",""]),t.exports=c},591:function(t,e,r){t.exports=r.p+"img/special_area_bg.cc0dd5c.jpg"},661:function(t,e,r){"use strict";r.r(e);var n=r(6),o=(r(53),r(40),{head:function(){return{title:this.$store.getters.headTitle,link:[{rel:"icon",type:"image/x-icon",href:this.$store.getters.favicon}]}},asyncData:function(t){return Object(n.a)(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.query,e.abrupt("return",{name:r.name,title:r.title});case 2:case"end":return e.stop()}}),e)})))()},data:function(){return{goodsList:[],page:1,count:0}},methods:{getGoods:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){var r,n,code,o,l,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.$route.query.id,e.next=3,t.$get("activity_area/activityGoodsList",{params:{id:r,page_no:t.page,page_size:20}});case 3:n=e.sent,code=n.code,o=n.data,l=o.list,c=o.count,1==code&&(t.goodsList=l,t.count=c);case 9:case"end":return e.stop()}}),e)})))()},changePage:function(t){this.page=t,this.getGoods()}},created:function(){this.getGoods()}}),l=(r(589),r(9)),component=Object(l.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"special-area"},[n("div",{staticClass:"header-top"},[n("el-breadcrumb",{staticStyle:{flex:"1"},attrs:{separator:"/"}},[n("el-breadcrumb-item",{attrs:{to:{path:"/"}}},[t._v("首页")]),t._v(" "),n("el-breadcrumb-item",{staticClass:"line1",staticStyle:{"max-width":"800px"}},[t._v(t._s(t.name))])],1)],1),t._v(" "),n("div",{staticClass:"m-b-20 header-img"},[n("div",{staticClass:"header-img-tile flex-col col-center row-center"},[n("div",{staticClass:"max-title white"},[t._v("\n "+t._s(t.name)+"\n ")]),t._v(" "),n("div",{staticClass:"m-t-22 min-title white"},[t._v("\n "+t._s(t.title)+"\n ")])])]),t._v(" "),t.goodsList.length?[n("goods-list",{attrs:{list:t.goodsList}}),t._v(" "),t.count?n("div",{staticClass:"pagination flex m-t-30 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":20},on:{"current-change":t.changePage}})],1):t._e()]:n("null-data",{attrs:{img:r(466),text:"暂无商品~"}})],2)}),[],!1,null,"5f15828c",null);e.default=component.exports;installComponents(component,{GoodsList:r(464).default,NullData:r(450).default})}}]); |