|
@@ -155,8 +155,12 @@ export default {
|
|
|
}
|
|
}
|
|
|
const { code, data } = await getActivityList(params)
|
|
const { code, data } = await getActivityList(params)
|
|
|
if (code === 200) {
|
|
if (code === 200) {
|
|
|
|
|
+ if (this.total === -1) {
|
|
|
|
|
+ this.activityList = data.rows
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.activityList = this.activityList.concat(data.rows)
|
|
|
|
|
+ }
|
|
|
this.total = data.total_count
|
|
this.total = data.total_count
|
|
|
- this.activityList = this.activityList.concat(data.rows)
|
|
|
|
|
this.isLoadMore = this.total !== this.activityList.length
|
|
this.isLoadMore = this.total !== this.activityList.length
|
|
|
}
|
|
}
|
|
|
uni.stopPullDownRefresh()
|
|
uni.stopPullDownRefresh()
|