Showing
2 changed files
with
4 additions
and
4 deletions
@@ -15,8 +15,8 @@ module.exports = { | @@ -15,8 +15,8 @@ module.exports = { | ||
15 | port: 6001, | 15 | port: 6001, |
16 | siteUrl: '//m.yohobuy.com', | 16 | siteUrl: '//m.yohobuy.com', |
17 | domains: { | 17 | domains: { |
18 | - api: 'http://api.yoho.yohoops.org/', | ||
19 | - service: 'http://service.yoho.yohoops.org/' | 18 | + api: 'http://testapi.yoho.cn:28078/', |
19 | + service: 'http://testservice.yoho.cn:28077/' | ||
20 | 20 | ||
21 | // api: 'http://devapi.yoho.cn:58078/', | 21 | // api: 'http://devapi.yoho.cn:58078/', |
22 | // service: 'http://devservice.yoho.cn:58077/' | 22 | // service: 'http://devservice.yoho.cn:58077/' |
@@ -24,8 +24,8 @@ function request() { | @@ -24,8 +24,8 @@ function request() { | ||
24 | 24 | ||
25 | if (preferenceUrl) { | 25 | if (preferenceUrl) { |
26 | $.get(preferenceUrl).then(function(html) { | 26 | $.get(preferenceUrl).then(function(html) { |
27 | - if (html.length < 5) { | ||
28 | - $recommendForYou.css('display', 'none'); | 27 | + if ($(html).find('.swiper-slide').length < 5) { |
28 | + $recommendForYou.hide(); | ||
29 | } else { | 29 | } else { |
30 | $recommendForYou.html(html).show(); | 30 | $recommendForYou.html(html).show(); |
31 | if ($('#swiper-recommend').length) { | 31 | if ($('#swiper-recommend').length) { |
-
Please register or login to post a comment