Browse Source

AB下注区域

master
sprint 4 months ago
parent
commit
a5efda1a61
  1. 27
      backmanage/src/views/betRecord/index.vue

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

@ -113,12 +113,19 @@ const getBetRecord = async (page: number = 1) => {
//
if (item.area != '') {
//
if (item.game_id == 20001 || item.game_id == 20005 || item.game_id == 20008) {
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) {
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)
}
}
@ -250,17 +257,23 @@ const showUserList = (item: string) => {
<el-table-column align="center" prop="area" label="下注区域" width="500">
<template #default="item">
<span v-if="item.row.game_id == 20001">
<p v-for="(v, index) in item.row.betArea" class="area-font">
{{ `${optionsDragonTigerBetArea[index]}: ${v}` }}
<p v-for="(v, index) in item.row.betArea" class="area-font" :key="index">
<span>区域{{ optionsDragonTigerBetArea[v.area] }}, </span>
<span>金额{{ v.betAmount }}, </span>
<span>赔率{{ v.areaPro }}, </span>
<span>结果{{ v.isWin ? '赢' : '输' }}</span>
</p>
</span>
<span v-if="item.row.game_id == 20005">
<p v-for="(v, index) in item.row.betArea" class="area-font">
{{ `${optionsABBetArea[index]}: ${v}` }}
<p v-for="(v, index) in item.row.betArea" class="area-font" :key="index">
<span>区域{{ optionsABBetArea[v.area] }}, </span>
<span>金额{{ v.betAmount }}, </span>
<span>赔率{{ v.areaPro }}, </span>
<span>结果{{ v.isWin ? '赢' : '输' }}</span>
</p>
</span>
<span v-if="item.row.game_id == 20006">
<p v-for="(v, index) in item.row.betArea" class="area-font">
<p v-for="(v, index) in item.row.betArea" class="area-font" :key="index">
<span>区域{{ options7Up7DownBetArea[v.area] }}, </span>
<span>金额{{ v.betAmount }}, </span>
<span>赔率{{ v.areaPro }}, </span>

Loading…
Cancel
Save