|
...
|
...
|
@@ -50,6 +50,8 @@ Page({ |
|
|
|
*/
|
|
|
|
onShow: function () {
|
|
|
|
PubSub.emit('custom-tab-bar')
|
|
|
|
console.log('getApp().meListType',getApp().meListType)
|
|
|
|
if(!getApp().meListType) getApp().meListType=defTabType
|
|
|
|
if(this.data.list[this.tabType].length<1 || getApp().meListType!=this.tabType){
|
|
|
|
if(getApp().meListType!=this.tabType) {
|
|
|
|
if (getApp().meListType) {
|
|
...
|
...
|
@@ -60,7 +62,7 @@ Page({ |
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
getApp().meListType = '';
|
|
|
|
//getApp().meListType = '';
|
|
|
|
} else {
|
|
|
|
this.getListData();
|
|
|
|
}
|
|
...
|
...
|
@@ -132,13 +134,17 @@ Page({ |
|
|
|
})
|
|
|
|
return dlist;
|
|
|
|
},
|
|
|
|
/*
|
|
|
|
switchTab(e) {
|
|
|
|
this.tabType=util.attr(e, 'index')
|
|
|
|
getApp().meListType=this.tabType
|
|
|
|
this.setData({
|
|
|
|
tabType: this.tabType,
|
|
|
|
})
|
|
|
|
this.getListData();
|
|
|
|
console.log('getApp().meListType',getApp().meListType)
|
|
|
|
},
|
|
|
|
*/
|
|
|
|
userinfo(e) {
|
|
|
|
let id = e.target.dataset.id;
|
|
|
|
let type = e.target.dataset.type;
|
|
...
|
...
|
@@ -178,6 +184,8 @@ Page({ |
|
|
|
hasMore:false
|
|
|
|
})
|
|
|
|
this.getListData()
|
|
|
|
getApp().meListType=this.tabType
|
|
|
|
console.log('getApp().meListType',getApp().meListType)
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 页面上拉触底事件的处理函数
|
...
|
...
|
|