Commit f69ba6e2bd97e25f139adbd9e4a99abdef860746

Authored by vking
1 parent 56e98ff8

new 2.0

Showing 1 changed file with 19 additions and 7 deletions
... ... @@ -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();
}
},
/**
... ...