EthnaYeh 6 years ago
parent
commit
ac7a4f616d
1 changed files with 3 additions and 4 deletions
  1. 3 4
      src/views/gambleGameBucket/detail/index.vue

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

327
 
327
 
328
       fetchMemberInfo(this.data.secondLayer, this.listQuery).then(response => {
328
       fetchMemberInfo(this.data.secondLayer, this.listQuery).then(response => {
329
         let { data } = response
329
         let { data } = response
330
-    
331
         let members = {}
330
         let members = {}
332
         data.map((person, index) => {
331
         data.map((person, index) => {
333
           if (index % 4 === 0) {
332
           if (index % 4 === 0) {
334
             members.name_0 = person.GambleMember.name
333
             members.name_0 = person.GambleMember.name
335
             members.chips_0 = person.chips
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
           } else if (index % 4 === 1) {
336
           } else if (index % 4 === 1) {
338
             members.name_1 = person.GambleMember.name
337
             members.name_1 = person.GambleMember.name
339
             members.chips_1 = person.chips
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
           } else if (index % 4 === 2) {
340
           } else if (index % 4 === 2) {
342
             members.name_2 = person.GambleMember.name
341
             members.name_2 = person.GambleMember.name
343
             members.chips_2 = person.chips
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
           } else if (index % 4 === 3) {
344
           } else if (index % 4 === 3) {
346
             members.name_3 = person.GambleMember.name
345
             members.name_3 = person.GambleMember.name
347
             members.chips_3 = person.chips
346
             members.chips_3 = person.chips