فهرست منبع

Merge branch 'master' into zhongqi-chat

shish 10 ماه پیش
والد
کامیت
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.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;