...
|
...
|
@@ -57,7 +57,7 @@ class IndexController extends RestBaseController |
|
|
$activity_pageNum = $param['activity_pageNum'] ? $param['activity_pageNum'] : 4;//每页显示几条数据
|
|
|
//获取志愿者
|
|
|
$volunteerModel = new VolunteerModel();
|
|
|
$volunteer = $volunteerModel->selectData($volunteer_page,$volunteer_pageNum);
|
|
|
$volunteer = $volunteerModel->selectData($volunteer_page,$volunteer_pageNum,array('status'=>2));
|
|
|
//活动
|
|
|
$activityModel = new ActivityModel();
|
|
|
$activity = $activityModel->selectData($activity_page,$activity_pageNum);
|
...
|
...
|
@@ -93,7 +93,7 @@ class IndexController extends RestBaseController |
|
|
$pageNum = $param['pageNum'] ? $param['pageNum'] : 10;//每页显示几条数据
|
|
|
//获取志愿者
|
|
|
$volunteerModel = new VolunteerModel();
|
|
|
$volunteer = $volunteerModel->selectData($page,$pageNum);
|
|
|
$volunteer = $volunteerModel->selectData($page,$pageNum,array('status'=>2));
|
|
|
$data['volunteer'] = $volunteer;
|
|
|
$data['page'] = $page+1;
|
|
|
$this->success('获取成功!',$data);
|
...
|
...
|
|