Authored by ccbikai

个人中心顶部 图片

@@ -5,19 +5,20 @@ @@ -5,19 +5,20 @@
5 position: relative; 5 position: relative;
6 padding: 0 pxToRem(30px); 6 padding: 0 pxToRem(30px);
7 color: #fff; 7 color: #fff;
8 - background: #ccc;  
9 font-size: pxToRem(34px); 8 font-size: pxToRem(34px);
10 - line-height: pxToRem(164px);  
11 - height: pxToRem(164px); 9 + line-height: pxToRem(168px);
  10 + height: pxToRem(168px);
  11 + background: image-url("me/index/header-bg.jpg");
  12 + background-size: cover;
12 13
13 .user-avatar { 14 .user-avatar {
14 float: left; 15 float: left;
15 position: relative; 16 position: relative;
16 - top: pxToRem(8px);  
17 - width: pxToRem(132px);  
18 - height: pxToRem(132px); 17 + top: pxToRem(16px);
  18 + width: pxToRem(126px);
  19 + height: pxToRem(126px);
19 border-radius: 50%; 20 border-radius: 50%;
20 - border: pxToRem(8px) solid #a7a8a9; 21 + border: pxToRem(6px) solid #a7a8a9;
21 } 22 }
22 23
23 .username { 24 .username {
@@ -50,7 +50,7 @@ @@ -50,7 +50,7 @@
50 <a class="list-item" href="/home/address"> 50 <a class="list-item" href="/home/address">
51 <span class="iconfont icon">&#xe637;</span> 51 <span class="iconfont icon">&#xe637;</span>
52 地址管理 52 地址管理
53 - <span class="iconfont num">3 &#xe604;</span> 53 + <span class="iconfont num">{{address_num}} &#xe604;</span>
54 </a> 54 </a>
55 </div> 55 </div>
56 <div class="group-list"> 56 <div class="group-list">
@@ -30,7 +30,7 @@ class HomeController extends AbstractAction @@ -30,7 +30,7 @@ class HomeController extends AbstractAction
30 $uid = 8826435; 30 $uid = 8826435;
31 $data = \Index\UserModel::getUserProfileData($uid); 31 $data = \Index\UserModel::getUserProfileData($uid);
32 $data += \Index\UserModel::getInfoNumData($uid); 32 $data += \Index\UserModel::getInfoNumData($uid);
33 - 33 +
34 // 优选新品数据 34 // 优选新品数据
35 $channel = Helpers::getChannelByCookie(); 35 $channel = Helpers::getChannelByCookie();
36 $data['recommendForYou'] = \Index\UserModel::getPreferenceData($channel); 36 $data['recommendForYou'] = \Index\UserModel::getPreferenceData($channel);