Browse Source

add all service

bucket 6 years ago
parent
commit
644a4f8e1d
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/views/room/gameHistory/index.vue

+ 4 - 2
src/views/room/gameHistory/index.vue

174
         this.chipLogList.map((item) => {
174
         this.chipLogList.map((item) => {
175
           fetchCurrentChips(item['GambleGame-Bucket'], this.data.thirdLayer).then(response => {
175
           fetchCurrentChips(item['GambleGame-Bucket'], this.data.thirdLayer).then(response => {
176
             item.earned = _.sumBy(response.data, item => {
176
             item.earned = _.sumBy(response.data, item => {
177
-              return item.earned - item.serviceFees
177
+              return item.earned - item.serviceFees - item.wagerServiceFees - item.FixedServiceFees
178
             })
178
             })
179
             let round = _.groupBy(response.data, 'round')
179
             let round = _.groupBy(response.data, 'round')
180
             round = Object.values(round)
180
             round = Object.values(round)
230
       fetchPersonGameDetail(this.data.thirdLayer.id, row.id).then(response => {
230
       fetchPersonGameDetail(this.data.thirdLayer.id, row.id).then(response => {
231
         console.log('params', this.data.thirdLayer.id, row.id)
231
         console.log('params', this.data.thirdLayer.id, row.id)
232
         console.log('rows', response.data.rows)
232
         console.log('rows', response.data.rows)
233
-        this.dialogList = response.data.rows
233
+        this.dialogList = response.data.rows.map(row => {
234
+          row.serviceFees = row.serviceFees + row.wagerServiceFees + row.FixedServiceFees
235
+        })
234
         this.listLoading = false
236
         this.listLoading = false
235
       })
237
       })
236
     },
238
     },