mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 16:44:21 +00:00
[bugfix] submit-bar: Decimal rounding (#820)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user