Showing
4 changed files
with
11 additions
and
1 deletions
@@ -15,6 +15,9 @@ | @@ -15,6 +15,9 @@ | ||
15 | <b>({{count}})</b> | 15 | <b>({{count}})</b> |
16 | {{/ messages}} | 16 | {{/ messages}} |
17 | 17 | ||
18 | + {{#if certifiedName}} | ||
19 | + <a href="{{certifiedUrl}}">{{certifiedName}}</a> | ||
20 | + {{/if}} | ||
18 | <span id="close-message" class="close iconfont"></span> | 21 | <span id="close-message" class="close iconfont"></span> |
19 | </p> | 22 | </p> |
20 | {{/if}} | 23 | {{/if}} |
@@ -153,6 +153,9 @@ class UserModel | @@ -153,6 +153,9 @@ class UserModel | ||
153 | public static function getUserInfo($uid) | 153 | public static function getUserInfo($uid) |
154 | { | 154 | { |
155 | $userInfo = UserData::getUserInfo($uid); | 155 | $userInfo = UserData::getUserInfo($uid); |
156 | +// print_r($userInfo); exit; | ||
157 | + // 学生认证 | ||
158 | + $res['is_student'] = isset($userInfo['data']['vip_info']['is_student']) ? $userInfo['data']['vip_info']['is_student'] : 0; | ||
156 | //头像 | 159 | //头像 |
157 | $res['headIco'] = empty($userInfo['data']['head_ico']) ? ChannelConfig::$headDefaultImgIco : Images::getImageUrl($userInfo['data']['head_ico'], 100, 100, 2); | 160 | $res['headIco'] = empty($userInfo['data']['head_ico']) ? ChannelConfig::$headDefaultImgIco : Images::getImageUrl($userInfo['data']['head_ico'], 100, 100, 2); |
158 | $res['email'] = isset($userInfo['data']['email']) ? $userInfo['data']['email'] : ''; | 161 | $res['email'] = isset($userInfo['data']['email']) ? $userInfo['data']['email'] : ''; |
@@ -58,11 +58,15 @@ class IndexController extends WebAction | @@ -58,11 +58,15 @@ class IndexController extends WebAction | ||
58 | //取消订单原因列表 | 58 | //取消订单原因列表 |
59 | $resons = OrderData::closeReasons(); | 59 | $resons = OrderData::closeReasons(); |
60 | $cancelReason = isset($resons['data']) ? $resons['data'] : ''; | 60 | $cancelReason = isset($resons['data']) ? $resons['data'] : ''; |
61 | + | ||
62 | + $useInfo = UserModel::getUserInfo($uid); | ||
61 | $data = array( | 63 | $data = array( |
62 | 'path' => $path, | 64 | 'path' => $path, |
63 | 'userThumb' => UserModel::getUserHeadImg($uid), | 65 | 'userThumb' => UserModel::getUserHeadImg($uid), |
64 | 'homeNav' => $leftNav, | 66 | 'homeNav' => $leftNav, |
65 | 'cancelReason' => $cancelReason, | 67 | 'cancelReason' => $cancelReason, |
68 | + 'certifiedName' => $useInfo['is_student'] ? '学生身份已验证' : '身份验证', | ||
69 | + 'certifiedUrl' => $useInfo['is_student'] ? '' : Helpers::url('/product/students/'), | ||
66 | 'content' => array( | 70 | 'content' => array( |
67 | array( | 71 | array( |
68 | //消息提示 | 72 | //消息提示 |
@@ -40,7 +40,7 @@ class UserController extends WebAction | @@ -40,7 +40,7 @@ class UserController extends WebAction | ||
40 | 'isShowTip' => intval($configInfo['data']['config']['sn']), | 40 | 'isShowTip' => intval($configInfo['data']['config']['sn']), |
41 | 'userPersonalInfo' => array( | 41 | 'userPersonalInfo' => array( |
42 | 'subTitle' => '会员信息', | 42 | 'subTitle' => '会员信息', |
43 | - 'certified' => $userInfo['is_students'] === 1, | 43 | + 'certified' => $userInfo['is_student'] === 1, |
44 | 'tipsUrl' => $userInfo['is_students'] === 1 ? Helpers::url('/', '', 'list') : Helpers::url('/product/students'), | 44 | 'tipsUrl' => $userInfo['is_students'] === 1 ? Helpers::url('/', '', 'list') : Helpers::url('/product/students'), |
45 | 'firstBox' => true, | 45 | 'firstBox' => true, |
46 | 'submitId' => 'base-info', | 46 | 'submitId' => 'base-info', |
-
Please register or login to post a comment