Authored by ccbikai

个人中心样式

1 .mine-page { 1 .mine-page {
2 - 2 + .user-info {
  3 + padding: 0 30rem / $pxConvertRem;
  4 + color: #fff;
  5 + background: #ccc;
  6 + font-size: 34rem / $pxConvertRem;
  7 + line-height: 164rem / $pxConvertRem;
  8 + height: 164rem / $pxConvertRem;
  9 + .user-avatar {
  10 + display: inline;
  11 + }
  12 + }
3 } 13 }
@@ -2,11 +2,13 @@ @@ -2,11 +2,13 @@
2 <div class="mine-page yoho-page"> 2 <div class="mine-page yoho-page">
3 <div class="mine-header"> 3 <div class="mine-header">
4 <div class="user-info"> 4 <div class="user-info">
5 - <img class="user-avatar" src="1">  
6 - <span class="username">Tom</span>  
7 - <img class="user-level" src="1"> 5 + <img class="user-avatar" src="{{head_ico}}">
  6 + <span class="username">{{profile_name}}</span>
  7 + {{#user_info}}
  8 + <span class="user-level user-level-{{cur_level}}"></span>
  9 + {{/user_info}}
8 </div> 10 </div>
9 - <div class="iconfont more-icon">1</div> 11 + <div class="iconfont more-icon">2</div>
10 </div> 12 </div>
11 </div> 13 </div>
12 {{> layout/footer}} 14 {{> layout/footer}}
@@ -19,18 +19,19 @@ class HomeController extends AbstractAction @@ -19,18 +19,19 @@ class HomeController extends AbstractAction
19 */ 19 */
20 public function indexAction() 20 public function indexAction()
21 { 21 {
22 - $uid = $uid = $this->getUid();; 22 + // $uid = $uid = $this->getUid();
  23 + $uid = 967016;
23 24
24 $data = \Index\UserModel::getUserProfileData($uid); 25 $data = \Index\UserModel::getUserProfileData($uid);
25 26
26 - print_r($data); 27 + // print_r($data);
  28 + $data['homeHeader'] = array('searchUrl' => Helpers::url('/search', null, 'search'));
  29 + $data['pageFooter'] = true;
  30 +
27 // 设置网站标题 31 // 设置网站标题
28 $this->setTitle('男生首页'); 32 $this->setTitle('男生首页');
29 33
30 - $this->_view->display('index', array(  
31 - 'homeHeader' => array('searchUrl' => Helpers::url('/search', null, 'search')),  
32 - 'pageFooter' => true,  
33 - )); 34 + $this->_view->display('index', $data);
34 } 35 }
35 36
36 /** 37 /**