fix: 修复牛牛/三卡路单在大厅不显示的问题,适配nn_waybill数据结构
This commit is contained in:
+6
-1
@@ -222,7 +222,12 @@ export default {
|
|||||||
// Extract Bead Road (showRoad usually)
|
// Extract Bead Road (showRoad usually)
|
||||||
// Note: In helper.php, waybill() returns { showRoad, bigRoad ... }
|
// Note: In helper.php, waybill() returns { showRoad, bigRoad ... }
|
||||||
let beadRoad = [];
|
let beadRoad = [];
|
||||||
if (item.ludan && item.ludan.waybill && item.ludan.waybill.showRoad) {
|
if (item.game_id == 4 || item.game_id == 5) {
|
||||||
|
// 牛牛/三卡: ludan.waybill 直接就是数组
|
||||||
|
if (item.ludan && Array.isArray(item.ludan.waybill)) {
|
||||||
|
beadRoad = item.ludan.waybill;
|
||||||
|
}
|
||||||
|
} else if (item.ludan && item.ludan.waybill && item.ludan.waybill.showRoad) {
|
||||||
beadRoad = item.ludan.waybill.showRoad;
|
beadRoad = item.ludan.waybill.showRoad;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user