Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
swx_weapp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2025-08-18 21:43:57 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
35300937495b1d072e99e8d8b3bb07d600ded9b3
35300937
1 parent
b998b3e1
refactor: 将 wx.getSystemInfoSync 替换为 wx.getWindowInfo 获取窗口高度
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
8 deletions
src/pages/followList/index.vue
src/pages/index/index.vue
src/pages/joinList/index.vue
src/pages/myActivityList/index.vue
src/pages/myCreateActivity/index.vue
src/pages/myFollowUser/index.vue
src/pages/userAdd/index.vue
src/pages/userManage/index.vue
src/pages/followList/index.vue
View file @
3530093
...
...
@@ -114,7 +114,7 @@ export default {
name: "joinListPage",
mounted () {
// 设置滚动列表可视高度
const windowHeight = wx.get
SystemInfoSync
().windowHeight;
const windowHeight = wx.get
WindowInfo
().windowHeight;
setTimeout(async () => {
// const headerHeight = await $('#page-header').height();
const navHeight = await $('#page-filter').height();
...
...
src/pages/index/index.vue
View file @
3530093
...
...
@@ -141,7 +141,7 @@ export default {
},
mounted () {
// 设置滚动列表可视高度
const windowHeight = wx.get
SystemInfoSync
().windowHeight;
const windowHeight = wx.get
WindowInfo
().windowHeight;
setTimeout(async () => {
const headerHeight = await $('#page-header').height();
const navHeight = await $('#navbar-page').height();
...
...
src/pages/joinList/index.vue
View file @
3530093
...
...
@@ -114,7 +114,7 @@ export default {
name: "joinListPage",
mounted () {
// 设置滚动列表可视高度
const windowHeight = wx.get
SystemInfoSync
().windowHeight;
const windowHeight = wx.get
WindowInfo
().windowHeight;
setTimeout(async () => {
const headerHeight = await $('#page-header').height();
const navHeight = await $('#page-filter').height();
...
...
src/pages/myActivityList/index.vue
View file @
3530093
...
...
@@ -119,7 +119,7 @@ export default {
},
mounted () {
// 设置滚动列表可视高度
const windowHeight = wx.get
SystemInfoSync
().windowHeight;
const windowHeight = wx.get
WindowInfo
().windowHeight;
setTimeout(async () => {
const headerHeight = await $('#page-header').height();
const navHeight = await $('#navbar-page').height();
...
...
src/pages/myCreateActivity/index.vue
View file @
3530093
...
...
@@ -248,7 +248,7 @@ export default {
},
mounted () {
// 设置滚动列表可视高度
const windowHeight = wx.get
SystemInfoSync
().windowHeight;
const windowHeight = wx.get
WindowInfo
().windowHeight;
setTimeout(async () => {
const headerHeight = await $('#page-header').height();
const navHeight = await $('#navbar-page').height();
...
...
src/pages/myFollowUser/index.vue
View file @
3530093
...
...
@@ -196,7 +196,7 @@ export default {
},
mounted () {
// 设置滚动列表可视高度
const windowHeight = wx.get
SystemInfoSync
().windowHeight;
const windowHeight = wx.get
WindowInfo
().windowHeight;
setTimeout(async () => {
const headerHeight = await $('#page-header').height();
const navHeight = await $('#navbar-page').height();
...
...
src/pages/userAdd/index.vue
View file @
3530093
...
...
@@ -93,7 +93,7 @@ export default {
},
mounted () {
// 设置滚动列表可视高度
const windowHeight = wx.get
SystemInfoSync
().windowHeight;
const windowHeight = wx.get
WindowInfo
().windowHeight;
setTimeout(async () => {
const headerHeight = await $('#page-header').height();
this.scrollStyle = {
...
...
src/pages/userManage/index.vue
View file @
3530093
...
...
@@ -175,7 +175,7 @@ export default {
},
mounted () {
// 设置滚动列表可视高度
const windowHeight = wx.get
SystemInfoSync
().windowHeight;
const windowHeight = wx.get
WindowInfo
().windowHeight;
setTimeout(async () => {
const headerHeight = await $('#page-header').height();
const navHeight = await $('#navbar-page').height();
...
...
Please
register
or
login
to post a comment