Merge branch 'release/4.6' of http://git.yoho.cn/fe/yohobuywap-node into release/4.6
Showing
6 changed files
with
3 additions
and
9 deletions
@@ -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'); |
-
Please register or login to post a comment