From 9394792242441429ceeea8065f7af1279b3d08a2 Mon Sep 17 00:00:00 2001 From: xiaomai Date: Mon, 15 Sep 2025 20:53:12 +0800 Subject: [PATCH] feat(bidding): add initial auction control and display pages This commit introduces a lightweight, browser-based auction system. It consists of two main components that communicate in real-time using the `BroadcastChannel` API, enabling a serverless front-end experience: - `display.html`: The public-facing screen for attendees. It shows the current item, price with smooth animation, and deal announcements. It automatically generates a unique session ID. - `control.html`: The auctioneer's control panel. It uses the session ID from the display page to connect. It allows for managing the auction flow, including loading items from a CSV, starting bids, updating prices, and finalizing sales. --- bidding/control.html | 202 +++++++++++++++++++++++++++++++++++++++++++ bidding/display.html | 189 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 391 insertions(+) create mode 100644 bidding/control.html create mode 100644 bidding/display.html diff --git a/bidding/control.html b/bidding/control.html new file mode 100644 index 0000000..b40c403 --- /dev/null +++ b/bidding/control.html @@ -0,0 +1,202 @@ + + + + + Auction Control + + + +

🎛 拍卖控制台

+
当前频道 ID:
+ + +
+

上传标品列表 (Items.csv)

+ + +
+ + +
+

标品信息

+
+
+
+
+ +
+ + +
+

竞价控制

+
+ +
+ +
+ + +
+

成交历史

+
总金额: 0
+
+ + + + + + + + + +
标品名称成交价得标者
+
+
+ + + + diff --git a/bidding/display.html b/bidding/display.html new file mode 100644 index 0000000..589abd7 --- /dev/null +++ b/bidding/display.html @@ -0,0 +1,189 @@ + + + + + Auction Display + + + + +
+

请将此窗口拖曳到大屏幕并按下 F11 进行展示

+

控制端链接:

+
+ + + + + + + + + + + + + + + +