ソースを参照

fix earned display

EthnaYeh 6 年 前
コミット
0c141a9661
共有1 個のファイルを変更した2 個の追加2 個の削除を含む
  1. 2 2
      src/views/gambleGameBucket/detail/index.vue

+ 2 - 2
src/views/gambleGameBucket/detail/index.vue

@@ -95,7 +95,7 @@
95 95
         </el-table-column>
96 96
         <el-table-column label="輸贏">
97 97
           <template slot-scope="scope">
98
-            <div :style="moneyColor(scope.row.MemberRecord.earned)">{{scope.row.MemberRecord.earned}}</div>
98
+            <div :style="moneyColor(scope.row.MemberRecord.earned)">{{scope.row.MemberRecord.earned - scope.row.MemberRecord.serviceFees}}</div>
99 99
           </template>
100 100
         </el-table-column>
101 101
         <el-table-column prop="MemberRecord.serviceFees" label="抽水">
@@ -265,7 +265,7 @@ export default {
265 265
         this.group.map((item, itemIndex) => {
266 266
           let totalChips = 0
267 267
           item.map((person, personIndex) => {
268
-            totalChips += person.MemberRecord.earned
268
+            totalChips = totalChips + person.MemberRecord.earned - person.MemberRecord.serviceFees
269 269
             item.length - 1 === personIndex ? this.detail[this._sum(itemIndex)].totalChips = totalChips : false
270 270
           })
271 271
         })