迁移商店弹窗基础按钮事件绑定

This commit is contained in:
2026-04-25 08:05:33 +08:00
parent 89f344bd29
commit 0526419dbc
3 changed files with 71 additions and 5 deletions
@@ -1066,7 +1066,7 @@ async function generateWechatBindCode() {
<div id="shop-modal-title">🛍 道具商店</div>
<div id="shop-modal-jjb">💰 <strong id="shop-jjb">--</strong> 金币</div>
<span id="shop-week-badge"></span>
<span id="shop-modal-close" onclick="closeShopModal()"></span>
<span id="shop-modal-close" data-shop-modal-close></span>
</div>
{{-- Toast --}}
@@ -1083,8 +1083,8 @@ async function generateWechatBindCode() {
<h4>🎭 使用改名卡</h4>
<input id="rename-input" type="text" maxlength="10" placeholder="输入新昵称(1-10字)">
<div class="rename-btn-row">
<button id="rename-confirm" onclick="submitRename()">确认改名</button>
<button id="rename-cancel" onclick="closeRenameModal()">取消</button>
<button id="rename-confirm" data-shop-rename-confirm>确认改名</button>
<button id="rename-cancel" data-shop-rename-cancel>取消</button>
</div>
<div id="rename-err"></div>
</div>
@@ -1103,9 +1103,9 @@ async function generateWechatBindCode() {
<input id="gift-message" class="gift-input" type="text" maxlength="50" placeholder="可不填,百字以内">
<div id="gift-err"></div>
<div class="rename-btn-row" style="margin-top:8px;">
<button onclick="confirmGift()"
<button data-shop-gift-confirm
style="flex:1;background:#336699;color:#fff;border:none;border-radius:4px;padding:7px;cursor:pointer;font-size:12px;font-weight:bold;">确认赠出</button>
<button onclick="closeGiftDialog()"
<button data-shop-gift-cancel
style="flex:1;background:#eee;color:#555;border:1px solid #ccc;border-radius:4px;padding:7px;cursor:pointer;font-size:12px;">取消</button>
</div>
</div>