shish 10 달 전
부모
커밋
698ef9ca5c
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;