|
|
@ -13,6 +13,7 @@ import { |
|
|
|
options7Up7DownBetArea, |
|
|
|
options3PattiBetArea, |
|
|
|
optionsTexasBetArea, |
|
|
|
optionsRummyBetArea, |
|
|
|
} from '@/api/module/common_params' |
|
|
|
import CustomPaginate from '@/components/common/CustomPaginate.vue' |
|
|
|
|
|
|
@ -111,24 +112,8 @@ const getBetRecord = async (page: number = 1) => { |
|
|
|
item.realPlayer = item.players.split(',') |
|
|
|
|
|
|
|
//下注区域 |
|
|
|
if (item.area != '') { |
|
|
|
//百人 |
|
|
|
if (item.game_id == 20008) { |
|
|
|
const formattedArea = item.area.replace(/(\d+):/g, '"$1":') |
|
|
|
item.betArea = JSON.parse(formattedArea) |
|
|
|
} |
|
|
|
|
|
|
|
if ( |
|
|
|
item.game_id == 10001 || |
|
|
|
item.game_id == 20010 || |
|
|
|
item.game_id == 20009 || |
|
|
|
item.game_id == 20006 || |
|
|
|
item.game_id == 20001 || |
|
|
|
item.game_id == 20005 |
|
|
|
) { |
|
|
|
item.betArea = JSON.parse(item.area) |
|
|
|
} |
|
|
|
} |
|
|
|
if (item.area != '') item.betArea = JSON.parse(item.area) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -160,11 +145,7 @@ onMounted(async () => { |
|
|
|
getBetRecord() |
|
|
|
}) |
|
|
|
|
|
|
|
const showUserList = (item: string) => { |
|
|
|
data.players = item.split(',') |
|
|
|
data.dialog = true |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
</script> |
|
|
|
|
|
|
|
<template> |
|
|
@ -281,8 +262,11 @@ const showUserList = (item: string) => { |
|
|
|
</p> |
|
|
|
</span> |
|
|
|
<span v-if="item.row.game_id == 20008"> |
|
|
|
<p v-for="(v, index) in item.row.betArea" class="area-font"> |
|
|
|
{{ `${optionsSixABBetArea[index]}: ${v}` }} |
|
|
|
<p v-for="(v, index) in item.row.betArea" class="area-font" :key="index"> |
|
|
|
<span>区域:{{ optionsSixABBetArea[v.area] }}, </span> |
|
|
|
<span>金额:{{ v.betAmount }}, </span> |
|
|
|
<span>赔率:{{ v.areaPro }}, </span> |
|
|
|
<span>结果:{{ v.isWin ? '赢' : '输' }}</span> |
|
|
|
</p> |
|
|
|
</span> |
|
|
|
<span v-if="item.row.game_id == 10001" class="area-font"> |
|
|
@ -309,7 +293,9 @@ const showUserList = (item: string) => { |
|
|
|
</span> |
|
|
|
<span v-if="item.row.game_id == 20009" class="area-font"> |
|
|
|
<p v-for="(v, index) in item.row.betArea?.player"> |
|
|
|
<span>{{ `玩家${index + 1}: ${v.userNo == '' ? '机器人' : v.userNo},` }}</span> |
|
|
|
<span>{{ |
|
|
|
`玩家${index + 1}: ${v.userNo == '' ? '机器人' : v.userNo}, (${v.isBanker ? '庄' : '闲'})` |
|
|
|
}}</span> |
|
|
|
<span |
|
|
|
>手牌: <span v-for="poker in v.handPoker">{{ optionsTexasBetArea.number[poker] }}, </span></span |
|
|
|
> |
|
|
@ -336,6 +322,18 @@ const showUserList = (item: string) => { |
|
|
|
> |
|
|
|
</p> |
|
|
|
</span> |
|
|
|
<span v-if="item.row.game_id == 70001" class="area-font"> |
|
|
|
<p v-for="(v, index) in item.row.betArea?.player"> |
|
|
|
<el-divider v-show="index > 0" /> |
|
|
|
<span>{{ `玩家${index + 1}: ${v.userNo == '' ? '机器人' : v.userNo}` }}, 分数: {{ v.score }}</span> |
|
|
|
<p>手牌:</p> |
|
|
|
<p v-for="p in v.handPoker"> |
|
|
|
<span v-for="poker in p.pokers">{{ optionsTexasBetArea.number[poker] }}, </span> |
|
|
|
<span>牌型:{{ optionsRummyBetArea.type[p.card_type] }}, </span> |
|
|
|
<span>牌值:{{ p.all_coin }}</span> |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column align="center" prop="tax_amount" label="明水" /> |
|
|
|