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({ @@ -46,17 +46,20 @@ Page({
46 */ 46 */
47 onShow: function () { 47 onShow: function () {
48 PubSub.emit('custom-tab-bar') 48 PubSub.emit('custom-tab-bar')
49 - if(getApp().meListType!=this.tabType || this.data.list[this.tabType].length<1){  
50 - if(getApp().meListType){  
51 - this.switchType({  
52 - currentTarget:{  
53 - dataset:{  
54 - type:getApp().meListType, 49 + if(this.data.list[this.tabType].length<1){
  50 + if(getApp().meListType!=this.tabType) {
  51 + if (getApp().meListType) {
  52 + this.switchType({
  53 + currentTarget: {
  54 + dataset: {
  55 + type: getApp().meListType,
  56 + }
55 } 57 }
56 - }  
57 - })  
58 - }else{  
59 - this.getListData(); 58 + })
  59 + getApp().meListType = '';
  60 + } else {
  61 + this.getListData();
  62 + }
60 } 63 }
61 } 64 }
62 }, 65 },