Authored by biao

Merge branch 'release/4.6' of http://git.yoho.cn/fe/yohobuywap-node into release/4.6

@@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
12 <ul class="clearfix swiper-wrapper"> 12 <ul class="clearfix swiper-wrapper">
13 {{# starAvatar}} 13 {{# starAvatar}}
14 <li class="swiper-slide"> 14 <li class="swiper-slide">
15 - <a class="rank-avatar" href='{{url}}' data-avatar="{{image cover 180 180}}"></a> 15 + <a href='{{url}}'><img src="{{image cover 180 180}}" /></a>
16 </li> 16 </li>
17 {{/ starAvatar}} 17 {{/ starAvatar}}
18 </ul> 18 </ul>
@@ -32,6 +32,7 @@ exports.notFound = () => { @@ -32,6 +32,7 @@ exports.notFound = () => {
32 */ 32 */
33 exports.serverError = () => { 33 exports.serverError = () => {
34 return (err, req, res, next) => { 34 return (err, req, res, next) => {
  35 + logger.error(err);
35 if (!res.headersSent) { 36 if (!res.headersSent) {
36 if (req.xhr) { 37 if (req.xhr) {
37 return res.status(500).json({ 38 return res.status(500).json({
@@ -40,7 +41,6 @@ exports.serverError = () => { @@ -40,7 +41,6 @@ exports.serverError = () => {
40 }); 41 });
41 } 42 }
42 43
43 - logger.error(err);  
44 return res.render('error/500', { 44 return res.render('error/500', {
45 err: err, 45 err: err,
46 module: 'common', 46 module: 'common',
@@ -255,10 +255,6 @@ getIndexHtml = function() { @@ -255,10 +255,6 @@ getIndexHtml = function() {
255 $avatarClone.remove(); 255 $avatarClone.remove();
256 } 256 }
257 257
258 - $('.avatar li').each(function() {  
259 - setAvatar($(this).find('span'));  
260 - });  
261 -  
262 $starMain.before($('.avatar-swiper').clone().addClass('avatar-clone').hide()); 258 $starMain.before($('.avatar-swiper').clone().addClass('avatar-clone').hide());
263 259
264 $avatarClone = $('.avatar-clone'); 260 $avatarClone = $('.avatar-clone');
@@ -11,7 +11,6 @@ @@ -11,7 +11,6 @@
11 li { 11 li {
12 float: left; 12 float: left;
13 width: 100%; 13 width: 100%;
14 - margin-top: 30px;  
15 background: #000; 14 background: #000;
16 15
17 .cont-area { 16 .cont-area {
@@ -9,7 +9,6 @@ @@ -9,7 +9,6 @@
9 width: 100%; 9 width: 100%;
10 float: left; 10 float: left;
11 background: #000; 11 background: #000;
12 - margin-top: 30px;  
13 12
14 img { 13 img {
15 width: 100%; 14 width: 100%;
@@ -139,7 +139,7 @@ @@ -139,7 +139,7 @@
139 width: 110px; 139 width: 110px;
140 height: 110px; 140 height: 110px;
141 margin-top: 34px; 141 margin-top: 34px;
142 - background: #282828; 142 + background: #000;
143 143
144 span { 144 span {
145 display: block; 145 display: block;