| | |
| | | { |
| | | $model = new ActivityModel; |
| | | $list = $model->getList($category_id, $this->postData(), $this->getUser()); |
| | | return $this->renderSuccess('', compact('list')); |
| | | $words = BranchSettingModel::getItem('words'); |
| | | return $this->renderSuccess('', compact('list', 'words')); |
| | | } |
| | | |
| | | /** |
| | |
| | | // 用户是否已报名 |
| | | $detail['is_reg'] = ActivityUserModel::isReg($user['user_id'], $activity_id); |
| | | // 用户是否已加入分会 |
| | | $detail['is_member'] = MemberModel::isMember($user['user_id']); |
| | | $detail['is_member'] =/*MemberModel::isMember($user['user_id'])*/false; |
| | | // 用户是否已签到 |
| | | $detail['is_verify'] = ActivityUserModel::isVerify($user['user_id'], $activity_id); |
| | | $store = SettingModel::getItem('store'); |
| | |
| | | $points = SettingModel::getItem('points'); |
| | | $detail['points_ratio'] = $points['discount']['discount_ratio']; // 积分抵扣比例 |
| | | // 获取报名用户列表 |
| | | $userList = (new ActivityUserModel())->getListForActivity(['activity_id' => $activity_id], false, 8); |
| | | $userList = (new ActivityUserModel())->getListForActivity(['activity_id' => $activity_id], false, 7); |
| | | return $this->renderSuccess('', compact('detail', 'userList')); |
| | | } |
| | | |
| | |
| | | return $this->renderSuccess('', compact('order_id')); |
| | | } |
| | | } |
| | | |
| | | public function getRegistrationInformation($user_id = 0,$activity_id=0) |
| | | { |
| | | // 生成报名用户 |
| | | $model = new ActivityUserModel(); |
| | | $user=$this->getUser(); |
| | | $userId = $user_id!=0?$user_id:$user['user_id']; |
| | | $registrationInformation = $model->getRegistrationInformation($userId,$activity_id); |
| | | return $this->renderSuccess('', compact('registrationInformation')); |
| | | } |
| | | /** |
| | | * 生成活动海报 |
| | | */ |