|
|
@ -24,6 +24,7 @@ Page({ |
|
|
|
title: 'Tab 4', |
|
|
|
}, |
|
|
|
], |
|
|
|
isPartyFlag: 0 |
|
|
|
}, |
|
|
|
onLoad: function (options) { |
|
|
|
const temp = Number(options.state) + 1 |
|
|
@ -31,26 +32,27 @@ Page({ |
|
|
|
key: 'tab' + temp, |
|
|
|
index: options.state, |
|
|
|
childNav: JSON.parse(options.childNav), |
|
|
|
isPartyFlag: options.isPartyFlag ? options.isPartyFlag : 0 |
|
|
|
}) |
|
|
|
}, |
|
|
|
onShow: function (options) { |
|
|
|
this.setData({ |
|
|
|
indexPage:1 |
|
|
|
}) |
|
|
|
this.selectComponent("#state-" + this.data.index).getItemList(1, this.data.index, 0) |
|
|
|
this.selectComponent("#state-" + this.data.index).getItemList(1, this.data.index, 0, this.data.isPartyFlag) |
|
|
|
}, |
|
|
|
onReachBottom: function () { |
|
|
|
this.setData({ |
|
|
|
indexPage: this.data.indexPage + 1 |
|
|
|
}) |
|
|
|
this.selectComponent("#state-" + this.data.index).getItemList(this.data.indexPage,this.data.index,1) |
|
|
|
this.selectComponent("#state-" + this.data.index).getItemList(this.data.indexPage, this.data.index, 1, this.data.isPartyFlag) |
|
|
|
}, |
|
|
|
/** |
|
|
|
* 页面相关事件处理函数--监听用户下拉动作 |
|
|
|
*/ |
|
|
|
onPullDownRefresh: function (options) { |
|
|
|
|
|
|
|
this.selectComponent("#state-" + this.data.index).getItemList(1, this.data.index, 0) |
|
|
|
this.selectComponent("#state-" + this.data.index).getItemList(1, this.data.index, 0, this.data.isPartyFlag) |
|
|
|
wx.stopPullDownRefresh(); |
|
|
|
}, |
|
|
|
onChange(e) { |
|
|
@ -67,7 +69,7 @@ Page({ |
|
|
|
index, |
|
|
|
indexPage: 1 |
|
|
|
}) |
|
|
|
this.selectComponent("#state-" + this.data.index).getItemList(this.data.indexPage,this.data.index,0) |
|
|
|
this.selectComponent("#state-" + this.data.index).getItemList(this.data.indexPage, this.data.index, 0, this.data.isPartyFlag) |
|
|
|
}, |
|
|
|
onSwiperChange(e) { |
|
|
|
console.log('onSwiperChange', e) |
|
|
|