소스 검색

修改问题

hejie 3 년 전
부모
커밋
f434a93c17
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/pages/account/giveAsPresent.vue

+ 2 - 2
src/pages/account/giveAsPresent.vue

@@ -102,13 +102,13 @@ export default {
           content = `你将赠送给${this.id}余额${
             this.give_num
           },扣除手续费后对方将收到${
-            this.give_num * (1 - this.list[this.value].fee)
+            (this.give_num * (1 - this.list[this.value].fee)).toFixed(2)
           }余额`;
         } else {
           content = `你将赠送给${this.id}茶宝${
             this.give_num
           },扣除手续费后对方将收到${
-            this.give_num * (1 - this.list[this.value].fee)
+            (this.give_num * (1 - this.list[this.value].fee)).toFixed(2)
           }茶宝`;
         }
         let that = this