This commit is contained in:
icssoa
2025-08-01 09:56:48 +08:00
parent e2e1980752
commit a9169134d0
5 changed files with 520 additions and 280 deletions

View File

@@ -99,6 +99,11 @@ class Page {
* @returns 视图高度
*/
getViewHeight() {
// #ifdef H5
return uni.getWindowInfo().windowHeight;
// #endif
// #ifndef H5
const { screenHeight } = uni.getWindowInfo();
let h = screenHeight;
@@ -108,6 +113,7 @@ class Page {
}
return h;
// #endif
}
/**