glhcp/server/public/pc/_nuxt/9459641.js

1 line
6.2 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window.webpackJsonp=window.webpackJsonp||[]).push([[4,18],{439:function(t,e,r){"use strict";var n=r(18),o=r(2),l=r(3),c=r(137),f=r(27),d=r(19),v=r(273),m=r(54),h=r(136),_=r(272),y=r(5),S=r(97).f,w=r(45).f,x=r(25).f,N=r(440),z=r(441).trim,C="Number",I=o.Number,E=I.prototype,k=o.TypeError,F=l("".slice),A=l("".charCodeAt),M=function(t){var e=_(t,"number");return"bigint"==typeof e?e:T(e)},T=function(t){var e,r,n,o,l,c,f,code,d=_(t,"number");if(h(d))throw k("Cannot convert a Symbol value to a number");if("string"==typeof d&&d.length>2)if(d=z(d),43===(e=A(d,0))||45===e){if(88===(r=A(d,2))||120===r)return NaN}else if(48===e){switch(A(d,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+d}for(c=(l=F(d,2)).length,f=0;f<c;f++)if((code=A(l,f))<48||code>o)return NaN;return parseInt(l,n)}return+d};if(c(C,!I(" 0o1")||!I("0b1")||I("+0x1"))){for(var O,L=function(t){var e=arguments.length<1?0:I(M(t)),r=this;return m(E,r)&&y((function(){N(r)}))?v(Object(e),r,L):e},R=n?S(I):"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(","),V=0;R.length>V;V++)d(I,O=R[V])&&!d(L,O)&&x(L,O,w(I,O));L.prototype=E,E.constructor=L,f(o,C,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),f=n("".replace),d="["+c+"]",v=RegExp("^"+d+d+"*"),m=RegExp(d+d+"*$"),h=function(t){return function(e){var r=l(o(e));return 1&t&&(r=f(r,v,"")),2&t&&(r=f(r,m,"")),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},498:function(t,e,r){var content=r(519);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(15).default)("5072c71b",content,!0,{sourceMap:!1})},518:function(t,e,r){"use strict";r(498)},519:function(t,e,r){var n=r(14)(!1);n.push([t.i,".activity-area[data-v-008ee916]{padding:16px;border-radius:6px;background-color:#fff}.activity-area[data-v-008ee916] .swiper-container{width:100%;height:280px}.activity-area .goods-list .goods-item[data-v-008ee916]{width:31.5%}.activity-area .goods-list .goods-item .goods-img[data-v-008ee916]{width:100%;height:0;padding-top:100%;position:relative}.activity-area .goods-list .goods-item .goods-img .el-image[data-v-008ee916]{position:absolute;width:100%;height:100%;left:0;top:0}.activity-area .goods-list .goods-item .name[data-v-008ee916]{line-height:20px;height:40px}",""]),t.exports=n},562:function(t,e,r){"use strict";r.r(e);r(61);var n={components:{},props:{url:{type:String,default:""},title:{type:String},list:{type:Array,default:function(){return[]}}},data:function(){return{swiperOptions:{direction:"vertical",initialSlide:0,height:280,autoplay:!0},pageSize:3}},computed:{swiperSize:function(){return Math.ceil(this.list.length/this.pageSize)},getSwiperList:function(){var t=this;return function(e){return t.list.slice(e*t.pageSize,(e+1)*t.pageSize)}}}},o=(r(518),r(9)),component=Object(o.a)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.list.length?r("div",{staticClass:"activity-area m-t-16"},[r("div",{staticClass:"title flex row-between"},[r("div",{staticClass:"font-size-20"},[t._v(t._s(t.title))]),t._v(" "),r("nuxt-link",{staticClass:"more lighter",attrs:{to:t.url}},[t._v("更多 "),r("i",{staticClass:"el-icon-arrow-right"})])],1),t._v(" "),r("div",{staticClass:"activity-goods m-t-16"},[r("client-only",[r("swiper",{ref:"headerSwiper",attrs:{options:t.swiperOptions}},t._l(t.swiperSize,(function(e,n){return r("swiper-slide",{key:n,staticClass:"swiper-item"},[r("div",{staticClass:"goods-list flex row-between"},t._l(t.getSwiperList(n),(function(e,n){return r("nuxt-link",{key:n,staticClass:"goods-item",attrs:{to:"/goods_details/"+e.id}},[r("div",{staticClass:"goods-img"},[r("el-image",{attrs:{lazy:"",src:e.image,fit:"cover",alt:""}})],1),t._v(" "),r("div",{staticClass:"name line-2 m-t-10"},[t._v(t._s(e.name))]),t._v(" "),r("div",{staticClass:"price flex col-baseline m-t-10"},[r("div",{staticClass:"primary m-r-8"},[r("price-formate",{attrs:{price:e.min_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 m-t-10"},[t._v("\n "+t._s(e.sales_total)+"人购买\n ")])])})),1)])})),1)],1)],1)]):t._e()}),[],!1,null,"008ee916",null);e.default=component.exports;installComponents(component,{PriceFormate:r(444).default})}}]);