Authored by 周少峰

add edit user tips

... ... @@ -3,6 +3,15 @@
<h2 class="sub-title">
<div class="more"><a class="btn-edit" title="修改"></a></div>
{{subTitle}}
{{#if certified}}
<span class="sub-tips">学生身份已验证通过啦,赶紧去体验下<a class="tips-url" href="{{tipsUrl}}">我们的专属特权</a>吧!</span>
{{else}}
<span class="sub-tips"> 校园潮流季-我们的专属特权,进行学生身份验证即有惊喜哦,</span>
<a class="tips-url" href="{{tipsUrl}}">立即进行身份验证</a>
{{/if}}
</h2>
<form action="" {{# firstBox}}class="first" {{/firstBox}}>
<div class="box">
... ...
... ... @@ -283,7 +283,6 @@
font-size: 12px;
color: #333;
font-weight: normal;
cursor: pointer;
margin-bottom: 2px;
.more {
... ... @@ -298,6 +297,7 @@
display: inline-block;
overflow: hidden;
border: 0px;
cursor: pointer;
}
}
... ... @@ -321,6 +321,15 @@
margin-bottom: 10px;
}
}
.sub-tips {
color: #e52828;
}
.tips-url {
color: #e52828;
text-decoration: underline;
}
}
... ...
... ... @@ -14,7 +14,7 @@ class UserController extends WebAction
public function indexAction()
{
//判断是否登录
$uid = $this->auditJumpLogin();
// $uid = $this->auditJumpLogin();
//头部导航
$channel = Helpers::getChannelNameByCookie();
... ... @@ -40,6 +40,8 @@ class UserController extends WebAction
'isShowTip' => intval($configInfo['data']['config']['sn']),
'userPersonalInfo' => array(
'subTitle' => '会员信息',
'certified' => $userInfo['is_students'] === 1,
'tipsUrl' => $userInfo['is_students'] === 1 ? Helpers::url('/', '', 'list') : Helpers::url('/product/students'),
'firstBox' => true,
'submitId' => 'base-info',
'profileSrc' => $userInfo['headIco'],
... ...