yuanyuan 3 лет назад
Родитель
Сommit
1b488cc359
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/views/user/ShoppingCart.vue

+ 2 - 2
src/views/user/ShoppingCart.vue

@@ -220,7 +220,7 @@ export default {
                     item.check = true;
                     this.price += Number(item.price);
                 });
-                // this.price = this.price.toFixed(1);
+                this.price = this.price.toFixed(2);
                 this.collectionListSelected = this.collectionList;
             } else {
                 this.price = 0;
@@ -248,7 +248,7 @@ export default {
                 newCollectionList.forEach(item => {
                     this.price += item.price;
                 });
-                // this.price = this.price.toFixed(1);
+                this.price = this.price.toFixed(2);
                 // if (this.price == '0.0') {
                 //     this.price = 0;
                 // }