Authored by 周少峰

students home

... ... @@ -15,6 +15,9 @@
<b>({{count}})</b>
{{/ messages}}
{{#if certifiedName}}
<a href="{{certifiedUrl}}">{{certifiedName}}</a>
{{/if}}
<span id="close-message" class="close iconfont">&#xe602;</span>
</p>
{{/if}}
... ...
... ... @@ -153,6 +153,9 @@ class UserModel
public static function getUserInfo($uid)
{
$userInfo = UserData::getUserInfo($uid);
// print_r($userInfo); exit;
// 学生认证
$res['is_student'] = isset($userInfo['data']['vip_info']['is_student']) ? $userInfo['data']['vip_info']['is_student'] : 0;
//头像
$res['headIco'] = empty($userInfo['data']['head_ico']) ? ChannelConfig::$headDefaultImgIco : Images::getImageUrl($userInfo['data']['head_ico'], 100, 100, 2);
$res['email'] = isset($userInfo['data']['email']) ? $userInfo['data']['email'] : '';
... ...
... ... @@ -58,11 +58,15 @@ class IndexController extends WebAction
//取消订单原因列表
$resons = OrderData::closeReasons();
$cancelReason = isset($resons['data']) ? $resons['data'] : '';
$useInfo = UserModel::getUserInfo($uid);
$data = array(
'path' => $path,
'userThumb' => UserModel::getUserHeadImg($uid),
'homeNav' => $leftNav,
'cancelReason' => $cancelReason,
'certifiedName' => $useInfo['is_student'] ? '学生身份已验证' : '身份验证',
'certifiedUrl' => $useInfo['is_student'] ? '' : Helpers::url('/product/students/'),
'content' => array(
array(
//消息提示
... ...
... ... @@ -40,7 +40,7 @@ class UserController extends WebAction
'isShowTip' => intval($configInfo['data']['config']['sn']),
'userPersonalInfo' => array(
'subTitle' => '会员信息',
'certified' => $userInfo['is_students'] === 1,
'certified' => $userInfo['is_student'] === 1,
'tipsUrl' => $userInfo['is_students'] === 1 ? Helpers::url('/', '', 'list') : Helpers::url('/product/students'),
'firstBox' => true,
'submitId' => 'base-info',
... ...