Commit fa527602296f78bc3086108337266684a7604a31

Authored by vking
1 parent a23b263c

new 2.0 fix

Showing 1 changed file with 13 additions and 10 deletions
... ... @@ -46,17 +46,20 @@ 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,
if(this.data.list[this.tabType].length<1){
if(getApp().meListType!=this.tabType) {
if (getApp().meListType) {
this.switchType({
currentTarget: {
dataset: {
type: getApp().meListType,
}
}
}
})
}else{
this.getListData();
})
getApp().meListType = '';
} else {
this.getListData();
}
}
}
},
... ...