bigger detail popup

This commit is contained in:
Timi
2025-12-10 13:46:51 +08:00
parent ea0186447a
commit aa6b00a87d
3 changed files with 2 additions and 13 deletions

View File

@ -41,7 +41,6 @@ interface JournalMapData {
customCalloutMarkerIds: number[];
selectedMarker: JournalMarker | null;
isLoading: boolean;
detailHeight: number;
}
Page({
@ -54,16 +53,9 @@ Page({
customCalloutMarkerIds: [],
selectedMarker: null,
isLoading: true,
detailHeight: 0
},
async onLoad() {
await this.loadJournals();
// 获取窗口高度,固定详情面板为 1/2 高度
const windowInfo = wx.getWindowInfo();
const windowHeight = windowInfo.windowHeight;
this.setData({
detailHeight: windowHeight * 0.5
});
},
/** 加载所有记录 */
async loadJournals() {