Browse Source

fix gamehistory bug

Unknown 7 years ago
parent
commit
2ff3521260
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/views/room/gameHistory/index.vue

+ 5 - 1
src/views/room/gameHistory/index.vue

176
       fetchChipsHistory(this.member, this.listQuery).then(response => {
176
       fetchChipsHistory(this.member, this.listQuery).then(response => {
177
         this.gameRecordList = response.data
177
         this.gameRecordList = response.data
178
         this.gameRecordList.map((item) => {
178
         this.gameRecordList.map((item) => {
179
+          if(item.type === config.const.GambleMemberChipsLog.type.deposit) item.type =  '上 / 下 分';
180
+          if(item.type === config.const.GambleMemberChipsLog.type.reward) item.type =  '獎勵 / 懲罰';
181
+          if(item.type === config.const.GambleMemberChipsLog.type.reset) item.type =  '歸零';
182
+  
179
           this.list.push({
183
           this.list.push({
180
             id: item.id,
184
             id: item.id,
181
             createdAt: item.createdAt,
185
             createdAt: item.createdAt,
182
-            type: item.type === config.const.GambleMemberChipsLog.type.deposit ? '上 / 下 分':'獎勵 / 懲罰',
186
+            type: item.type,
183
             amount: item.chips,
187
             amount: item.chips,
184
             wallet: item.totalChips
188
             wallet: item.totalChips
185
           })
189
           })