|
|
@@ -235,7 +235,9 @@ export default {
|
|
|
item.check = true;
|
|
|
this.price += Number(item.price);
|
|
|
});
|
|
|
- this.price = this.price.toFixed(2);
|
|
|
+ if (parseInt(this.price.toString()) != parseFloat(this.price.toString())) {
|
|
|
+ this.price = this.price.toFixed(2);
|
|
|
+ }
|
|
|
this.collectionListSelected = this.collectionList;
|
|
|
} else {
|
|
|
this.price = 0;
|
|
|
@@ -266,7 +268,9 @@ export default {
|
|
|
}
|
|
|
this.price += item.price;
|
|
|
});
|
|
|
- this.price = this.price.toFixed(2);
|
|
|
+ if (parseInt(this.price.toString()) != parseFloat(this.price.toString())) {
|
|
|
+ this.price = this.price.toFixed(2);
|
|
|
+ }
|
|
|
// if (this.price == '0.0') {
|
|
|
// this.price = 0;
|
|
|
// }
|