Преглед на файлове

Merge branch 'master' into zhongqi-chat

shish преди 11 месеца
родител
ревизия
db3604c67e
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      mallApp/src/pages/callback/pay.vue

+ 3 - 1
mallApp/src/pages/callback/pay.vue

@@ -106,7 +106,9 @@ export default {
       this.orderSn = this.option.orderSn ? this.option.orderSn : ''
       this.orderSn = this.option.orderSn ? this.option.orderSn : ''
       this.getPayType = this.option.getPayType
       this.getPayType = this.option.getPayType
       if(this.option.totalPrice){
       if(this.option.totalPrice){
-        this.totalPrice = parseFloat(Number(this.option.totalPrice))
+        this.totalPrice = Number(this.option.totalPrice)
+        this.totalPrice = this.totalPrice.toFixed(2)
+        this.totalPrice = parseFloat(this.totalPrice)
       }
       }
       this.pageStatus = this.option.pageStatus;
       this.pageStatus = this.option.pageStatus;
       this.payDiscountPrice = this.option.payDiscountPrice;
       this.payDiscountPrice = this.option.payDiscountPrice;