diff --git a/src/components/PlayTable/Index.vue b/src/components/PlayTable/Index.vue index c95d109a..27843776 100644 --- a/src/components/PlayTable/Index.vue +++ b/src/components/PlayTable/Index.vue @@ -300,7 +300,8 @@ export default { const downBet = (e, type) => { store.commit("app/standbyTime") const { value: chip, key } = chooseChip.value - if (props.sendMode == "startBetCountDown") { + // 临时注释时间限制,方便测试界面效果 + // if (props.sendMode == "startBetCountDown") { if (type == "luck_six_amount" && props.can_bet_luck_six != 1) { showToast(Lang.value[Type.value].to_bet_fail_7) } else if ( @@ -324,8 +325,8 @@ export default { sendChip[type] = chipVal + (sendChip[type] || 0) downChip[type] = chipVal + (downChip[type] || 0) chipArray[type].push({ - x: `calc(${getRndInteger(30, 90)}% - 0.69rem)`, - y: `calc(${getRndInteger(50, 90)}% - 0.55rem)`, + x: `calc(${getRndInteger(30, 90)}% - 0.69rem)`, // 筹码保持在框内 + y: `calc(${getRndInteger(50, 90)}% - 0.55rem)`, // 筹码保持在框内 key: `chip_${key}`, type: "self", uid: userInfo.value.id, @@ -333,7 +334,7 @@ export default { }) audioMp3(["push"]).Play() } - } + // } } const nameArray = [ // 百家乐&龙虎 diff --git a/src/components/PlayTable/TableBaccarat.vue b/src/components/PlayTable/TableBaccarat.vue index 9ae8fac1..a3a9a5d9 100644 --- a/src/components/PlayTable/TableBaccarat.vue +++ b/src/components/PlayTable/TableBaccarat.vue @@ -22,9 +22,9 @@ {{ Lang[Type].small }} 1:1.5 -
+
- {{ bet_amount_msg.small_amount }} + {{ bet_amount_msg.small_amount || 0 }}
@@ -48,9 +48,9 @@ {{ Lang[Type].msg_player_pair }} 1:11 -
+
- {{ bet_amount_msg.player_pair_amount }} + {{ bet_amount_msg.player_pair_amount || 0 }}
@@ -74,9 +74,9 @@ {{ Lang[Type].msg_banker_pair }} 1:11 -
+
- {{ bet_amount_msg.banker_pair_amount }} + {{ bet_amount_msg.banker_pair_amount || 0 }}
@@ -97,9 +97,9 @@ {{ Lang[Type].big }} 1:0.5 -
+
- {{ bet_amount_msg.big_amount }} + {{ bet_amount_msg.big_amount || 0 }}
@@ -126,9 +126,9 @@ {{ Lang[Type].player }} 1:{{ tableData.price_player }} -
+
- {{ bet_amount_msg.player_amount }} + {{ bet_amount_msg.player_amount || 0 }}
@@ -149,9 +149,9 @@ {{ Lang[Type].tie }} 1:{{ tableData.price_tie_baccarat }} -
+
- {{ bet_amount_msg.tie_amount }} + {{ bet_amount_msg.tie_amount || 0 }}
@@ -177,9 +177,9 @@ {{ baccarat_type == 0 ? `1:${tableData.price_banker}` : "1:1" }} -
+
- {{ bet_amount_msg.banker_amount }} + {{ bet_amount_msg.banker_amount || 0 }}
@@ -307,7 +307,7 @@ export default { align-items: center; justify-content: center; transition: all 0.2s; - overflow: hidden; + overflow: visible; /* 允许反馈图标完整显示 */ // Unclick state &.unclick { @@ -353,27 +353,34 @@ export default { .text-green { color: #22ac38; } } - // Money display + // Money display - 移到顶部并增强显示 .money { position: absolute; - bottom: 6px; + top: 4px; /* 改为顶部 */ left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; - color: #ffd700; - font-size: 12px; - z-index: 3; + color: #000; /* 改为黑色,更清晰 */ + font-size: 13px; /* 稍微放大 */ + font-weight: 700; /* 加粗 */ + z-index: 100; /* 大幅提升层级,确保在筹码之上 */ white-space: nowrap; pointer-events: none; - + + /* 添加金色渐变背景,防止被筹码遮挡 */ + background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%); + padding: 2px 8px; + border-radius: 10px; + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.3); + .coin-icon { - width: 14px; - height: 14px; - background: #ffd700; + width: 12px; + height: 12px; + background: #fff; border-radius: 50%; - border: 1px solid #fff; + border: 1px solid #DAA520; box-shadow: 0 0 2px rgba(0,0,0,0.5); } } diff --git a/src/components/PlayTable/TableBullbull.vue b/src/components/PlayTable/TableBullbull.vue index 3c98587c..f77b98ed 100644 --- a/src/components/PlayTable/TableBullbull.vue +++ b/src/components/PlayTable/TableBullbull.vue @@ -200,7 +200,7 @@ $text-red: #f56c6c; flex-direction: column; border: 1px solid $border-light; border-radius: 8px; - overflow: hidden; + overflow: visible; /* 允许反馈图标完整显示 */ background: $bg-dark; box-shadow: 0 4px 6px rgba(0,0,0,0.3); diff --git a/src/components/PlayTable/TableLonghu.vue b/src/components/PlayTable/TableLonghu.vue index b6ba3ace..c44abe53 100644 --- a/src/components/PlayTable/TableLonghu.vue +++ b/src/components/PlayTable/TableLonghu.vue @@ -210,27 +210,37 @@ $text-secondary: #888; } .money { position: absolute; - left: 0px; - bottom: -2px; - font-size: 0.24rem; - font-weight: normal; - transform: scale(0.7); - color: $text-secondary; - vertical-align: bottom; + top: 4px; /* 改为顶部 */ + left: 50%; + transform: translateX(-50%); + font-size: 13px; /* 放大字体 */ + font-weight: 700; /* 加粗 */ + color: #000; /* 黑色文字 */ pointer-events: none; + z-index: 100; /* 大幅提升层级 */ + + /* 添加金色渐变背景 */ + background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%); + padding: 2px 8px; + border-radius: 10px; + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.3); + display: flex; + align-items: center; + gap: 4px; + &::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; + background: rgba(255, 255, 255, 0.9); + font-size: 11px; + border-radius: 50%; + width: 18px; + height: 18px; text-align: center; - line-height: 0.615rem; - font-weight: normal; - margin-right: 0.06rem; - transform: scale(0.7); + line-height: 18px; + font-weight: 700; + color: #000; + border: 1px solid #DAA520; } } } diff --git a/src/components/chipView.vue b/src/components/chipView.vue index 442e3fc9..eda02542 100644 --- a/src/components/chipView.vue +++ b/src/components/chipView.vue @@ -45,6 +45,7 @@ export default { left: 0; top: 0; z-index: 3; + overflow: visible; // 允许筹码超出容器边界 &:active { background: rgba(255, 255, 255, 0.3); } @@ -60,11 +61,13 @@ export default { position: absolute; width: 100%; height: 100%; + overflow: visible; // 允许筹码超出chip-box边界 .box { width: 50px; height: 50px; position: absolute; transition: 0.5s all; + z-index: 1; // 给筹码添加层级,但低于下注框文字 } .chip { width: 100%; diff --git a/src/components/confirmBet.vue b/src/components/confirmBet.vue index 3aa5543d..fb4aaea9 100644 --- a/src/components/confirmBet.vue +++ b/src/components/confirmBet.vue @@ -1,18 +1,18 @@