Parcourir la source

Merge branch 'zhongqi-chat' of git.huaml.com:zhh/front-end into zhongqi-chat

shizhongqi il y a 10 mois
Parent
commit
19bc92cd9c
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  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.getPayType = this.option.getPayType
       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.payDiscountPrice = this.option.payDiscountPrice;