This commit is contained in:
2026-04-14 17:38:46 +08:00
commit b71e6d6bae
2848 changed files with 237896 additions and 0 deletions

View File

@ -0,0 +1,10 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/price-format/price-format"],{1738:function(t,e,n){"use strict";n.r(e);var r=n("8bc5"),i=n("c352");for(var c in i)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(c);n("c84f");var u=n("828b"),o=Object(u["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);e["default"]=o.exports},"8bc5":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this.$createElement;this._self._c},i=[]},"985d":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={data:function(){return{priceSlice:{}}},components:{},props:{firstSize:{type:[String,Number],default:28},secondSize:{type:[String,Number],default:28},color:{type:String},weight:{type:[String,Number],default:400},price:{type:[String,Number],default:""},showSubscript:{type:Boolean,default:!0},subscriptSize:{type:[String,Number],default:28},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&&void 0!==t?(t=parseFloat(t),t=String(t).split("."),e.first=t[0],e.second=t[1],this.priceSlice=e):this.priceSlice={first:0}}}};e.default=r},c133:function(t,e,n){},c352:function(t,e,n){"use strict";n.r(e);var r=n("985d"),i=n.n(r);for(var c in r)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(c);e["default"]=i.a},c84f:function(t,e,n){"use strict";var r=n("c133"),i=n.n(r);i.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/price-format/price-format-create-component',
{
'components/price-format/price-format-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("1738"))
})
},
[['components/price-format/price-format-create-component']]
]);

View File

@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

View File

@ -0,0 +1 @@
<text class="{{[(lineThrough?'line-through':'')+' price-format']}}" style="{{'color:'+(color)+';'+('font-weight:'+(weight)+';')}}"><block wx:if="{{showSubscript}}"><text style="{{'font-size:'+(subscriptSize+'rpx')+';'+('margin-right:'+('2rpx')+';')}}">¥</text></block><text style="{{'font-size:'+(firstSize+'rpx')+';'+('margin-right:'+('1rpx')+';')}}">{{priceSlice.first}}</text><block wx:if="{{priceSlice.second}}"><text style="{{'font-size:'+(secondSize+'rpx')+';'}}">{{"."+priceSlice.second}}</text></block></text>

View File

@ -0,0 +1 @@
.price-format{font-family:Avenir,SourceHanSansCN,PingFang SC,Arial,Hiragino Sans GB,Microsoft YaHei,sans-serif}