|
@@ -553,6 +553,9 @@
|
|
<span style="margin-left: 1rem;">
|
|
<span style="margin-left: 1rem;">
|
|
总投注(金币):{{userInfo.infoDetail.totalCoinBetting}}
|
|
总投注(金币):{{userInfo.infoDetail.totalCoinBetting}}
|
|
</span>
|
|
</span>
|
|
|
|
+ <span style="margin-left: 1rem;">
|
|
|
|
+ 近30天礼物收益:{{userInfo.infoDetail.totalGift}}
|
|
|
|
+ </span>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-tabs v-model="activeName2" @tab-click="handleClick" style="width: 100%">
|
|
<el-tabs v-model="activeName2" @tab-click="handleClick" style="width: 100%">
|
|
<el-tab-pane label="今日" name="first">
|
|
<el-tab-pane label="今日" name="first">
|
|
@@ -562,6 +565,9 @@
|
|
</span>
|
|
</span>
|
|
<span style="margin-left: 1rem;">
|
|
<span style="margin-left: 1rem;">
|
|
提现:{{userInfo.infoDetail.todayWithdraw}}
|
|
提现:{{userInfo.infoDetail.todayWithdraw}}
|
|
|
|
+ </span>
|
|
|
|
+ <span style="margin-left: 1rem;">
|
|
|
|
+ 礼物收益:{{userInfo.infoDetail.todayGift}}
|
|
</span>
|
|
</span>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item >
|
|
<el-form-item >
|
|
@@ -600,6 +606,9 @@
|
|
</span>
|
|
</span>
|
|
<span style="margin-left: 1rem;">
|
|
<span style="margin-left: 1rem;">
|
|
提现:{{userInfo.infoDetail.weekWithdraw}}
|
|
提现:{{userInfo.infoDetail.weekWithdraw}}
|
|
|
|
+ </span>
|
|
|
|
+ <span style="margin-left: 1rem;">
|
|
|
|
+ 礼物收益:{{userInfo.infoDetail.weekGift}}
|
|
</span>
|
|
</span>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
@@ -869,38 +878,50 @@
|
|
v-loading="bettingLoading"
|
|
v-loading="bettingLoading"
|
|
stripe
|
|
stripe
|
|
style="width: 100%">
|
|
style="width: 100%">
|
|
- <el-table-column label="游戏" align="center" prop="gameId">
|
|
|
|
|
|
+ <el-table-column label="用户ID" align="center" prop="userId" width="100"/>
|
|
|
|
+ <el-table-column label="游戏" align="center" prop="gameId" width="100">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{ getTypeName(scope.row.gameId) }}</span>
|
|
<span>{{ getTypeName(scope.row.gameId) }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="用户ID" align="center" prop="userId" />
|
|
|
|
- <el-table-column label="游戏期号" align="center" prop="gameDate" />
|
|
|
|
- <el-table-column label="主播ID" align="center" prop="liveUserId" />
|
|
|
|
- <el-table-column label="直播房间号" align="center" prop="liveRoomId" />
|
|
|
|
- <el-table-column label="是否直播间投注 " align="center" prop="isLive">
|
|
|
|
|
|
+ <el-table-column label="投注详情(选项:金额)" align="center" width="200">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <dict-tag :options="dict.type.app_betting_is_live" :value="scope.row.isLive"/>
|
|
|
|
|
|
+ {{getBettingInfo(scope.row)}}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="投注类型" align="center" prop="bettingType">
|
|
|
|
|
|
+ <el-table-column label="本期总投注金额" align="center" width="120">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <dict-tag :options="dict.type.app_game_betting_type" :value="scope.row.bettingType"/>
|
|
|
|
|
|
+ {{getBettingAmount(scope.row)}}
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="开奖获得" align="center" width="120">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ {{getBettingWinAmount(scope.row)}}
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="本局盈亏" align="center" width="120">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ {{getBettingWinLoseAmount(scope.row)}}
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="是否开奖" align="center" width="120">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ {{scope.row.isLottery==0?'否':'是'}}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="投注选项" align="center" prop="bettingItem">
|
|
|
|
|
|
+ <el-table-column label="游戏期号" align="center" prop="gameDate" width="130"/>
|
|
|
|
+ <el-table-column label="开奖项" align="center" prop="gameLotterySucc" width="130">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{getItemName(scope.row)}}
|
|
{{getItemName(scope.row)}}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="投注选项倍数" align="center" prop="bettingMultiple" />
|
|
|
|
- <el-table-column label="投注金额" align="center" prop="bettingAmount" />
|
|
|
|
- <el-table-column label="投注佣金" align="center" prop="bettingCommission" />
|
|
|
|
- <el-table-column label="是否中奖" align="center" prop="isWinning">
|
|
|
|
|
|
+ <el-table-column label="投注类型" align="center" prop="bettingType">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <dict-tag :options="dict.type.app_game_betting_winning" :value="scope.row.isWinning"/>
|
|
|
|
|
|
+ <dict-tag :options="dict.type.app_game_betting_type" :value="scope.row.bettingType"/>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column label="开奖时间" align="center" prop="gameRecordDate" width="130"/>
|
|
|
|
+ <el-table-column label="投注时间" align="center" prop="bettingDate" width="100"/>
|
|
</el-table>
|
|
</el-table>
|
|
<pagination
|
|
<pagination
|
|
v-show="bettingTotal>0"
|
|
v-show="bettingTotal>0"
|
|
@@ -926,7 +947,7 @@
|
|
import { listUser, getUser, delUser, addUser, updateUser,resetUser,userCharge,channelList,withdraw,openLive,userDetail,liveCommission,getGift,updateUserAgent,updateGameCommissionAgent,restPayPwd } from "@/api/business/user";
|
|
import { listUser, getUser, delUser, addUser, updateUser,resetUser,userCharge,channelList,withdraw,openLive,userDetail,liveCommission,getGift,updateUserAgent,updateGameCommissionAgent,restPayPwd } from "@/api/business/user";
|
|
import { listAccount} from "@/api/business/account";
|
|
import { listAccount} from "@/api/business/account";
|
|
import { listOrder } from "@/api/business/order";
|
|
import { listOrder } from "@/api/business/order";
|
|
-import { listBetting} from "@/api/business/betting";
|
|
|
|
|
|
+import { listHistoryWeb} from "@/api/business/betting";
|
|
import {allGameList } from "@/api/business/game_item";
|
|
import {allGameList } from "@/api/business/game_item";
|
|
import {allList} from "@/api/business/lottery";
|
|
import {allList} from "@/api/business/lottery";
|
|
|
|
|
|
@@ -1162,22 +1183,82 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ getBettingInfo(row){
|
|
|
|
+ let detailsCountVOList = row.detailsCountVOList;
|
|
|
|
+ if(!detailsCountVOList){
|
|
|
|
+ return "-";
|
|
|
|
+ }
|
|
|
|
+ let res = "";
|
|
|
|
+ let map = {};
|
|
|
|
+ for(var i in detailsCountVOList){
|
|
|
|
+ let item = detailsCountVOList[i];
|
|
|
|
+ let amount = map[item.bettingTtem];
|
|
|
|
+ if(!amount){
|
|
|
|
+ amount = 0;
|
|
|
|
+ }
|
|
|
|
+ amount += item.orderAmount;
|
|
|
|
+ map[item.bettingTtem] = amount;
|
|
|
|
+ }
|
|
|
|
+ for(var i in map){
|
|
|
|
+ if(res.length > 0){
|
|
|
|
+ res += " | "
|
|
|
|
+ }
|
|
|
|
+ res += this.gameItemMap[i+"_"+row.gameId] + ":" + map[i];
|
|
|
|
+ }
|
|
|
|
+ return res;
|
|
|
|
+ },
|
|
|
|
+ getBettingAmount(row){
|
|
|
|
+ let detailsCountVOList = row.detailsCountVOList;
|
|
|
|
+ if(!detailsCountVOList){
|
|
|
|
+ return "-";
|
|
|
|
+ }
|
|
|
|
+ let amount = 0;
|
|
|
|
+ for(var i in detailsCountVOList){
|
|
|
|
+ let item = detailsCountVOList[i];
|
|
|
|
+ amount += parseInt(item.orderAmount);
|
|
|
|
+ }
|
|
|
|
+ return amount;
|
|
|
|
+ },
|
|
|
|
+ getBettingWinAmount(row){
|
|
|
|
+ let detailsCountVOList = row.detailsCountVOList;
|
|
|
|
+ if(!detailsCountVOList){
|
|
|
|
+ return "-";
|
|
|
|
+ }
|
|
|
|
+ let amount = 0;
|
|
|
|
+ for(var i in detailsCountVOList){
|
|
|
|
+ let item = detailsCountVOList[i];
|
|
|
|
+ amount += parseInt(item.winAmount);
|
|
|
|
+ }
|
|
|
|
+ return amount;
|
|
|
|
+ },
|
|
|
|
+ getBettingWinLoseAmount(row){
|
|
|
|
+ let detailsCountVOList = row.detailsCountVOList;
|
|
|
|
+ if(!detailsCountVOList){
|
|
|
|
+ return "-";
|
|
|
|
+ }
|
|
|
|
+ let amount = 0;
|
|
|
|
+ for(var i in detailsCountVOList){
|
|
|
|
+ let item = detailsCountVOList[i];
|
|
|
|
+ amount += (parseInt(item.winAmount) - (parseInt(item.orderAmount) - parseInt(item.loseAmount))) - parseInt(item.loseAmount);
|
|
|
|
+ }
|
|
|
|
+ return amount;
|
|
|
|
+ },
|
|
getItemName(row){
|
|
getItemName(row){
|
|
let that = this;
|
|
let that = this;
|
|
let bettingGameType = row.bettingGameType;
|
|
let bettingGameType = row.bettingGameType;
|
|
- let bettingItem = row.bettingItem;
|
|
|
|
|
|
+ let bettingItem = row.gameLotterySucc;
|
|
let gameId = row.gameId;
|
|
let gameId = row.gameId;
|
|
if("0" == bettingGameType){
|
|
if("0" == bettingGameType){
|
|
return that.gameItemMap[bettingItem+"_"+gameId];
|
|
return that.gameItemMap[bettingItem+"_"+gameId];
|
|
}else{
|
|
}else{
|
|
let name = "";
|
|
let name = "";
|
|
- let arr = JSON.parse(bettingItem);
|
|
|
|
|
|
+ let arr = bettingItem.split(",")
|
|
for(var i in arr){
|
|
for(var i in arr){
|
|
let item = arr[i];
|
|
let item = arr[i];
|
|
if("" != name){
|
|
if("" != name){
|
|
name = name + ",";
|
|
name = name + ",";
|
|
}
|
|
}
|
|
- name = name + that.gameItemMap[item["bettingItem"]+"_"+gameId];
|
|
|
|
|
|
+ name = name + that.gameItemMap[item+"_"+gameId];
|
|
}
|
|
}
|
|
return name;
|
|
return name;
|
|
}
|
|
}
|
|
@@ -1248,7 +1329,7 @@ export default {
|
|
getBettingList() {
|
|
getBettingList() {
|
|
this.bettingLoading = true;
|
|
this.bettingLoading = true;
|
|
this.queryBettingParams.userId = this.userInfo.userid;
|
|
this.queryBettingParams.userId = this.userInfo.userid;
|
|
- listBetting(this.queryBettingParams).then(response => {
|
|
|
|
|
|
+ listHistoryWeb(this.queryBettingParams).then(response => {
|
|
this.bettingList = response.rows;
|
|
this.bettingList = response.rows;
|
|
this.bettingTotal = response.total;
|
|
this.bettingTotal = response.total;
|
|
this.bettingLoading = false;
|
|
this.bettingLoading = false;
|