c7f6d381 by yyx

1

1 parent b3d87286
...@@ -64,6 +64,22 @@ function onWindowMessage(e) { ...@@ -64,6 +64,22 @@ function onWindowMessage(e) {
64 moveToPriceArea(route.query.ticket_block); 64 moveToPriceArea(route.query.ticket_block);
65 }, 500); 65 }, 500);
66 }); 66 });
67
68 // 绘制舞台矩形
69 sendMsg("draw-object-rectangle", {
70 x: 1800,
71 y: 960,
72 w: 4400,
73 h: 1300,
74 color: "#e0e0e0",
75 });
76 // 绘制舞台文字
77 sendMsg("draw-object-text", {
78 x: 3900,
79 y: 1500,
80 text: "舞台",
81 style: { fontSize: 160, fontWeight: "400", fill: "#6a6a6a" },
82 });
67 } else if (data.type == "seat-click") { 83 } else if (data.type == "seat-click") {
68 // 子页面点击了座位 84 // 子页面点击了座位
69 const seatData = data.data; 85 const seatData = data.data;
...@@ -80,11 +96,14 @@ function onWindowMessage(e) { ...@@ -80,11 +96,14 @@ function onWindowMessage(e) {
80 selectedSeats.value?.length >= 5 && 96 selectedSeats.value?.length >= 5 &&
81 seatData.active == 0 97 seatData.active == 0
82 ) 98 )
83 return ElMessage({ type: "warning", message: languageFormat( 99 return ElMessage({
84 language, 100 type: "warning",
85 "最多选择5个座位", 101 message: languageFormat(
86 "Selectt at most 5 seats" 102 language,
87 ) }); 103 "最多选择5个座位",
104 "Selectt at most 5 seats"
105 ),
106 });
88 107
89 const newActive = seatData.active == 0 ? 1 : 0; 108 const newActive = seatData.active == 0 ? 1 : 0;
90 const siteConfigItem = siteConfig.data.find((it) => it.id == seatData.id); 109 const siteConfigItem = siteConfig.data.find((it) => it.id == seatData.id);
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!