fix: 牛牛路单改白底+限制最多显示7列,对齐游戏内UI风格

This commit is contained in:
li
2026-02-11 01:54:05 +08:00
parent 87c12ed6c2
commit 124cbf36ce
+13 -10
View File
@@ -241,9 +241,13 @@ export default {
// Note: In helper.php, waybill() returns { showRoad, bigRoad ... }
let beadRoad = [];
if (item.game_id == 4 || item.game_id == 5) {
// 牛牛/三卡: ludan.waybill 直接就是数组
// 牛牛/三卡: ludan.waybill 直接就是数组,只取最后7列
if (item.ludan && Array.isArray(item.ludan.waybill)) {
beadRoad = item.ludan.waybill;
let all = item.ludan.waybill;
let maxX = Math.max(...all.map(c => c.show_x), 0);
let keepCols = 7;
let cutX = Math.max(maxX - keepCols, 0);
beadRoad = all.filter(c => c.show_x > cutX).map(c => ({...c, show_x: c.show_x - cutX}));
}
} else if (item.ludan && item.ludan.waybill && item.ludan.waybill.showRoad) {
beadRoad = item.ludan.waybill.showRoad;
@@ -550,12 +554,12 @@ export default {
height: 100%;
display: flex;
flex-direction: column;
background: #1b2838;
background: #fff;
.nn-row {
display: flex;
flex: 1;
border-bottom: 1px solid #2a3a4a;
border-bottom: 1px solid #e0e0e0;
&:last-child { border-bottom: none; }
}
@@ -576,7 +580,6 @@ export default {
.nn-cells {
flex: 1;
white-space: nowrap;
}
.nn-cells-inner {
@@ -585,20 +588,20 @@ export default {
}
.nn-cell {
min-width: 38px;
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border-right: 1px solid #2a3a4a;
padding: 1px 2px;
border-right: 1px solid #e0e0e0;
padding: 1px 0;
}
.nn-text {
font-size: 10px;
font-weight: bold;
&.nn-text-red { color: #e74c3c; }
&.nn-text-blue { color: #7cb9e8; }
&.nn-text-red { color: #c0392b; }
&.nn-text-blue { color: #2c5fa1; }
}
.nn-win-tag {