...
|
...
|
@@ -76,12 +76,12 @@ class IndexController extends RestBaseController |
|
|
$volunteer = $volunteerModel->selectData($volunteer_page,$volunteer_pageNum,array('status'=>2));
|
|
|
//活动
|
|
|
$activityModel = new ActivityModel();
|
|
|
$activity = $activityModel->selectData(0,2);
|
|
|
$activity = $activityModel->selectDataByTime(0,2);
|
|
|
// $beginAtOnce = $activityModel->beginAtOnce($activity_page,$activity_pageNum);
|
|
|
|
|
|
//新闻
|
|
|
$activityNewsModel = new ActivityNewsModel();
|
|
|
$news = $activityNewsModel->selectData($activity_page,$activity_pageNum);
|
|
|
$news = $activityModel->selectDataByTime($activity_page,$activity_pageNum,1);
|
|
|
|
|
|
//幻灯片
|
|
|
$slideItemModel = new SlideItemModel();
|
...
|
...
|
@@ -552,6 +552,7 @@ class IndexController extends RestBaseController |
|
|
*
|
|
|
* @param name:id type:int require:1 other: desc:活动id
|
|
|
* @param name:form_id type:int require:1 other: desc:表单id
|
|
|
* @param name:card_number type:int require:1 other: desc:身份证号
|
|
|
* @param name:type type:int require:1 other: desc:活动类型1:线上2:线下3:线上+线下
|
|
|
* @param name:start_time type:int require:1 other: desc:开始时间
|
|
|
* @param name:end_time type:int require:1 other: desc:结束时间
|
...
|
...
|
@@ -568,6 +569,7 @@ class IndexController extends RestBaseController |
|
|
$end_time=strtotime(input('end_time'));
|
|
|
$activity_id=input('id');
|
|
|
$form_id=input('form_id');
|
|
|
$card_number=input('card_number');
|
|
|
$this->saveFormId($userId,$form_id);
|
|
|
|
|
|
/*三期增加字段*/
|
...
|
...
|
@@ -593,6 +595,7 @@ class IndexController extends RestBaseController |
|
|
// $this->error('已经报名参加过该活动!');
|
|
|
}
|
|
|
$data['user_id']=$userId;
|
|
|
$data['card_number']=$card_number;
|
|
|
$data['activity_id']=$activity_id;
|
|
|
$data['type']=$type;
|
|
|
$data['start_time']=$start_time;
|
...
|
...
|
@@ -663,13 +666,13 @@ class IndexController extends RestBaseController |
|
|
$data['select_time']=$select_time;
|
|
|
$data['apply_stay']=$apply_stay;
|
|
|
$data['apply_food']=$apply_food;
|
|
|
$data['card_number']=input('card_number');
|
|
|
$data['status']=0;//需要重新进行审核
|
|
|
$Join=new JoinModel();
|
|
|
$result=$Join->where($map)->Update($data);
|
|
|
/*echo $Join->getLastSql();
|
|
|
dump($result);
|
|
|
exit();*/
|
|
|
|
|
|
if ($result>0){
|
|
|
$this->success('修改成功,请等待审核!');
|
|
|
}
|
...
|
...
|
@@ -691,11 +694,13 @@ class IndexController extends RestBaseController |
|
|
* @return birthday:生日
|
|
|
* @return sex:性别
|
|
|
* @return tel:手机号
|
|
|
* @return card_number:身份证号
|
|
|
* @return work_type:工作类型
|
|
|
* @return work_content:工作内容
|
|
|
* @return select_time:选择日期
|
|
|
* @return apply_stay:申请入住
|
|
|
* @return apply_food:申请用餐
|
|
|
|
|
|
*
|
|
|
*/
|
|
|
public function getApplyInfo(){
|
...
|
...
|
@@ -727,12 +732,13 @@ class IndexController extends RestBaseController |
|
|
}
|
|
|
|
|
|
$info=db('join')->field('sgin_time,id,type,user_id,activity_id,select_time,apply_stay,apply_food,work_content')->where($map)->find();
|
|
|
$user=db('volunteer')->field('sex,name,birthday,move_phone')->where('user_id',$userId)->find();
|
|
|
$user=db('volunteer')->field('card_number,sex,name,birthday,move_phone')->where('user_id',$userId)->find();
|
|
|
if (!empty($user)){
|
|
|
$return['name']=$user['name'];
|
|
|
$return['birthday']=$user['birthday'];
|
|
|
$return['sex']=$user['sex']==1?'男':'女';
|
|
|
$return['tel']=$user['move_phone'];
|
|
|
$return['card_number']=$user['card_number'];
|
|
|
}
|
|
|
if (!empty($info)){
|
|
|
$return['work_content']=db('work')->where('id',$info['work_content'])->value('name');
|
...
|
...
|
|