|
...
|
...
|
@@ -25,13 +25,13 @@ Page({ |
|
|
|
* 生命周期函数--监听页面加载
|
|
|
|
*/
|
|
|
|
onLoad: function (options) {
|
|
|
|
if(getApp().meListType){
|
|
|
|
this.tabType=getApp().meListType
|
|
|
|
this.setData({
|
|
|
|
tabType:this.tabType
|
|
|
|
})
|
|
|
|
}
|
|
|
|
this.getListData();
|
|
|
|
// if(getApp().meListType){
|
|
|
|
// this.tabType=getApp().meListType
|
|
|
|
// this.setData({
|
|
|
|
// tabType:this.tabType
|
|
|
|
// })
|
|
|
|
// }
|
|
|
|
// this.getListData();
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
...
|
...
|
@@ -46,6 +46,18 @@ Page({ |
|
|
|
*/
|
|
|
|
onShow: function () {
|
|
|
|
PubSub.emit('custom-tab-bar')
|
|
|
|
if(getApp().meListType!=this.tabType || this.data.list[this.tabType].length<1){
|
|
|
|
if(getApp().meListType){
|
|
|
|
this.switchType({
|
|
|
|
currentTarget:{
|
|
|
|
dataset:{
|
|
|
|
type:getApp().meListType,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
this.getListData();
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
...
|
...
|
|