bigger detail popup
This commit is contained in:
@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user