Authored by ccbikai

个人中心样式

.mine-page {
.user-info {
padding: 0 30rem / $pxConvertRem;
color: #fff;
background: #ccc;
font-size: 34rem / $pxConvertRem;
line-height: 164rem / $pxConvertRem;
height: 164rem / $pxConvertRem;
.user-avatar {
display: inline;
}
}
}
\ No newline at end of file
... ...
... ... @@ -2,11 +2,13 @@
<div class="mine-page yoho-page">
<div class="mine-header">
<div class="user-info">
<img class="user-avatar" src="1">
<span class="username">Tom</span>
<img class="user-level" src="1">
<img class="user-avatar" src="{{head_ico}}">
<span class="username">{{profile_name}}</span>
{{#user_info}}
<span class="user-level user-level-{{cur_level}}"></span>
{{/user_info}}
</div>
<div class="iconfont more-icon">1</div>
<div class="iconfont more-icon">2</div>
</div>
</div>
{{> layout/footer}}
\ No newline at end of file
... ...
... ... @@ -19,18 +19,19 @@ class HomeController extends AbstractAction
*/
public function indexAction()
{
$uid = $uid = $this->getUid();;
// $uid = $uid = $this->getUid();
$uid = 967016;
$data = \Index\UserModel::getUserProfileData($uid);
print_r($data);
// print_r($data);
$data['homeHeader'] = array('searchUrl' => Helpers::url('/search', null, 'search'));
$data['pageFooter'] = true;
// 设置网站标题
$this->setTitle('男生首页');
$this->_view->display('index', array(
'homeHeader' => array('searchUrl' => Helpers::url('/search', null, 'search')),
'pageFooter' => true,
));
$this->_view->display('index', $data);
}
/**
... ...