Browse Source

add math.round()

bucket 6 years ago
parent
commit
02d79ba17b

+ 1 - 1
src/utils/point.js

6
   point2 = Number(point2)
6
   point2 = Number(point2)
7
   totalPoints = Number(totalPoints)
7
   totalPoints = Number(totalPoints)
8
   if (point1 === 0 && point2 === 0) {
8
   if (point1 === 0 && point2 === 0) {
9
-    return `白板對`
9
+    return `至尊`
10
   } else if (point1 === -1 || point2 === -1) {
10
   } else if (point1 === -1 || point2 === -1) {
11
     return `莊家通賠`
11
     return `莊家通賠`
12
   } else if (point1 === point2) {
12
   } else if (point1 === point2) {

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

191
           allAdminPunishment: _.sumBy(response.data, 'adminPunishment'),
191
           allAdminPunishment: _.sumBy(response.data, 'adminPunishment'),
192
           allChips: _.sumBy(response.data, 'chips'),
192
           allChips: _.sumBy(response.data, 'chips'),
193
           allEarned: _.sumBy(response.data, item => {return item.effectiveTotal}),
193
           allEarned: _.sumBy(response.data, item => {return item.effectiveTotal}),
194
-          allServiceFees: _.sumBy(response.data, item => {return Number(item.totalServiceFees) }).toFixed(1),
194
+          allServiceFees: _.sumBy(response.data, item => {return Number(item.totalServiceFees) }),
195
         })
195
         })
196
        });
196
        });
197
       // await fetchMemberList(this.data.secondLayer, this.listQuery).then(response => {
197
       // await fetchMemberList(this.data.secondLayer, this.listQuery).then(response => {

+ 1 - 1
src/views/studio/index.vue

111
           })
111
           })
112
           this.list.push({
112
           this.list.push({
113
           // all: data.bookies.serviceFees.plus(data.members.serviceFees).minus(data.bookies.count.times(500)).times(0.2).valueOf(),
113
           // all: data.bookies.serviceFees.plus(data.members.serviceFees).minus(data.bookies.count.times(500)).times(0.2).valueOf(),
114
-          all: data.bookies.serviceFees.plus(data.members.serviceFees).plus(data.bookies.wagerServiceFees).times(0.2).valueOf(),
114
+          all: Math.round(data.bookies.serviceFees.plus(data.members.serviceFees).plus(data.bookies.wagerServiceFees).times(0.2).valueOf()),
115
           // all: (data.bookies.serviceFees - (data.bookies.count * 500) + data.members.serviceFees) * 0.2,
115
           // all: (data.bookies.serviceFees - (data.bookies.count * 500) + data.members.serviceFees) * 0.2,
116
           FixedServiceFees: data.bookies.FixedServiceFees
116
           FixedServiceFees: data.bookies.FixedServiceFees
117
           })
117
           })