Ver Código Fonte

fix earned display

EthnaYeh 6 anos atrás
pai
commit
0c141a9661
1 arquivos alterados com 2 adições e 2 exclusões
  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
         })