迁移婚姻商店入口事件
This commit is contained in:
@@ -58,6 +58,15 @@ export function bindMarriageStatusControls() {
|
||||
return;
|
||||
}
|
||||
|
||||
if (event.target.closest("[data-marriage-open-shop]")) {
|
||||
event.preventDefault();
|
||||
// 求婚戒指缺失时只转发到商店弹窗,不触碰婚姻弹窗业务状态。
|
||||
if (typeof window.openShopModal === "function") {
|
||||
window.openShopModal();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
const pageButton = event.target.closest("[data-marriage-page-delta]");
|
||||
if (pageButton) {
|
||||
event.preventDefault();
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
border:1.5px dashed #fbcfe8; margin-bottom:16px;">
|
||||
<div style="font-size:32px; margin-bottom:8px;">💔</div>
|
||||
<div style="font-size:13px; color:#9ca3af; margin-bottom:10px;">背包里还没有戒指哦</div>
|
||||
<button onclick="if(typeof window.openShopModal==='function') window.openShopModal()"
|
||||
<button data-marriage-open-shop
|
||||
style="background:linear-gradient(135deg,#f43f5e,#ec4899); color:#fff; border:none;
|
||||
border-radius:8px; padding:7px 18px; font-size:12px; font-weight:bold; cursor:pointer;">
|
||||
🛒 前往商店购买
|
||||
|
||||
Reference in New Issue
Block a user