EthnaYeh 6 yıl önce
ebeveyn
işleme
ac7a4f616d
1 değiştirilmiş dosya ile 3 ekleme ve 4 silme
  1. 3 4
      src/views/gambleGameBucket/detail/index.vue

+ 3 - 4
src/views/gambleGameBucket/detail/index.vue

@@ -327,21 +327,20 @@ export default {
327 327
 
328 328
       fetchMemberInfo(this.data.secondLayer, this.listQuery).then(response => {
329 329
         let { data } = response
330
-    
331 330
         let members = {}
332 331
         data.map((person, index) => {
333 332
           if (index % 4 === 0) {
334 333
             members.name_0 = person.GambleMember.name
335 334
             members.chips_0 = person.chips
336
-            index === response.data.count - 1 ? this.members.push(members) : false
335
+            index === data.length - 1 ? this.members.push(members) : false
337 336
           } else if (index % 4 === 1) {
338 337
             members.name_1 = person.GambleMember.name
339 338
             members.chips_1 = person.chips
340
-            index === response.data.count - 1 ? this.members.push(members) : false
339
+            index === data.length - 1 ? this.members.push(members) : false
341 340
           } else if (index % 4 === 2) {
342 341
             members.name_2 = person.GambleMember.name
343 342
             members.chips_2 = person.chips
344
-            index === response.data.count - 1 ? this.members.push(members) : false
343
+            index === data.length - 1 ? this.members.push(members) : false
345 344
           } else if (index % 4 === 3) {
346 345
             members.name_3 = person.GambleMember.name
347 346
             members.chips_3 = person.chips