Browse Source

fix memberEarned

ethan 6 years ago
parent
commit
a4e15ff69a

+ 3 - 1
src/views/agnetManagement/gambleMemberManagement/index.vue

231
         
231
         
232
           let bookie = _.groupBy(member['GambleGame-Bucket-MemberRecords'], 'isBookie')
232
           let bookie = _.groupBy(member['GambleGame-Bucket-MemberRecords'], 'isBookie')
233
           if (bookie.false) {
233
           if (bookie.false) {
234
-            row.memberEarned = _.sumBy(bookie.false, 'earned');
234
+            row.memberEarned = _.sumBy(bookie.false, item => {
235
+              return Math.abs(item.earned)
236
+            });
235
             row.memberServiceFees = _.sumBy(bookie.false, 'serviceFees')*this.data.secondLayer.feeRatio/100;
237
             row.memberServiceFees = _.sumBy(bookie.false, 'serviceFees')*this.data.secondLayer.feeRatio/100;
236
           }
238
           }
237
           if (bookie.true) {
239
           if (bookie.true) {

+ 0 - 1
src/views/gambleGameBucket/detail/index.vue

447
       }
447
       }
448
     },
448
     },
449
     hasPunishment(data) {
449
     hasPunishment(data) {
450
-      console.log('wwwwwwff',data)
451
       return data.length !== 0 ? true : false
450
       return data.length !== 0 ? true : false
452
     }
451
     }
453
   },
452
   },