|
@ -69,18 +69,17 @@ Page({ |
|
|
* 生命周期函数--监听页面显示 |
|
|
* 生命周期函数--监听页面显示 |
|
|
*/ |
|
|
*/ |
|
|
onShow: function () { |
|
|
onShow: function () { |
|
|
console.log(':::::::::') |
|
|
|
|
|
this.setData({ |
|
|
|
|
|
loadMoreVisible: false, |
|
|
|
|
|
loadMoreType: 'none', |
|
|
|
|
|
indexPage: 1, |
|
|
|
|
|
}) |
|
|
|
|
|
if(this.data.selectedTab == 'tab1'){//刷新志友
|
|
|
if(this.data.selectedTab == 'tab1'){//刷新志友
|
|
|
if(this.data.ifClickImage){//如果为true就不可以刷新,判断完成以后重新置为false
|
|
|
if(this.data.ifClickImage){//如果为true就不可以刷新,判断完成以后重新置为false
|
|
|
this.setData({ |
|
|
this.setData({ |
|
|
ifClickImage: false |
|
|
ifClickImage: false |
|
|
}) |
|
|
}) |
|
|
}else{ |
|
|
}else{ |
|
|
|
|
|
this.setData({ |
|
|
|
|
|
loadMoreVisible: false, |
|
|
|
|
|
loadMoreType: 'none', |
|
|
|
|
|
indexPage: 1, |
|
|
|
|
|
}) |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
dingdan: true, |
|
|
dingdan: true, |
|
|
jingcai: true, |
|
|
jingcai: true, |
|
@ -95,6 +94,11 @@ Page({ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if (this.data.actId) { |
|
|
if (this.data.actId) { |
|
|
|
|
|
this.setData({ |
|
|
|
|
|
loadMoreVisible: false, |
|
|
|
|
|
loadMoreType: 'none', |
|
|
|
|
|
indexPage: 1, |
|
|
|
|
|
}) |
|
|
this.updateActivityList() |
|
|
this.updateActivityList() |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|