natasha 3 years ago
parent
commit
b3d346e56c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/pyment/Confirmorder.vue

+ 1 - 1
src/components/pyment/Confirmorder.vue

@@ -183,7 +183,7 @@ export default {
       });
     },
     changePrice(price, fontSize1, fontSize2) {
-      price = price ? price : 0;
+      price = price ? Number(price) : 0;
       price = price.toFixed(2);
       price = price.toString();
       let arr = price.split(".");