|
@@ -121,7 +121,8 @@ export default {
|
121
|
121
|
newpage: 1,
|
122
|
122
|
toppage: 1,
|
123
|
123
|
show: false,
|
124
|
|
- pageSize: 10
|
|
124
|
+ pageSize: 10,
|
|
125
|
+ loaddingData: false,
|
125
|
126
|
};
|
126
|
127
|
},
|
127
|
128
|
components: {
|
|
@@ -144,7 +145,8 @@ export default {
|
144
|
145
|
topList: x => x.toplist,
|
145
|
146
|
user: x => x.user,
|
146
|
147
|
theme: x => x.theme,
|
147
|
|
- myID: x => (x.myprofile.filter(x => x.ActivityId === (x.activity || {}).ActivityId)[0] || {}).MemberId
|
|
148
|
+ myprofile: x => x.myprofile,
|
|
149
|
+ myID: s => (s.myprofile.filter(x => x.ActivityId === (s.activity || {}).ActivityId)[0] || {}).MemberId
|
148
|
150
|
}),
|
149
|
151
|
},
|
150
|
152
|
created() {
|
|
@@ -177,6 +179,8 @@ export default {
|
177
|
179
|
thu_image: act.ShareIcon
|
178
|
180
|
}
|
179
|
181
|
);
|
|
182
|
+
|
|
183
|
+ console.log('------>', this.activity, this.myprofile, this.myID)
|
180
|
184
|
});
|
181
|
185
|
// this.getMine({
|
182
|
186
|
// actid: this.actid,
|
|
@@ -248,6 +252,11 @@ export default {
|
248
|
252
|
// });
|
249
|
253
|
},
|
250
|
254
|
loadNewList(loaded) {
|
|
255
|
+ if (this.loaddingData) {
|
|
256
|
+ return
|
|
257
|
+ }
|
|
258
|
+
|
|
259
|
+ this.loaddingData = true
|
251
|
260
|
this.newlist().then(res => {
|
252
|
261
|
console.log(res.length, this.pageSize)
|
253
|
262
|
|
|
@@ -258,10 +267,15 @@ export default {
|
258
|
267
|
}
|
259
|
268
|
|
260
|
269
|
this.loading = false;
|
|
270
|
+ this.loaddingData = false
|
261
|
271
|
loaded && loaded('done')
|
262
|
272
|
});
|
263
|
273
|
},
|
264
|
274
|
loadTopList(loaded) {
|
|
275
|
+ if (this.loaddingData) {
|
|
276
|
+ return
|
|
277
|
+ }
|
|
278
|
+
|
265
|
279
|
this.toplist().then(res => {
|
266
|
280
|
if ((res || []).length >= this.pageSize) {
|
267
|
281
|
this.toppage += 1;
|
|
@@ -270,6 +284,7 @@ export default {
|
270
|
284
|
}
|
271
|
285
|
|
272
|
286
|
this.loading = false;
|
|
287
|
+ this.loaddingData = false
|
273
|
288
|
loaded && loaded('done')
|
274
|
289
|
});
|
275
|
290
|
},
|