|
@ -131,7 +131,7 @@ Page({ |
|
|
topicId: item.id, |
|
|
topicId: item.id, |
|
|
userIcon: item.groupAvator || '', |
|
|
userIcon: item.groupAvator || '', |
|
|
title: item.title, |
|
|
title: item.title, |
|
|
userIcon: item.groupAvator, |
|
|
// userIcon: item.groupAvator,
|
|
|
userName: item.author, |
|
|
userName: item.author, |
|
|
commentNum: item.commentNum, |
|
|
commentNum: item.commentNum, |
|
|
topicImg: item.image, |
|
|
topicImg: item.image, |
|
@ -250,26 +250,26 @@ Page({ |
|
|
* 页面相关事件处理函数--监听用户下拉动作 |
|
|
* 页面相关事件处理函数--监听用户下拉动作 |
|
|
*/ |
|
|
*/ |
|
|
onPullDownRefresh: function () { |
|
|
onPullDownRefresh: function () { |
|
|
let segmentIndex = this.data.segmentIndex |
|
|
// let segmentIndex = this.data.segmentIndex
|
|
|
if (segmentIndex === 2){ |
|
|
// if (segmentIndex === 2){
|
|
|
wx.stopPullDownRefresh() |
|
|
// wx.stopPullDownRefresh()
|
|
|
} |
|
|
// }
|
|
|
if (segmentIndex === 0 || segmentIndex === 1) { |
|
|
// if (segmentIndex === 0 || segmentIndex === 1) {
|
|
|
wx.pageScrollTo({ |
|
|
// wx.pageScrollTo({
|
|
|
scrollTop: 0, |
|
|
// scrollTop: 0,
|
|
|
}) |
|
|
// })
|
|
|
|
|
|
|
|
|
this.setData({ |
|
|
// this.setData({
|
|
|
currPage: 1, |
|
|
// currPage: 1,
|
|
|
}) |
|
|
// })
|
|
|
switch (this.data.segmentIndex) { |
|
|
// switch (this.data.segmentIndex) {
|
|
|
case 0: |
|
|
// case 0:
|
|
|
return this.fetchTopicList() |
|
|
// return this.fetchTopicList()
|
|
|
case 1: |
|
|
// case 1:
|
|
|
// return this.fetchGoodIdeaList()
|
|
|
// // return this.fetchGoodIdeaList()
|
|
|
return this.fetchCenterList() |
|
|
// return this.fetchCenterList()
|
|
|
} |
|
|
// }
|
|
|
} |
|
|
// }
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|