迁移彩票底部关闭事件
This commit is contained in:
@@ -370,7 +370,7 @@
|
|||||||
onmouseover="this.style.background='#dbeafe'" onmouseout="this.style.background='#f0f6ff'">
|
onmouseover="this.style.background='#dbeafe'" onmouseout="this.style.background='#f0f6ff'">
|
||||||
🔄 刷新
|
🔄 刷新
|
||||||
</button>
|
</button>
|
||||||
<button @click="closeLotteryPanel()"
|
<button type="button" data-lottery-panel-close
|
||||||
style="padding:9px 18px; border-radius:20px; font-size:12px; font-weight:bold;
|
style="padding:9px 18px; border-radius:20px; font-size:12px; font-weight:bold;
|
||||||
background:#f9fafb; color:#6b7280; border:1.5px solid #e5e7eb;
|
background:#f9fafb; color:#6b7280; border:1.5px solid #e5e7eb;
|
||||||
cursor:pointer; transition:all .15s; font-family:inherit;"
|
cursor:pointer; transition:all .15s; font-family:inherit;"
|
||||||
@@ -637,8 +637,10 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
// 顶部关闭按钮由脚本集中绑定,避免标题栏继续保留内联 onclick。
|
// 顶部关闭按钮由脚本集中绑定,避免标题栏继续保留内联 onclick。
|
||||||
document.querySelector('[data-lottery-panel-close]')?.addEventListener('click', function(e) {
|
document.querySelectorAll('[data-lottery-panel-close]').forEach(button => {
|
||||||
e.preventDefault();
|
button.addEventListener('click', function(e) {
|
||||||
closeLotteryPanel();
|
e.preventDefault();
|
||||||
|
closeLotteryPanel();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user