fix: 牛牛路单改白底+限制最多显示7列,对齐游戏内UI风格
This commit is contained in:
+13
-10
@@ -241,9 +241,13 @@ export default {
|
|||||||
// Note: In helper.php, waybill() returns { showRoad, bigRoad ... }
|
// Note: In helper.php, waybill() returns { showRoad, bigRoad ... }
|
||||||
let beadRoad = [];
|
let beadRoad = [];
|
||||||
if (item.game_id == 4 || item.game_id == 5) {
|
if (item.game_id == 4 || item.game_id == 5) {
|
||||||
// 牛牛/三卡: ludan.waybill 直接就是数组
|
// 牛牛/三卡: ludan.waybill 直接就是数组,只取最后7列
|
||||||
if (item.ludan && Array.isArray(item.ludan.waybill)) {
|
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) {
|
} else if (item.ludan && item.ludan.waybill && item.ludan.waybill.showRoad) {
|
||||||
beadRoad = item.ludan.waybill.showRoad;
|
beadRoad = item.ludan.waybill.showRoad;
|
||||||
@@ -550,12 +554,12 @@ export default {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
background: #1b2838;
|
background: #fff;
|
||||||
|
|
||||||
.nn-row {
|
.nn-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
border-bottom: 1px solid #2a3a4a;
|
border-bottom: 1px solid #e0e0e0;
|
||||||
|
|
||||||
&:last-child { border-bottom: none; }
|
&:last-child { border-bottom: none; }
|
||||||
}
|
}
|
||||||
@@ -576,7 +580,6 @@ export default {
|
|||||||
|
|
||||||
.nn-cells {
|
.nn-cells {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
white-space: nowrap;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.nn-cells-inner {
|
.nn-cells-inner {
|
||||||
@@ -585,20 +588,20 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.nn-cell {
|
.nn-cell {
|
||||||
min-width: 38px;
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
border-right: 1px solid #2a3a4a;
|
border-right: 1px solid #e0e0e0;
|
||||||
padding: 1px 2px;
|
padding: 1px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nn-text {
|
.nn-text {
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
&.nn-text-red { color: #e74c3c; }
|
&.nn-text-red { color: #c0392b; }
|
||||||
&.nn-text-blue { color: #7cb9e8; }
|
&.nn-text-blue { color: #2c5fa1; }
|
||||||
}
|
}
|
||||||
|
|
||||||
.nn-win-tag {
|
.nn-win-tag {
|
||||||
|
|||||||
Reference in New Issue
Block a user