mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[bugfix] submit-bar: Decimal rounding (#820)
This commit is contained in:
parent
c94542649b
commit
bee3cb2080
@ -52,7 +52,7 @@ export default create({
|
||||
return Math.floor(this.price / 100);
|
||||
},
|
||||
priceDecimal() {
|
||||
const decimal = this.price % 100;
|
||||
const decimal = Math.floor(this.price % 100);
|
||||
return (decimal < 10 ? '0' : '') + decimal;
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user