fix(discover): filter panel as bottom sheet with mask, add debug log

- Changed filter panel from in-flow to fixed bottom drawer with semi-transparent mask
- Mask click closes panel (closeFilterPanel)
- Added console.log in openFilterPanel for debugging event firing
- Panel now z-index:11 above mask z-index:10, guaranteeing visibility
This commit is contained in:
Codex
2026-09-14 11:19:25 +08:00
parent 3e5d2314aa
commit adfa4ff31e
3 changed files with 96 additions and 49 deletions
+3
View File
@@ -188,6 +188,7 @@ Page({
/** 打开筛选面板,并同步当前 applied 状态到 temp */
openFilterPanel() {
console.log('[discover] openFilterPanel called');
const a = this.data.applied;
this.setData({
showFilter: true,
@@ -196,6 +197,8 @@ Page({
tempMaxAge: a.maxAge,
tempEducationCode: a.educationCode,
tempMaritalStatus: a.maritalStatus,
}, () => {
console.log('[discover] showFilter set to true, current state:', JSON.stringify(this.data.applied));
});
},