diff --git a/pages.json b/pages.json index ea1b296..fbc25e2 100644 --- a/pages.json +++ b/pages.json @@ -93,7 +93,8 @@ { "path": "pages/center/fans", "style": { - "navigationBarTitleText": "粉丝列表" + "navigationBarTitleText": "粉丝列表", + "disableScroll": true } }, { diff --git a/pages/center/fans.vue b/pages/center/fans.vue index da35103..45d7ef0 100644 --- a/pages/center/fans.vue +++ b/pages/center/fans.vue @@ -1,50 +1,35 @@ @@ -52,13 +37,30 @@ export default { data() { return { - tabIndex: 0, + current: 0, // tab下标 pageSize: 10, isRefresher: false, // scroll-view下拉刷新状态,当前默认没有触发 - page: 1, - isPage: false + windowHeight: 0, + tab_list: [{ + name: '内部粉丝', + list: [1], + page: 1, + isPage: false, + loadingClass: false, + loadingText: '已加载全部数据' + },{ + name: '外部粉丝', + list: [1,2,3,4,5,6,7,8,9], + page: 1, + isPage: false, + loadingClass: true, + loadingText: '正在加载中' + }] } }, + onLoad(){ + this.windowHeight = getApp().globalData.windowHeight; + }, methods: { // 页面触底,加载下一页 onScrolltolower(){ @@ -76,8 +78,13 @@ } -