|
@@ -50,6 +50,8 @@ Page({ |
|
@@ -50,6 +50,8 @@ Page({ |
|
50
|
*/
|
50
|
*/
|
|
51
|
onShow: function () {
|
51
|
onShow: function () {
|
|
52
|
PubSub.emit('custom-tab-bar')
|
52
|
PubSub.emit('custom-tab-bar')
|
|
|
|
53
|
+ console.log('getApp().meListType',getApp().meListType)
|
|
|
|
54
|
+ if(!getApp().meListType) getApp().meListType=defTabType
|
|
53
|
if(this.data.list[this.tabType].length<1 || getApp().meListType!=this.tabType){
|
55
|
if(this.data.list[this.tabType].length<1 || getApp().meListType!=this.tabType){
|
|
54
|
if(getApp().meListType!=this.tabType) {
|
56
|
if(getApp().meListType!=this.tabType) {
|
|
55
|
if (getApp().meListType) {
|
57
|
if (getApp().meListType) {
|
|
@@ -60,7 +62,7 @@ Page({ |
|
@@ -60,7 +62,7 @@ Page({ |
|
60
|
}
|
62
|
}
|
|
61
|
}
|
63
|
}
|
|
62
|
})
|
64
|
})
|
|
63
|
- getApp().meListType = '';
|
65
|
+ //getApp().meListType = '';
|
|
64
|
} else {
|
66
|
} else {
|
|
65
|
this.getListData();
|
67
|
this.getListData();
|
|
66
|
}
|
68
|
}
|
|
@@ -132,13 +134,17 @@ Page({ |
|
@@ -132,13 +134,17 @@ Page({ |
|
132
|
})
|
134
|
})
|
|
133
|
return dlist;
|
135
|
return dlist;
|
|
134
|
},
|
136
|
},
|
|
|
|
137
|
+ /*
|
|
135
|
switchTab(e) {
|
138
|
switchTab(e) {
|
|
136
|
this.tabType=util.attr(e, 'index')
|
139
|
this.tabType=util.attr(e, 'index')
|
|
|
|
140
|
+ getApp().meListType=this.tabType
|
|
137
|
this.setData({
|
141
|
this.setData({
|
|
138
|
tabType: this.tabType,
|
142
|
tabType: this.tabType,
|
|
139
|
})
|
143
|
})
|
|
140
|
this.getListData();
|
144
|
this.getListData();
|
|
|
|
145
|
+ console.log('getApp().meListType',getApp().meListType)
|
|
141
|
},
|
146
|
},
|
|
|
|
147
|
+ */
|
|
142
|
userinfo(e) {
|
148
|
userinfo(e) {
|
|
143
|
let id = e.target.dataset.id;
|
149
|
let id = e.target.dataset.id;
|
|
144
|
let type = e.target.dataset.type;
|
150
|
let type = e.target.dataset.type;
|
|
@@ -178,6 +184,8 @@ Page({ |
|
@@ -178,6 +184,8 @@ Page({ |
|
178
|
hasMore:false
|
184
|
hasMore:false
|
|
179
|
})
|
185
|
})
|
|
180
|
this.getListData()
|
186
|
this.getListData()
|
|
|
|
187
|
+ getApp().meListType=this.tabType
|
|
|
|
188
|
+ console.log('getApp().meListType',getApp().meListType)
|
|
181
|
},
|
189
|
},
|
|
182
|
/**
|
190
|
/**
|
|
183
|
* 页面上拉触底事件的处理函数
|
191
|
* 页面上拉触底事件的处理函数
|