|
|
@ -32,6 +32,7 @@ Page({ |
|
|
|
qkdat: false,//判断是否清空数据
|
|
|
|
actId: "",//判断返回以后是否需要刷新列表
|
|
|
|
volunteerlist:[],//志愿者列表
|
|
|
|
volunteerCount: 0, //志愿者注册数
|
|
|
|
listLength:0,//数据长度判断是否需要加载
|
|
|
|
getImgUrl:"", |
|
|
|
ifClickImage:false,//因为志友多多点击图片查看大图,会出现列表刷新的bug,所以加这个字段进行控制
|
|
|
@ -195,8 +196,8 @@ Page({ |
|
|
|
// 志愿者列表
|
|
|
|
volunteerlist (params){ |
|
|
|
let that = this |
|
|
|
api.volunteerlist(params).then(function (res) { |
|
|
|
if (res.data.length !== that.data.pageSize) { |
|
|
|
api.volunteerV2list(params).then(function (res) { |
|
|
|
if (res.data.volunteerList.length !== that.data.pageSize) { |
|
|
|
that.setData({ |
|
|
|
loadMoreVisible: true, |
|
|
|
loadMoreType: "none", |
|
|
@ -204,7 +205,8 @@ Page({ |
|
|
|
} |
|
|
|
that.setData({ |
|
|
|
listLength:res.data.length, |
|
|
|
volunteerlist:that.data.volunteerlist.concat(res.data) |
|
|
|
volunteerlist:that.data.volunteerlist.concat(res.data.volunteerList), |
|
|
|
volunteerCount: res.data.volunteerCount |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|