Parcourir la Source

fix gamehistory bug

Unknown il y a 7 ans
Parent
commit
2ff3521260
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      src/views/room/gameHistory/index.vue

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

@@ -176,10 +176,14 @@ export default {
176 176
       fetchChipsHistory(this.member, this.listQuery).then(response => {
177 177
         this.gameRecordList = response.data
178 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 183
           this.list.push({
180 184
             id: item.id,
181 185
             createdAt: item.createdAt,
182
-            type: item.type === config.const.GambleMemberChipsLog.type.deposit ? '上 / 下 分':'獎勵 / 懲罰',
186
+            type: item.type,
183 187
             amount: item.chips,
184 188
             wallet: item.totalChips
185 189
           })