feat: 优化筹码选择区布局与样式,移除百家乐幸运6投注项并调整投注区显示。
This commit is contained in:
+61
-10
@@ -6,7 +6,9 @@
|
||||
v-for="item in chipArry"
|
||||
:key="item.key"
|
||||
@click="chooseFn(item)"
|
||||
></div>
|
||||
>
|
||||
<span class="chip-value">{{ item.value }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -36,16 +38,65 @@ export default {
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
/* 深色豪华主题配色 */
|
||||
.playchip {
|
||||
width: 1.385rem;
|
||||
position: absolute;
|
||||
right: 0.52rem;
|
||||
bottom: 0px;
|
||||
z-index: 9;
|
||||
transform: rotateX(0deg);
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 70px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start; /* Left align for scroll */
|
||||
gap: 12px;
|
||||
padding: 0 16px;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
border-radius: 8px;
|
||||
padding: 5px;
|
||||
backdrop-filter: blur(5px);
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
||||
overflow-x: auto;
|
||||
z-index: 10;
|
||||
|
||||
/* Hide scrollbar */
|
||||
&::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.chip {
|
||||
flex: 0 0 auto;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
background-size: 100% 100%;
|
||||
background-repeat: no-repeat;
|
||||
|
||||
&.active {
|
||||
transform: scale(1.1); /* Slight scale for emphasis, consistent with modern UI */
|
||||
box-shadow: 0 0 10px 2px #fceabb; /* Gold Glow */
|
||||
border-radius: 50%; /* Ensure glow is circular */
|
||||
background-color: transparent;
|
||||
|
||||
/* Remove the misaligned image overlay */
|
||||
&:after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.chip-value {
|
||||
display: none; /* Hide text, use image text */
|
||||
}
|
||||
|
||||
/* Map classes to images */
|
||||
&.chip_1s, &.chip_10 { background-image: url("~@/assets/images/chip/1s.png"); }
|
||||
&.chip_2s, &.chip_20 { background-image: url("~@/assets/images/chip/1s.png"); } /* Fallback or specific if exists */
|
||||
&.chip_5s, &.chip_50 { background-image: url("~@/assets/images/chip/5s.png"); }
|
||||
&.chip_1b, &.chip_100 { background-image: url("~@/assets/images/chip/1b.png"); }
|
||||
&.chip_2b, &.chip_200 { background-image: url("~@/assets/images/chip/2b.png"); }
|
||||
&.chip_5b, &.chip_500 { background-image: url("~@/assets/images/chip/5b.png"); }
|
||||
&.chip_1k, &.chip_1000 { background-image: url("~@/assets/images/chip/1k.png"); }
|
||||
&.chip_2k, &.chip_2000 { background-image: url("~@/assets/images/chip/2k.png"); }
|
||||
&.chip_5k, &.chip_5000 { background-image: url("~@/assets/images/chip/5k.png"); }
|
||||
&.chip_1w, &.chip_10000 { background-image: url("~@/assets/images/chip/1w.png"); }
|
||||
&.chip_2w { background-image: url("~@/assets/images/chip/2w.png"); }
|
||||
&.chip_5w { background-image: url("~@/assets/images/chip/5w.png"); }
|
||||
&.chip_10w { background-image: url("~@/assets/images/chip/10w.png"); }
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -691,7 +691,7 @@ export default {
|
||||
/* 深色豪华主题配色 */
|
||||
$dark-bg: #0d0d0d;
|
||||
$card-bg: #1e1e1e;
|
||||
$border-color: #333;
|
||||
$border-color: #59cfa8;
|
||||
$gold: #c5a059;
|
||||
|
||||
.playtable {
|
||||
@@ -701,20 +701,21 @@ $gold: #c5a059;
|
||||
z-index: 8;
|
||||
.view {
|
||||
// width: 17.35rem;
|
||||
height: 2.7rem;
|
||||
height: 2.5rem;
|
||||
position: absolute;
|
||||
// bottom: 0.25rem;
|
||||
// left: 50%;
|
||||
// margin-left: -8.675rem;
|
||||
left: 3rem;
|
||||
right: 3rem;
|
||||
bottom: 0.25rem;
|
||||
bottom: 4.5rem; /* Raised further to clear chips */
|
||||
|
||||
border-radius: 10px;
|
||||
border-radius: 12px;
|
||||
transform: perspective(400px) rotateX(24deg);
|
||||
border: 1px solid $border-color;
|
||||
border: 2px solid $border-color;
|
||||
box-sizing: border-box;
|
||||
background: rgba(30, 30, 30, 0.95);
|
||||
background: rgba(9, 60, 54, 0.4);
|
||||
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.8);
|
||||
}
|
||||
}
|
||||
.unclick {
|
||||
@@ -745,31 +746,6 @@ $gold: #c5a059;
|
||||
}
|
||||
}
|
||||
}
|
||||
::v-deep {
|
||||
.banker {
|
||||
color: #fe8365;
|
||||
}
|
||||
.palyer {
|
||||
color: #12a2e6;
|
||||
}
|
||||
.bpair {
|
||||
color: #fe8365;
|
||||
}
|
||||
.ppair {
|
||||
color: #12a2e6;
|
||||
}
|
||||
.tie {
|
||||
color: #75e7af;
|
||||
}
|
||||
.min {
|
||||
border-top-left-radius: 10px;
|
||||
color: #f3c866;
|
||||
}
|
||||
.max {
|
||||
border-top-right-radius: 10px;
|
||||
color: #f3c866;
|
||||
}
|
||||
}
|
||||
|
||||
/* 竖屏模式下,移除左右空白,下注盘平铺全屏 */
|
||||
@media screen and (orientation: portrait) {
|
||||
@@ -780,6 +756,10 @@ $gold: #c5a059;
|
||||
width: 100% !important;
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
transform: none !important; /* Portrait mode usually doesn't need 3D perspective */
|
||||
bottom: 0 !important;
|
||||
height: 35% !important; /* Adjust height for portrait */
|
||||
border-radius: 10px 10px 0 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
<template>
|
||||
<div class="baccarat">
|
||||
<!-- 第一行: 小 | 闲对 | 庄对 | 大 -->
|
||||
<div class="list top">
|
||||
<!-- 小 -->
|
||||
<div class="item min" :class="{ unclick: can_bet_big_small != 1 }">
|
||||
<div class="item grid-item" :class="{ unclick: can_bet_big_small != 1 }">
|
||||
<confirmBet
|
||||
@confirm="confirmChip"
|
||||
@cancel="cancelChip"
|
||||
@@ -18,13 +19,17 @@
|
||||
:win="winArray.includes('small')"
|
||||
></chipView>
|
||||
<div class="text">
|
||||
<span class="big">{{ Lang[Type].small }}</span>
|
||||
<span>1:1.5</span>
|
||||
<span class="label text-blue">{{ Lang[Type].small }}</span>
|
||||
<span class="odds">1:1.5</span>
|
||||
</div>
|
||||
<div class="money" v-if="bet_amount_msg.small_amount">
|
||||
<i class="coin-icon"></i>
|
||||
{{ bet_amount_msg.small_amount }}
|
||||
</div>
|
||||
<div class="money">{{ bet_amount_msg.small_amount || 0 }}</div>
|
||||
</div>
|
||||
|
||||
<!-- 闲对 -->
|
||||
<div class="item ppair">
|
||||
<div class="item grid-item">
|
||||
<confirmBet
|
||||
@confirm="confirmChip"
|
||||
@cancel="cancelChip"
|
||||
@@ -34,43 +39,23 @@
|
||||
show: touch == 'player_pair_amount'
|
||||
}"
|
||||
></confirmBet>
|
||||
|
||||
<chipView
|
||||
@click="downBet($event, 'player_pair_amount')"
|
||||
:list="chipArray.player_pair_amount"
|
||||
:win="winArray.includes('player_pair')"
|
||||
></chipView>
|
||||
<div class="text">
|
||||
<span class="big">{{ Lang[Type].p_player }}</span>
|
||||
<span>1:{{ tableData.price_pair }}</span>
|
||||
<span class="label text-blue">{{ Lang[Type].msg_player_pair }}</span>
|
||||
<span class="odds">1:11</span>
|
||||
</div>
|
||||
<div class="money" v-if="bet_amount_msg.player_pair_amount">
|
||||
<i class="coin-icon"></i>
|
||||
{{ bet_amount_msg.player_pair_amount }}
|
||||
</div>
|
||||
<div class="money">{{ bet_amount_msg.player_pair_amount }}</div>
|
||||
</div>
|
||||
<!-- 幸运6 -->
|
||||
<div class="item luck" :class="{ unclick: can_bet_luck_six != 1 }">
|
||||
<confirmBet
|
||||
@confirm="confirmChip"
|
||||
@cancel="cancelChip"
|
||||
@undo="undoChip"
|
||||
:data="{
|
||||
money: downChip.luck_six_amount,
|
||||
show: touch == 'luck_six_amount'
|
||||
}"
|
||||
></confirmBet>
|
||||
<chipView
|
||||
@click="downBet($event, 'luck_six_amount')"
|
||||
:list="chipArray.luck_six_amount"
|
||||
:win="winArray.includes('luck_six')"
|
||||
></chipView>
|
||||
<div class="text">
|
||||
<span class="big">{{ Lang[Type].luckSix }} {{ Lang[Type].max }}</span>
|
||||
<span>1:20</span>
|
||||
</div>
|
||||
|
||||
<div class="money">{{ bet_amount_msg.luck_six_amount || 0 }}</div>
|
||||
</div>
|
||||
<!-- 庄对 -->
|
||||
<div class="item bpair">
|
||||
<div class="item grid-item">
|
||||
<confirmBet
|
||||
@confirm="confirmChip"
|
||||
@cancel="cancelChip"
|
||||
@@ -86,13 +71,17 @@
|
||||
:win="winArray.includes('banker_pair')"
|
||||
></chipView>
|
||||
<div class="text">
|
||||
<span class="big">{{ Lang[Type].p_banker }}</span>
|
||||
<span>1:{{ tableData.price_pair }}</span>
|
||||
<span class="label text-red">{{ Lang[Type].msg_banker_pair }}</span>
|
||||
<span class="odds">1:11</span>
|
||||
</div>
|
||||
<div class="money" v-if="bet_amount_msg.banker_pair_amount">
|
||||
<i class="coin-icon"></i>
|
||||
{{ bet_amount_msg.banker_pair_amount }}
|
||||
</div>
|
||||
<div class="money">{{ bet_amount_msg.banker_pair_amount }}</div>
|
||||
</div>
|
||||
|
||||
<!-- 大 -->
|
||||
<div class="item max" :class="{ unclick: can_bet_big_small != 1 }">
|
||||
<div class="item grid-item" :class="{ unclick: can_bet_big_small != 1 }">
|
||||
<confirmBet
|
||||
@confirm="confirmChip"
|
||||
@cancel="cancelChip"
|
||||
@@ -105,15 +94,20 @@
|
||||
:win="winArray.includes('big')"
|
||||
></chipView>
|
||||
<div class="text">
|
||||
<span class="big">{{ Lang[Type].big }}</span>
|
||||
<span>1:0.5</span>
|
||||
<span class="label text-red">{{ Lang[Type].big }}</span>
|
||||
<span class="odds">1:0.5</span>
|
||||
</div>
|
||||
<div class="money" v-if="bet_amount_msg.big_amount">
|
||||
<i class="coin-icon"></i>
|
||||
{{ bet_amount_msg.big_amount }}
|
||||
</div>
|
||||
<div class="money">{{ bet_amount_msg.big_amount || 0 }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 第二行: 闲 | 和 | 庄 -->
|
||||
<div class="list bottom">
|
||||
<!-- 闲 -->
|
||||
<div class="item palyer">
|
||||
<div class="item grid-item">
|
||||
<confirmBet
|
||||
@confirm="confirmChip"
|
||||
@cancel="cancelChip"
|
||||
@@ -129,13 +123,17 @@
|
||||
:win="winArray.includes('player')"
|
||||
></chipView>
|
||||
<div class="text">
|
||||
<span class="big">{{ Lang[Type].player }}</span>
|
||||
<span>1:{{ tableData.price_player }}</span>
|
||||
<span class="label-large text-blue">{{ Lang[Type].player }}</span>
|
||||
<span class="odds">1:{{ tableData.price_player }}</span>
|
||||
</div>
|
||||
<div class="money" v-if="bet_amount_msg.player_amount">
|
||||
<i class="coin-icon"></i>
|
||||
{{ bet_amount_msg.player_amount }}
|
||||
</div>
|
||||
<div class="money">{{ bet_amount_msg.player_amount }}</div>
|
||||
</div>
|
||||
|
||||
<!-- 和 -->
|
||||
<div class="item tie">
|
||||
<div class="item grid-item">
|
||||
<confirmBet
|
||||
@confirm="confirmChip"
|
||||
@cancel="cancelChip"
|
||||
@@ -148,13 +146,17 @@
|
||||
:win="winArray.includes('tie')"
|
||||
></chipView>
|
||||
<div class="text">
|
||||
<span class="big">{{ Lang[Type].tie }}</span>
|
||||
<span>1:{{ tableData.price_tie_baccarat }}</span>
|
||||
<span class="label-large text-green">{{ Lang[Type].tie }}</span>
|
||||
<span class="odds">1:{{ tableData.price_tie_baccarat }}</span>
|
||||
</div>
|
||||
<div class="money" v-if="bet_amount_msg.tie_amount">
|
||||
<i class="coin-icon"></i>
|
||||
{{ bet_amount_msg.tie_amount }}
|
||||
</div>
|
||||
<div class="money">{{ bet_amount_msg.tie_amount }}</div>
|
||||
</div>
|
||||
|
||||
<!-- 庄 -->
|
||||
<div class="item banker">
|
||||
<div class="item grid-item">
|
||||
<confirmBet
|
||||
@confirm="confirmChip"
|
||||
@cancel="cancelChip"
|
||||
@@ -170,12 +172,15 @@
|
||||
:win="winArray.includes('banker')"
|
||||
></chipView>
|
||||
<div class="text">
|
||||
<span class="big">{{ Lang[Type].banker }}</span>
|
||||
<span>
|
||||
<span class="label-large text-red">{{ Lang[Type].banker }}</span>
|
||||
<span class="odds">
|
||||
{{ baccarat_type == 0 ? `1:${tableData.price_banker}` : "1:1" }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="money">{{ bet_amount_msg.banker_amount }}</div>
|
||||
<div class="money" v-if="bet_amount_msg.banker_amount">
|
||||
<i class="coin-icon"></i>
|
||||
{{ bet_amount_msg.banker_amount }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -253,153 +258,125 @@ export default {
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
/* 深色豪华主题配色 */
|
||||
$dark-bg: #0d0d0d;
|
||||
$card-bg: #1e1e1e;
|
||||
$border-color: #444;
|
||||
$gold: #c5a059;
|
||||
$text-secondary: #888;
|
||||
|
||||
.baccarat {
|
||||
background: rgba(30, 30, 30, 0.95);
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
padding: 8px;
|
||||
box-sizing: border-box;
|
||||
font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
|
||||
.list {
|
||||
display: flex;
|
||||
box-sizing: border-box;
|
||||
&:first-child {
|
||||
border-bottom: 1px solid $border-color;
|
||||
}
|
||||
gap: 8px;
|
||||
|
||||
&.top {
|
||||
height: 50%;
|
||||
flex: 3; // Top row height ratio
|
||||
.item {
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
&:nth-child(3) {
|
||||
min-width: 4.86rem;
|
||||
}
|
||||
.text {
|
||||
margin-top: -2px;
|
||||
text-shadow: 1px 1px #050505;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.bottom {
|
||||
height: 50%;
|
||||
flex: 5; // Bottom row height ratio
|
||||
.item {
|
||||
width: 33.33%;
|
||||
height: 100%;
|
||||
.text {
|
||||
font-size: 0.65rem;
|
||||
text-shadow: 1px 1px #050505;
|
||||
}
|
||||
flex: 1;
|
||||
}
|
||||
// Removed specific flex for green-main as per instruction, assuming it's not needed for the new look.
|
||||
}
|
||||
|
||||
.item {
|
||||
position: relative;
|
||||
border-right: 1px solid $border-color;
|
||||
font-size: 0.45rem;
|
||||
&:last-child {
|
||||
border: none;
|
||||
}
|
||||
border-radius: 8px;
|
||||
// Removed border and box-shadow, now handled by .grid-item
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.2s;
|
||||
overflow: hidden;
|
||||
|
||||
// Unclick state
|
||||
&.unclick {
|
||||
&:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 102%;
|
||||
border-bottom: 1px solid $border-color;
|
||||
top: 50%;
|
||||
transform: rotate(14deg);
|
||||
z-index: 6;
|
||||
left: -2px;
|
||||
}
|
||||
&.max:after {
|
||||
width: 104%;
|
||||
transform: rotate(21deg);
|
||||
}
|
||||
&.min:after {
|
||||
width: 104%;
|
||||
transform: rotate(21deg);
|
||||
}
|
||||
.chip-view {
|
||||
background: rgba(98, 74, 4, 0.4);
|
||||
}
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
filter: grayscale(0.8);
|
||||
}
|
||||
|
||||
.chip-box {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
top: 0;
|
||||
&:active {
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
}
|
||||
}
|
||||
// Text Styles
|
||||
.text {
|
||||
position: relative;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
line-height: 1;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
pointer-events: none;
|
||||
color: #fff;
|
||||
.big {
|
||||
font-weight: bold;
|
||||
padding-right: 0.24rem;
|
||||
padding-left: 0.2rem;
|
||||
|
||||
.label {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
.label-large {
|
||||
font-size: 24px; /* Reduced from 32px */
|
||||
font-weight: 800;
|
||||
margin-bottom: 2px; /* Reduced margin */
|
||||
}
|
||||
|
||||
.odds {
|
||||
font-size: 14px; /* Increased from 12px */
|
||||
color: #FFD700; /* Gold */
|
||||
font-weight: 600;
|
||||
display: block; /* Ensure formatting */
|
||||
text-shadow: 0 1px 2px rgba(0,0,0,0.8);
|
||||
}
|
||||
|
||||
.text-blue { color: #29abe2; }
|
||||
.text-red { color: #ed1c24; }
|
||||
.text-green { color: #22ac38; }
|
||||
}
|
||||
|
||||
// Money display
|
||||
.money {
|
||||
position: absolute;
|
||||
left: 0px;
|
||||
bottom: -2px;
|
||||
font-size: 0.24rem;
|
||||
font-weight: normal;
|
||||
transform: scale(0.7);
|
||||
color: $text-secondary;
|
||||
vertical-align: bottom;
|
||||
bottom: 6px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
color: #ffd700;
|
||||
font-size: 12px;
|
||||
z-index: 3;
|
||||
white-space: nowrap;
|
||||
pointer-events: none;
|
||||
&::before {
|
||||
display: inline-block;
|
||||
content: "总";
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
font-size: 10px;
|
||||
border-radius: 0.615rem;
|
||||
width: 0.615rem;
|
||||
height: 0.615rem;
|
||||
text-align: center;
|
||||
line-height: 0.615rem;
|
||||
font-weight: normal;
|
||||
margin-right: 0.06rem;
|
||||
transform: scale(0.7);
|
||||
// Removed background, padding, border-radius, border
|
||||
|
||||
.coin-icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
background: #ffd700;
|
||||
border-radius: 50%;
|
||||
border: 1px solid #fff;
|
||||
box-shadow: 0 0 2px rgba(0,0,0,0.5);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.banker .chip-view {
|
||||
border-bottom-right-radius: 10px;
|
||||
}
|
||||
.palyer .chip-view {
|
||||
border-bottom-left-radius: 10px;
|
||||
}
|
||||
.max .chip-view {
|
||||
border-top-right-radius: 10px;
|
||||
}
|
||||
.min .chip-view {
|
||||
border-top-left-radius: 10px;
|
||||
}
|
||||
.luck .text {
|
||||
text-shadow: none !important;
|
||||
background-image: linear-gradient(
|
||||
90deg,
|
||||
#ffcc7d 0%,
|
||||
#93dd96 20%,
|
||||
#6078d4 50%,
|
||||
#f7e96f 100%
|
||||
);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
|
||||
// Grid Item Style (Digital Table Look)
|
||||
.grid-item {
|
||||
background: rgba(9, 60, 50, 0.7); // Deep Teal Transparent
|
||||
border: 1px solid #59cfa8; // Cyan/Green Border
|
||||
box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
|
||||
|
||||
&:active {
|
||||
background: rgba(9, 60, 50, 0.9);
|
||||
border-color: #7fffd4;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
+233
-493
@@ -1,256 +1,76 @@
|
||||
<template>
|
||||
<div class="playway">
|
||||
<div class="canvas-box">
|
||||
<canvas class="canvas" ref="refItem"></canvas>
|
||||
<div
|
||||
class="switch-btn"
|
||||
@click="switchBigWay"
|
||||
v-if="tableData.game_id == 6"
|
||||
>
|
||||
{{ Lang[Type].zhupan }}
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="btn-box"
|
||||
v-if="tableData.game_id == 1 || tableData.game_id == 2"
|
||||
>
|
||||
<div class="left">
|
||||
<div class="item">
|
||||
<span class="lab">
|
||||
{{ tableData.game_id == 1 ? Lang[Type].banker : Lang[Type].dragon }}
|
||||
</span>
|
||||
<span class="num banker">{{ tableData.bankerCount || 0 }}</span>
|
||||
<div class="playway" :class="{ 'white-theme': [1, 2].includes(tableData.game_id) }">
|
||||
|
||||
<!-- New Baccarat/DT Layout -->
|
||||
<div class="baccarat-view" v-if="[1, 2].includes(tableData.game_id)">
|
||||
<!-- Top Header Bar -->
|
||||
<div class="header-bar">
|
||||
<div class="left-stats">
|
||||
<div class="stat-item"><span class="badge red">庄</span><span class="val red">{{ tableData.bankerCount || 0 }}</span></div>
|
||||
<div class="stat-item"><span class="badge blue">闲</span><span class="val blue">{{ tableData.playerCount || 0 }}</span></div>
|
||||
<div class="stat-item"><span class="badge green">和</span><span class="val green">{{ tableData.tieCount || 0 }}</span></div>
|
||||
<div class="stat-item" v-if="tableData.game_id == 1"><span class="badge red">庄对</span><span class="val red">{{ tableData.banker_pair_Count || 0 }}</span></div>
|
||||
<div class="stat-item" v-if="tableData.game_id == 1"><span class="badge blue">闲对</span><span class="val blue">{{ tableData.player_pair_Count || 0 }}</span></div>
|
||||
</div>
|
||||
<div class="item" v-if="tableData.game_id == 1">
|
||||
<span class="lab">{{ Lang[Type].p_banker }}</span>
|
||||
<span class="num banker">{{ tableData.banker_pair_Count || 0 }}</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="lab">
|
||||
{{ tableData.game_id == 1 ? Lang[Type].player : Lang[Type].tiger }}
|
||||
</span>
|
||||
<span class="num palyer">{{ tableData.playerCount || 0 }}</span>
|
||||
</div>
|
||||
<div class="item" v-if="tableData.game_id == 1">
|
||||
<span class="lab">{{ Lang[Type].p_player }}</span>
|
||||
<span class="num palyer">{{ tableData.player_pair_Count || 0 }}</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="lab">{{ Lang[Type].tie }}</span>
|
||||
<span class="num tie">{{ tableData.tieCount || 0 }}</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="lab">{{ Lang[Type].game }}</span>
|
||||
<span class="num">{{ tableData.number_tab_number - 1 || 0 }}</span>
|
||||
<div class="right-info">
|
||||
<span class="badge black">局号</span>
|
||||
<span class="game-num">{{ tableData.number_tab_number || '0-0' }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<div class="banker ask" @click="askWay('banker')">
|
||||
<span class="text">
|
||||
{{
|
||||
tableData.game_id == 1
|
||||
? Lang[Type].askbanker
|
||||
: Lang[Type].askdragon
|
||||
}}
|
||||
</span>
|
||||
<ul class="btn">
|
||||
<li
|
||||
class="li circle"
|
||||
:class="autoaskData.BbigEyeRoadcolor"
|
||||
v-show="autoaskData.BbigEyeRoadisshow"
|
||||
></li>
|
||||
<li
|
||||
class="li round"
|
||||
:class="autoaskData.Bpathwaycolor"
|
||||
v-show="autoaskData.Bpathwayisshow"
|
||||
></li>
|
||||
<li
|
||||
class="li line"
|
||||
:class="autoaskData.Broachcolor"
|
||||
v-show="autoaskData.Broachisshow"
|
||||
></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="palyer ask" @click="askWay('palyer')">
|
||||
<span class="text">
|
||||
{{
|
||||
tableData.game_id == 1
|
||||
? Lang[Type].askplayer
|
||||
: Lang[Type].asktiger
|
||||
}}
|
||||
</span>
|
||||
<ul class="btn">
|
||||
<li
|
||||
class="li circle"
|
||||
:class="autoaskData.PbigEyeRoadcolor"
|
||||
v-show="autoaskData.PbigEyeRoadisshow"
|
||||
></li>
|
||||
<li
|
||||
class="li round"
|
||||
:class="autoaskData.Ppathwaycolor"
|
||||
v-show="autoaskData.Ppathwayisshow"
|
||||
></li>
|
||||
<li
|
||||
class="li line"
|
||||
:class="autoaskData.Proachcolor"
|
||||
v-show="autoaskData.Proachisshow"
|
||||
></li>
|
||||
</ul>
|
||||
|
||||
<!-- Main Road Area -->
|
||||
<div class="road-box">
|
||||
<canvas class="canvas" ref="refItem"></canvas>
|
||||
|
||||
<!-- Ask Way Overlay (Bottom Right) -->
|
||||
<div class="ask-panel">
|
||||
<!-- Banker Ask -->
|
||||
<div class="ask-group" @click="askWay('banker')">
|
||||
<div class="ask-title text-red">庄问路</div>
|
||||
<div class="ask-icons">
|
||||
<span class="icon solid red" v-if="autoaskData.BbigEyeRoadisshow && autoaskData.BbigEyeRoadcolor == 'red'"></span>
|
||||
<span class="icon solid blue" v-if="autoaskData.BbigEyeRoadisshow && autoaskData.BbigEyeRoadcolor == 'blue'"></span>
|
||||
|
||||
<span class="icon hollow red" v-if="autoaskData.Bpathwayisshow && autoaskData.Bpathwaycolor == 'red'"></span>
|
||||
<span class="icon hollow blue" v-if="autoaskData.Bpathwayisshow && autoaskData.Bpathwaycolor == 'blue'"></span>
|
||||
|
||||
<span class="icon slash red" v-if="autoaskData.Broachisshow && autoaskData.Broachcolor == 'red'"></span>
|
||||
<span class="icon slash blue" v-if="autoaskData.Broachisshow && autoaskData.Broachcolor == 'blue'"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Player Ask -->
|
||||
<div class="ask-group" @click="askWay('palyer')">
|
||||
<div class="ask-title text-blue">闲问路</div>
|
||||
<div class="ask-icons">
|
||||
<span class="icon solid red" v-if="autoaskData.PbigEyeRoadisshow && autoaskData.PbigEyeRoadcolor == 'red'"></span>
|
||||
<span class="icon solid blue" v-if="autoaskData.PbigEyeRoadisshow && autoaskData.PbigEyeRoadcolor == 'blue'"></span>
|
||||
|
||||
<span class="icon hollow red" v-if="autoaskData.Ppathwayisshow && autoaskData.Ppathwaycolor == 'red'"></span>
|
||||
<span class="icon hollow blue" v-if="autoaskData.Ppathwayisshow && autoaskData.Ppathwaycolor == 'blue'"></span>
|
||||
|
||||
<span class="icon slash red" v-if="autoaskData.Proachisshow && autoaskData.Proachcolor == 'red'"></span>
|
||||
<span class="icon slash blue" v-if="autoaskData.Proachisshow && autoaskData.Proachcolor == 'blue'"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="totle-box"
|
||||
style="width: 2.6rem"
|
||||
v-if="tableData.game_id == 4 || tableData.game_id == 5"
|
||||
>
|
||||
<div class="list" style="max-width: 100%">
|
||||
<div class="item">
|
||||
<span class="lab">{{ Lang[Type].player }}1</span>
|
||||
<span class="num banker">{{ tableData.player_1_count || 0 }}</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="lab">{{ Lang[Type].player }}2</span>
|
||||
<span class="num palyer">{{ tableData.player_2_count || 0 }}</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="lab">{{ Lang[Type].player }}3</span>
|
||||
<span class="num tie">{{ tableData.player_3_count || 0 }}</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="lab">{{ Lang[Type].game }}</span>
|
||||
<span class="num">{{ tableData.number_tab_number - 1 || 0 }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="totle-box" v-if="tableData.game_id == 6">
|
||||
<div class="list">
|
||||
<div class="item">
|
||||
<span class="lab">0</span>
|
||||
<span class="num black">{{ tableData.count.zero_count || 0 }}</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="lab">1</span>
|
||||
<span class="num palyer">{{ tableData.count.one_count || 0 }}</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="lab">2</span>
|
||||
<span class="num tie">{{ tableData.count.two_count || 0 }}</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="lab">3</span>
|
||||
<span class="num yellow">{{ tableData.count.three_count || 0 }}</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="lab">4</span>
|
||||
<span class="num banker">{{ tableData.count.four_count || 0 }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list">
|
||||
<div class="item">
|
||||
<span class="lab">{{ Lang[Type].odd }}</span>
|
||||
<span class="num palyer">
|
||||
{{ tableData.count.singular_count || 0 }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="lab">{{ Lang[Type].even }}</span>
|
||||
<span class="num banker">
|
||||
{{ tableData.count.plural_count || 0 }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="lab">{{ Lang[Type].big }}</span>
|
||||
<span class="num banker">{{ tableData.count.big_count || 0 }}</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="lab">{{ Lang[Type].small }}</span>
|
||||
<span class="num palyer">{{ tableData.count.small_count || 0 }}</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="lab">{{ Lang[Type].game }}</span>
|
||||
<span class="num">{{ tableData.number_tab_number - 1 || 0 }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="totle-box" v-if="tableData.game_id == 7">
|
||||
<div class="list">
|
||||
<div class="item">
|
||||
<span class="lab">{{ Lang[Type].big }}</span>
|
||||
<span class="num banker">{{ tableData.count.big_count || 0 }}</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="lab">{{ Lang[Type].small }}</span>
|
||||
<span class="num palyer">{{ tableData.count.small_count || 0 }}</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="lab">{{ Lang[Type].wai_dice }}</span>
|
||||
<span class="num tie">{{ tableData.count.leopard_count || 0 }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list">
|
||||
<div class="item">
|
||||
<span class="lab">{{ Lang[Type].even }}</span>
|
||||
<span class="num banker">
|
||||
{{ tableData.count.plural_count || 0 }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="lab">{{ Lang[Type].odd }}</span>
|
||||
<span class="num palyer">
|
||||
{{ tableData.count.singular_count || 0 }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="lab">{{ Lang[Type].game }}</span>
|
||||
<span class="num">{{ tableData.number_tab_number - 1 || 0 }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="totle-box" v-if="tableData.game_id == 8">
|
||||
<div class="list">
|
||||
<div class="item">
|
||||
<span class="lab">{{ Lang[Type].red }}</span>
|
||||
<span class="num banker">{{ tableData.count.red_count || 0 }}</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="lab">{{ Lang[Type].big }}</span>
|
||||
<span class="num banker">{{ tableData.count.high_count || 0 }}</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="lab">{{ Lang[Type].odd }}</span>
|
||||
<span class="num palyer">{{ tableData.count.odd_count || 0 }}</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="lab">{{ Lang[Type].zero }}</span>
|
||||
<span class="num tie">{{ tableData.count.zero_count || 0 }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list">
|
||||
<div class="item">
|
||||
<span class="lab">{{ Lang[Type].black }}</span>
|
||||
<span class="num black">
|
||||
{{ tableData.count.black_count || 0 }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="lab">{{ Lang[Type].small }}</span>
|
||||
<span class="num palyer">
|
||||
{{ tableData.count.low_count || 0 }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="lab">{{ Lang[Type].even }}</span>
|
||||
<span class="num banker">
|
||||
{{ tableData.count.even_count || 0 }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="lab">{{ Lang[Type].game }}</span>
|
||||
<span class="num">{{ tableData.number_tab_number - 1 || 0 }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Fallback for Other Games -->
|
||||
<div class="other-view" v-else>
|
||||
<div class="canvas-box">
|
||||
<canvas class="canvas" ref="refItem"></canvas>
|
||||
</div>
|
||||
<div class="totle-box" v-if="[4,5,6,7,8].includes(tableData.game_id)">
|
||||
<div class="list">
|
||||
<div class="item" v-for="(val, key) in tableData.count" :key="key">
|
||||
<span class="lab">{{key}}</span><span class="num">{{val}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -258,16 +78,13 @@
|
||||
import { ref, watch, nextTick, computed } from "vue"
|
||||
import { useStore } from "vuex"
|
||||
import { waybillAsk, waybillConfig, autoask } from "@/assets/js/waybill.js"
|
||||
|
||||
export default {
|
||||
name: "PlayWay",
|
||||
components: {},
|
||||
props: {
|
||||
tableData: {
|
||||
type: Object,
|
||||
default: () => ({
|
||||
ludan: {},
|
||||
game_id: 1
|
||||
})
|
||||
default: () => ({ ludan: {}, game_id: 1 })
|
||||
}
|
||||
},
|
||||
setup(props) {
|
||||
@@ -278,13 +95,11 @@ export default {
|
||||
const Lang = computed(() => store.state.config.$lang)
|
||||
const toningShowBigWay = computed(() => store.state.config.toningShowBigWay)
|
||||
const timeStamp = computed(() => store.state.config.timeStamp)
|
||||
|
||||
const askWay = (type) => {
|
||||
const data = props.tableData
|
||||
waybillAsk(refItem.value, type, data, data.game_id)
|
||||
}
|
||||
const switchBigWay = () => {
|
||||
store.commit("config/toningShowBigWay")
|
||||
waybillAsk(refItem.value, type, props.tableData, props.tableData.game_id)
|
||||
}
|
||||
|
||||
watch(
|
||||
() => [
|
||||
props.tableData.ludan,
|
||||
@@ -294,274 +109,199 @@ export default {
|
||||
],
|
||||
() => {
|
||||
nextTick(() => {
|
||||
waybillConfig(refItem.value, props.tableData, props.tableData.game_id)
|
||||
autoaskData.value = autoask(props.tableData)
|
||||
if (refItem.value) {
|
||||
waybillConfig(refItem.value, props.tableData, props.tableData.game_id)
|
||||
autoaskData.value = autoask(props.tableData)
|
||||
}
|
||||
})
|
||||
},
|
||||
{ immediate: true, deep: true }
|
||||
)
|
||||
|
||||
return {
|
||||
Type,
|
||||
Lang,
|
||||
refItem,
|
||||
autoaskData,
|
||||
askWay,
|
||||
switchBigWay
|
||||
askWay
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
/* 深色豪华主题配色 */
|
||||
$dark-bg: #0d0d0d;
|
||||
$card-bg: #1e1e1e;
|
||||
$border-color: #444;
|
||||
$text-secondary: #888;
|
||||
$gold: #c5a059;
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.playway {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: #1a1a1a;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: $card-bg;
|
||||
.canvas-box {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
flex-direction: column;
|
||||
border-top: 1px solid #333;
|
||||
}
|
||||
|
||||
.baccarat-view {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
|
||||
.header-bar {
|
||||
flex: 0 0 32px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0 12px;
|
||||
background: #252525;
|
||||
border-bottom: 1px solid #333;
|
||||
font-size: 13px;
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.3);
|
||||
z-index: 5;
|
||||
|
||||
.left-stats {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
.stat-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
.badge {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
color: #fff;
|
||||
border-radius: 4px;
|
||||
font-size: 11px;
|
||||
line-height: 1;
|
||||
font-weight: bold;
|
||||
&.red { background: #d0021b; }
|
||||
&.blue { background: #0044fa; }
|
||||
&.green { background: #22ac38; }
|
||||
}
|
||||
.val {
|
||||
font-weight: 700;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
&.red { color: #ff4d4f; }
|
||||
&.blue { color: #40a9ff; }
|
||||
&.green { color: #52c41a; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.right-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
.badge.black {
|
||||
background: #444;
|
||||
color: #ccc;
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.game-num {
|
||||
font-weight: bold;
|
||||
color: #ffd700;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.road-box {
|
||||
flex: 1;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
background: #1a1a1a;
|
||||
overflow: hidden;
|
||||
|
||||
.canvas {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
.switch-btn {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 32%;
|
||||
font-size: 0.2rem;
|
||||
background: rgba(197, 160, 89, 0.8);
|
||||
color: #000;
|
||||
padding: 0.05rem 0.1rem 0 0.1rem;
|
||||
border-top-left-radius: 0.1rem;
|
||||
border-top-right-radius: 0.1rem;
|
||||
&:active {
|
||||
opacity: 0.4;
|
||||
}
|
||||
}
|
||||
}
|
||||
.btn-box {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
font-size: 0.4rem;
|
||||
font-weight: 600;
|
||||
background: $card-bg;
|
||||
.left {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
width: 3.169rem;
|
||||
line-height: 1;
|
||||
color: $text-secondary;
|
||||
border-left: 1px solid $border-color;
|
||||
min-width: 90px;
|
||||
max-width: 180px;
|
||||
.item {
|
||||
min-width: 45%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.lab {
|
||||
padding: 0 0.153rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
.right {
|
||||
border-left: 1px solid $border-color;
|
||||
text-align: center;
|
||||
font-size: 0.369rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-items: center;
|
||||
min-width: 55px;
|
||||
max-width: 100px;
|
||||
flex: 1;
|
||||
.ask {
|
||||
height: 50%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 0 0.2rem;
|
||||
color: #fff;
|
||||
.btn {
|
||||
height: 0.55rem;
|
||||
border-radius: 0.55rem;
|
||||
background: linear-gradient(
|
||||
180deg,
|
||||
rgba(60, 60, 60, 1) 0%,
|
||||
rgba(40, 40, 40, 1) 35%,
|
||||
rgba(30, 30, 30, 1) 100%
|
||||
);
|
||||
box-shadow: 0px 0px 1px 0.5px rgba(197, 160, 89, 0.3);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 2px;
|
||||
padding: 0 0.1rem;
|
||||
min-width: 90%;
|
||||
&:active {
|
||||
opacity: 0.5;
|
||||
}
|
||||
.li {
|
||||
width: 0.369rem;
|
||||
min-width: 0.369rem;
|
||||
height: 0.369rem;
|
||||
|
||||
&.circle {
|
||||
border-radius: 0.369rem;
|
||||
box-sizing: border-box;
|
||||
border: 3px solid #444;
|
||||
&.red {
|
||||
border-color: #d14458;
|
||||
}
|
||||
&.blue {
|
||||
border-color: #3779d7;
|
||||
}
|
||||
}
|
||||
&.line {
|
||||
position: relative;
|
||||
&:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 5%;
|
||||
width: 3px;
|
||||
height: 90%;
|
||||
border-radius: 3px;
|
||||
transform: skewX(-30deg);
|
||||
}
|
||||
&.red:after {
|
||||
background: #d14458;
|
||||
}
|
||||
&.blue:after {
|
||||
background: #3779d7;
|
||||
}
|
||||
}
|
||||
&.round {
|
||||
border-radius: 12px;
|
||||
margin-left: 5px;
|
||||
&.red {
|
||||
background: #d14458;
|
||||
}
|
||||
&.blue {
|
||||
background: #3779d7;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&.banker {
|
||||
border-bottom: 1px solid $border-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.totle-box {
|
||||
display: flex;
|
||||
width: 5.2rem;
|
||||
height: 100%;
|
||||
border-left: 1px solid $border-color;
|
||||
background: $card-bg;
|
||||
.list {
|
||||
flex: 1;
|
||||
font-size: 0.38rem;
|
||||
font-weight: 600;
|
||||
padding: 0.15rem 0.25rem;
|
||||
/* Ask Panel Floating Bottom Right */
|
||||
.ask-panel {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
width: 200px; /* Compact width */
|
||||
height: 32px;
|
||||
background: rgba(30,30,30, 0.95);
|
||||
border-top-left-radius: 8px;
|
||||
border: 1px solid #444;
|
||||
border-right: none;
|
||||
border-bottom: none;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
height: 100%;
|
||||
box-sizing: border-box;
|
||||
&:first-child {
|
||||
max-width: 42%;
|
||||
}
|
||||
.item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
line-height: 1;
|
||||
color: $text-secondary;
|
||||
.black {
|
||||
color: #aaa;
|
||||
}
|
||||
.yellow {
|
||||
color: #ffc107;
|
||||
}
|
||||
z-index: 10;
|
||||
box-shadow: -2px -2px 5px rgba(0,0,0,0.5);
|
||||
|
||||
.ask-group {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
cursor: pointer;
|
||||
border-right: 1px solid #444;
|
||||
&:last-child { border-right: none; }
|
||||
|
||||
.ask-title {
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
&.text-red { color: #ff4d4f; }
|
||||
&.text-blue { color: #40a9ff; }
|
||||
}
|
||||
|
||||
.ask-icons {
|
||||
display: flex;
|
||||
gap: 3px;
|
||||
align-items: center;
|
||||
|
||||
.icon {
|
||||
display: inline-block;
|
||||
&.solid {
|
||||
width: 6px; height: 6px; border-radius: 50%;
|
||||
&.red { background: #d0021b; }
|
||||
&.blue { background: #0044fa; }
|
||||
}
|
||||
&.hollow {
|
||||
width: 6px; height: 6px; border-radius: 50%; border: 1px solid;
|
||||
&.red { border-color: #d0021b; }
|
||||
&.blue { border-color: #0044fa; }
|
||||
}
|
||||
&.slash {
|
||||
width: 2px; height: 6px; transform: rotate(-45deg);
|
||||
&.red { background: #d0021b; }
|
||||
&.blue { background: #0044fa; }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* 竖屏模式下,路单内容适配 */
|
||||
@media screen and (orientation: portrait) {
|
||||
.playway.playway {
|
||||
display: flex !important;
|
||||
flex-direction: row !important;
|
||||
align-items: stretch !important;
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
|
||||
.canvas-box.canvas-box {
|
||||
flex: 1 !important;
|
||||
min-width: 0 !important;
|
||||
width: auto !important;
|
||||
height: 100% !important;
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
.btn-box.btn-box {
|
||||
flex: none !important;
|
||||
width: 150px !important;
|
||||
height: 100% !important;
|
||||
margin: 0 !important;
|
||||
border-left: 1px solid #444 !important;
|
||||
flex-direction: column !important;
|
||||
|
||||
.left,
|
||||
.right {
|
||||
flex: 1 !important;
|
||||
flex-direction: column !important;
|
||||
justify-content: space-evenly !important;
|
||||
}
|
||||
}
|
||||
|
||||
.totle-box.totle-box {
|
||||
flex: none !important;
|
||||
width: 100px !important;
|
||||
height: 100% !important;
|
||||
margin: 0 !important;
|
||||
border-left: 1px solid #444 !important;
|
||||
|
||||
.list.list {
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
font-size: 0.22rem !important;
|
||||
padding: 0.06rem 0.08rem !important;
|
||||
display: flex !important;
|
||||
flex-direction: column !important;
|
||||
justify-content: space-evenly !important;
|
||||
align-items: flex-start !important;
|
||||
|
||||
.item {
|
||||
width: 100% !important;
|
||||
margin: 0.01rem 0 !important;
|
||||
|
||||
.lab {
|
||||
font-size: 0.2rem !important;
|
||||
}
|
||||
|
||||
.num {
|
||||
font-size: 0.22rem !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
.other-view {
|
||||
display: flex;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
.canvas-box { flex: 1; height: 100%; .canvas{width:100%; height:100%;} }
|
||||
.totle-box {
|
||||
width: 120px;
|
||||
background: #222;
|
||||
color: #fff;
|
||||
padding: 10px;
|
||||
overflow-y: auto;
|
||||
border-left: 1px solid #444;
|
||||
.item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 5px;
|
||||
font-size: 12px;
|
||||
color: #ccc;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,8 +61,8 @@ export default {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
.box {
|
||||
width: 0.69 * 1.35rem;
|
||||
height: 0.55 * 1.35rem;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
position: absolute;
|
||||
transition: 0.5s all;
|
||||
}
|
||||
@@ -70,6 +70,47 @@ export default {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
|
||||
// 筹码图片背景(只为存在的图片文件添加样式)
|
||||
&.chip_1s {
|
||||
background-image: url("~@/assets/images/chip/1s.png");
|
||||
}
|
||||
&.chip_5s {
|
||||
background-image: url("~@/assets/images/chip/5s.png");
|
||||
}
|
||||
&.chip_1b {
|
||||
background-image: url("~@/assets/images/chip/1b.png");
|
||||
}
|
||||
&.chip_2b {
|
||||
background-image: url("~@/assets/images/chip/2b.png");
|
||||
}
|
||||
&.chip_5b {
|
||||
background-image: url("~@/assets/images/chip/5b.png");
|
||||
}
|
||||
&.chip_1k {
|
||||
background-image: url("~@/assets/images/chip/1k.png");
|
||||
}
|
||||
&.chip_2k {
|
||||
background-image: url("~@/assets/images/chip/2k.png");
|
||||
}
|
||||
&.chip_5k {
|
||||
background-image: url("~@/assets/images/chip/5k.png");
|
||||
}
|
||||
&.chip_1w {
|
||||
background-image: url("~@/assets/images/chip/1w.png");
|
||||
}
|
||||
&.chip_2w {
|
||||
background-image: url("~@/assets/images/chip/2w.png");
|
||||
}
|
||||
&.chip_5w {
|
||||
background-image: url("~@/assets/images/chip/5w.png");
|
||||
}
|
||||
&.chip_10w {
|
||||
background-image: url("~@/assets/images/chip/10w.png");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user