Showing
1 changed file
with
13 additions
and
1 deletions
@@ -13,7 +13,9 @@ var $recommendForYou = $('.recommend-for-you'); | @@ -13,7 +13,9 @@ var $recommendForYou = $('.recommend-for-you'); | ||
13 | $.get('/product/recommend-for-you/userCenter').then(function(html) { | 13 | $.get('/product/recommend-for-you/userCenter').then(function(html) { |
14 | var PRDID = []; | 14 | var PRDID = []; |
15 | 15 | ||
16 | - $recommendForYou.html(html).show(); | 16 | + $recommendForYou.html(html); |
17 | + | ||
18 | + | ||
17 | lazyLoad($('img.lazy')); | 19 | lazyLoad($('img.lazy')); |
18 | 20 | ||
19 | // 为您优选埋点 http://redmine.yoho.cn/issues/10116 | 21 | // 为您优选埋点 http://redmine.yoho.cn/issues/10116 |
@@ -21,6 +23,16 @@ $.get('/product/recommend-for-you/userCenter').then(function(html) { | @@ -21,6 +23,16 @@ $.get('/product/recommend-for-you/userCenter').then(function(html) { | ||
21 | PRDID.push($(this).data('id')); | 23 | PRDID.push($(this).data('id')); |
22 | }); | 24 | }); |
23 | 25 | ||
26 | + let $recommendSonLen = $recommendForYou.find('.good-info').length; | ||
27 | + | ||
28 | + if ($recommendSonLen === 0) { | ||
29 | + $recommendForYou.hide(); | ||
30 | + } else { | ||
31 | + $recommendForYou.show(); | ||
32 | + } | ||
33 | + | ||
34 | + | ||
35 | + | ||
24 | window.givePoint({ | 36 | window.givePoint({ |
25 | 'REC_POSE': 110004, | 37 | 'REC_POSE': 110004, |
26 | 'PRD_ID': PRDID.join(','), | 38 | 'PRD_ID': PRDID.join(','), |
-
Please register or login to post a comment