Showing
3 changed files
with
6 additions
and
4 deletions
@@ -132,9 +132,10 @@ module.exports = class extends global.yoho.BaseModel { | @@ -132,9 +132,10 @@ module.exports = class extends global.yoho.BaseModel { | ||
132 | 132 | ||
133 | } | 133 | } |
134 | 134 | ||
135 | - if (result[0] && result[0].data) { | 135 | + if (result[1] && result[1].data) { |
136 | obj = _.assign(obj, { | 136 | obj = _.assign(obj, { |
137 | - name: result[1].data.nickname | 137 | + name: result[1].data.nickname, |
138 | + headIco: result[1].data.head_ico | ||
138 | }); | 139 | }); |
139 | } | 140 | } |
140 | 141 |
@@ -12,7 +12,7 @@ | @@ -12,7 +12,7 @@ | ||
12 | <div class="user-info clearfix"> | 12 | <div class="user-info clearfix"> |
13 | <div class="base clearfix"> | 13 | <div class="base clearfix"> |
14 | {{# vipGrade}} | 14 | {{# vipGrade}} |
15 | - <div class="pic" style="background-image:url('http://172.16.6.52:5001/img/home/index/user-avatar.png')"> | 15 | + <div class="pic"{{#if headIco}} style="background-image:url({{headIco}})"{{/if}}> |
16 | {{#if vip0}} | 16 | {{#if vip0}} |
17 | <div class="level-pic vip-0"></div> | 17 | <div class="level-pic vip-0"></div> |
18 | {{else if vip1}} | 18 | {{else if vip1}} |
@@ -56,11 +56,12 @@ | @@ -56,11 +56,12 @@ | ||
56 | width: 125px; | 56 | width: 125px; |
57 | height: 125px; | 57 | height: 125px; |
58 | float: left; | 58 | float: left; |
59 | - background-size: contain; | 59 | + background-size: 100% 100%; |
60 | background-position: center; | 60 | background-position: center; |
61 | border-radius: 50%; | 61 | border-radius: 50%; |
62 | border: 1px solid #eee; | 62 | border: 1px solid #eee; |
63 | position: relative; | 63 | position: relative; |
64 | + background-image: resolve("home/index/user-avatar.png"); | ||
64 | 65 | ||
65 | .level-pic { | 66 | .level-pic { |
66 | width: 82px; | 67 | width: 82px; |
-
Please register or login to post a comment