1 line
3.3 KiB
JavaScript
1 line
3.3 KiB
JavaScript
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{439:function(e,t,r){"use strict";var n=r(18),o=r(2),c=r(3),f=r(137),l=r(27),h=r(19),d=r(273),m=r(54),N=r(136),S=r(272),v=r(5),_=r(97).f,y=r(45).f,I=r(25).f,E=r(440),x=r(441).trim,w="Number",z=o.Number,F=z.prototype,T=o.TypeError,A=c("".slice),M=c("".charCodeAt),O=function(e){var t=S(e,"number");return"bigint"==typeof t?t:k(t)},k=function(e){var t,r,n,o,c,f,l,code,h=S(e,"number");if(N(h))throw T("Cannot convert a Symbol value to a number");if("string"==typeof h&&h.length>2)if(h=x(h),43===(t=M(h,0))||45===t){if(88===(r=M(h,2))||120===r)return NaN}else if(48===t){switch(M(h,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+h}for(f=(c=A(h,2)).length,l=0;l<f;l++)if((code=M(c,l))<48||code>o)return NaN;return parseInt(c,n)}return+h};if(f(w,!z(" 0o1")||!z("0b1")||z("+0x1"))){for(var R,V=function(e){var t=arguments.length<1?0:z(O(e)),r=this;return m(F,r)&&v((function(){E(r)}))?d(Object(t),r,V):t},G=n?_(z):"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(","),L=0;G.length>L;L++)h(z,R=G[L])&&!h(V,R)&&I(V,R,y(z,R));V.prototype=F,F.constructor=V,l(o,w,V)}},440:function(e,t,r){var n=r(3);e.exports=n(1..valueOf)},441:function(e,t,r){var n=r(3),o=r(33),c=r(17),f=r(442),l=n("".replace),h="["+f+"]",d=RegExp("^"+h+h+"*"),m=RegExp(h+h+"*$"),N=function(e){return function(t){var r=c(o(t));return 1&e&&(r=l(r,d,"")),2&e&&(r=l(r,m,"")),r}};e.exports={start:N(1),end:N(2),trim:N(3)}},442:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},443:function(e,t,r){var content=r(446);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(15).default)("3181fc86",content,!0,{sourceMap:!1})},444:function(e,t,r){"use strict";r.r(t);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(e){this.priceFormat()}},methods:{priceFormat:function(){var e=this.price,t={};null!==e&&(e=String(e).split("."),t.first=e[0],t.second=e[1],this.priceSlice=t)}}},o=(r(445),r(9)),component=Object(o.a)(n,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("span",{class:(e.lineThrough?"line-through":"")+"price-format",style:{color:e.color,"font-weight":e.weight}},[e.showSubscript?r("span",{style:{"font-size":e.subscriptSize+"px","margin-right":"1px"}},[e._v("¥")]):e._e(),e._v(" "),r("span",{style:{"font-size":e.firstSize+"px","margin-right":"1px"}},[e._v(e._s(e.priceSlice.first))]),e._v(" "),e.priceSlice.second?r("span",{style:{"font-size":e.secondSize+"px"}},[e._v("."+e._s(e.priceSlice.second))]):e._e()])}),[],!1,null,null,null);t.default=component.exports},445:function(e,t,r){"use strict";r(443)},446:function(e,t,r){var n=r(14)(!1);n.push([e.i,".price-format{display:flex;align-items:baseline}",""]),e.exports=n}}]);
|