fix: 修复 seatMap 数据结构错误 - vr_seat_template 已经是解码后的 seat_map
parent
fb300e00fc
commit
82a5b2129d
|
|
@ -77,7 +77,8 @@
|
||||||
(function () {
|
(function () {
|
||||||
var app = {
|
var app = {
|
||||||
goodsId: <?php echo intval($goods['id'] ?? 0); ?>,
|
goodsId: <?php echo intval($goods['id'] ?? 0); ?>,
|
||||||
seatMap: <?php echo json_encode($vr_seat_template['seat_map'] ?? []); ?>,
|
// vr_seat_template already contains the decoded seat_map (venue, rooms, sections, seats)
|
||||||
|
seatMap: <?php echo json_encode($vr_seat_template ?? []); ?>,
|
||||||
seatSpecMap: <?php echo json_encode($seatSpecMap ?? []); ?>,
|
seatSpecMap: <?php echo json_encode($seatSpecMap ?? []); ?>,
|
||||||
selectedSeats: [], // [{seatKey, price, rowLabel, colNum, section}]
|
selectedSeats: [], // [{seatKey, price, rowLabel, colNum, section}]
|
||||||
soldSeats: { }, // {seatKey: true}
|
soldSeats: { }, // {seatKey: true}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue