fix: 修复 seatMap 数据结构错误 - vr_seat_template 已经是解码后的 seat_map

pull/19/head
Council 2026-04-21 12:08:48 +08:00
parent fb300e00fc
commit 82a5b2129d
1 changed files with 2 additions and 1 deletions

View File

@ -77,7 +77,8 @@
(function () {
var app = {
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 ?? []); ?>,
selectedSeats: [], // [{seatKey, price, rowLabel, colNum, section}]
soldSeats: { }, // {seatKey: true}