Authored by 周少峰

students apply

... ... @@ -99,7 +99,7 @@
float: left;
p {
font-size: 16px;
font-size: 22px;
height: 45px;
line-height: 45px;
}
... ... @@ -116,6 +116,6 @@
text-align: center;
color: #fff;
margin-right: 25px;
font-size: 16px
font-size: 22px
}
}
\ No newline at end of file
... ...
... ... @@ -2,6 +2,7 @@
use Action\AbstractAction;
use LibModels\Wap\Product\SearchData;
use LibModels\Wap\Home\UserData;
use Plugin\DataProcess\ListProcess;
use Plugin\Helpers;
... ... @@ -42,6 +43,7 @@ class SearchController extends AbstractAction
*/
public function listAction()
{
$uid = $this->getUid() || $this->get('uid');
$isApp = $this->isApp();
// 过滤请求参数
$condition = filter_input_array(INPUT_GET, array(
... ... @@ -228,10 +230,21 @@ class SearchController extends AbstractAction
// 搜索列表将最新改成默认的标识
$data['isSearch'] = true;
if (isset($condition['students'])) {
// 获取用户信息判断是否为学生
$data['students'] = Helpers::url('/activity/student');
if ($uid) {
$userInfo = UserData::userData($uid);
if ($userInfo['code'] === 200 && $userInfo['data']['vip_info']['is_student'] === 1) {
$data['students'] = '';
}
}
$data['showDownloadApp'] = false;
}
$this->_view->display('list', $data);
}
... ...