[bugfix] submit-bar: Decimal rounding (#820)

This commit is contained in:
ddchef 2018-04-09 13:28:14 +08:00 committed by neverland
parent c94542649b
commit bee3cb2080

View File

@ -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;
}
},