Browse Source

update 我的 修改上拉加载bug

master
fanp 6 years ago
parent
commit
d8b9fb69d4
  1. 8
      pages/user/myFavorite/index.js
  2. 6
      pages/user/myIdea/index.js
  3. 2
      pages/user/myMessage/index.js
  4. 4
      pages/user/myTopics/index.js

8
pages/user/myFavorite/index.js

@ -58,9 +58,9 @@ Page({
list: list
})
} else {
const page = this.data.currPage - 1
const page = this.data.currentPage - 1
this.setData({
currPage: page
currentPage: page
})
wx.showToast({
title: '已加载全部',
@ -77,7 +77,7 @@ Page({
*/
onPullDownRefresh: function () {
this.setData({
currPage: 1,
currentPage: 1,
})
this.fetchMyFavoriteList()
},
@ -88,7 +88,7 @@ Page({
onReachBottom: function () {
let page = this.data.currentPage + 1
this.setData({
currPage: page,
currentPage: page,
})
this.fetchMyFavoriteList()
},

6
pages/user/myIdea/index.js

@ -68,9 +68,9 @@ Page({
list: list
})
} else {
const page = this.data.currPage - 1
const page = this.data.currentPage - 1
this.setData({
currPage: page
currentPage: page
})
wx.showToast({
title: '已加载全部',
@ -136,7 +136,7 @@ Page({
icon: 'none',
success() {
that.setData({
currPage: 1,
currentPage: 1,
})
switch (that.data.segmentIndex) {
case 0:

2
pages/user/myMessage/index.js

@ -25,7 +25,7 @@ Page({
},
onShow: function () {
this.setData({
currPage: 1,
currentPage: 1,
})
wx.pageScrollTo({
scrollTop: 0,

4
pages/user/myTopics/index.js

@ -88,9 +88,9 @@ Page({
list: list
})
} else {
const page = this.data.currPage - 1
const page = this.data.currentPage - 1
this.setData({
currPage: page
currentPage: page
})
wx.showToast({
title: '已加载全部',

Loading…
Cancel
Save