This commit is contained in:
icssoa
2025-08-01 20:35:28 +08:00
parent a9169134d0
commit bad97a5a70
8 changed files with 236 additions and 132 deletions

View File

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