index.js
onTabItemTap() {
if (this.login) {
this.setData({
isLoad: true,
skipNumCom: 0,
skipNumUn: 0,
borrowRecordComplete: [],
borrowRecordUncomplete: []
}, () => {
if (this.data.tabCur == "complete") {
this.getBorrowRecordComplete()
} else if (this.data.tabCur == "uncomplete") {
this.getBorrowRecordUncomplete()
}
})
}
},
app.json
{
"pagePath": "pages/remind/index",
"text": "明细",
"iconPath": "icons/remind.png",
"selectedIconPath": "icons/remind1.png",
"events":{
"bind:tap":"onTabItemTap"
}