1 line
3.2 KiB
JavaScript
1 line
3.2 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{415:function(e,t,r){"use strict";var n=r(13),o=r(2),c=r(121),l=r(24),f=r(14),h=r(53),d=r(258),N=r(84),m=r(257),S=r(5),_=r(70),v=r(85).f,y=r(45).f,I=r(23).f,E=r(416).trim,w="Number",x=o.Number,A=x.prototype,F=h(_(A))==w,z=function(e){if(N(e))throw TypeError("Cannot convert a Symbol value to a number");var t,r,n,o,c,l,f,code,h=m(e,"number");if("string"==typeof h&&h.length>2)if(43===(t=(h=E(h)).charCodeAt(0))||45===t){if(88===(r=h.charCodeAt(2))||120===r)return NaN}else if(48===t){switch(h.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+h}for(l=(c=h.slice(2)).length,f=0;f<l;f++)if((code=c.charCodeAt(f))<48||code>o)return NaN;return parseInt(c,n)}return+h};if(c(w,!x(" 0o1")||!x("0b1")||x("+0x1"))){for(var T,M=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof M&&(F?S((function(){A.valueOf.call(r)})):h(r)!=w)?d(new x(z(t)),r,M):z(t)},C=n?v(x):"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(","),k=0;C.length>k;k++)f(x,T=C[k])&&!f(M,T)&&I(M,T,y(x,T));M.prototype=A,A.constructor=M,l(o,w,M)}},416:function(e,t,r){var n=r(28),o=r(11),c="["+r(417)+"]",l=RegExp("^"+c+c+"*"),f=RegExp(c+c+"*$"),h=function(e){return function(t){var r=o(n(t));return 1&e&&(r=r.replace(l,"")),2&e&&(r=r.replace(f,"")),r}};e.exports={start:h(1),end:h(2),trim:h(3)}},417:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},418:function(e,t,r){var content=r(421);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(16).default)("03051d40",content,!0,{sourceMap:!1})},419:function(e,t,r){"use strict";r.r(t);r(415),r(69),r(259);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(e){this.priceFormat()}},methods:{priceFormat:function(){var e=this.price,t={};null!==e&&(e=parseFloat(e),e=String(e).split("."),t.first=e[0],t.second=e[1],this.priceSlice=t)}}},o=(r(420),r(7)),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},420:function(e,t,r){"use strict";r(418)},421:function(e,t,r){var n=r(15)(!1);n.push([e.i,".price-format{display:flex;align-items:baseline}",""]),e.exports=n}}]); |