sprint 4 months ago
parent
commit
16b1262c44
  1. 17
      backmanage/src/api/module/common_params.ts
  2. 50
      backmanage/src/views/betRecord/index.vue

17
backmanage/src/api/module/common_params.ts

@ -158,6 +158,23 @@ export const optionsTexasBetArea: any = {
}
}
//Rummy 下注区域
export const optionsRummyBetArea: any = {
number: {
17: "♦A", 18: "♦2", 19: "♦3", 20: "♦4", 21: "♦5", 22: "♦6", 23: "♦7", 24: "♦8", 25: "♦9", 26: "♦10", 27: "♦J", 28: "♦Q", 29: "♦K", // 方块 A - K
33: "♣A", 34: "♣2", 35: "♣3", 36: "♣4", 37: "♣5", 38: "♣6", 39: "♣7", 40: "♣8", 41: "♣9", 42: "♣10", 43: "♣J", 44: "♣Q", 45: "♣K", // 梅花 A - K
49: "♥A", 50: "♥2", 51: "♥3", 52: "♥4", 53: "♥5", 54: "♥6", 55: "♥7", 56: "♥8", 57: "♥9", 58: "♥10", 59: "♥J", 60: "♥Q", 61: "♥K", // 红桃 A - K
65: "♠A", 66: "♠2", 67: "♠3", 68: "♠4", 69: "♠5", 70: "♠6", 71: "♠7", 72: "♠8", 73: "♠9", 74: "♠10", 75: "♠J", 76: "♠Q", 77: "♠K", // 黑桃 A - K
95: "🃏", 111: "🃏"
},
type: {
0: "散排",
1: "纯顺",
2: "不纯顺子",
3: "套牌",
}
}
//打码量类型
export const optionsRealBet: any[] = [
{ value: 0, label: '全部' },

50
backmanage/src/views/betRecord/index.vue

@ -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="明水" />

Loading…
Cancel
Save