Showing
1 changed file
with
5 additions
and
3 deletions
@@ -90,8 +90,8 @@ function loadData($parent, url, page) { | @@ -90,8 +90,8 @@ function loadData($parent, url, page) { | ||
90 | $parent.closest('.fav-type').find('.fav-null-box').removeClass('hide'); | 90 | $parent.closest('.fav-type').find('.fav-null-box').removeClass('hide'); |
91 | } else if (data === 'end') { | 91 | } else if (data === 'end') { |
92 | $parent.closest('.fav-type').find('.fav-load-background') | 92 | $parent.closest('.fav-type').find('.fav-load-background') |
93 | - .removeClass('fav-load-background').html('没有更多了'); | ||
94 | - | 93 | + .removeClass('fav-load-background').html('没有更多了'); |
94 | + | ||
95 | // hf: fixes bug to 修改没有数据还调接口,加载错误页面问题 | 95 | // hf: fixes bug to 修改没有数据还调接口,加载错误页面问题 |
96 | brandLockId = true; | 96 | brandLockId = true; |
97 | lockId = true; | 97 | lockId = true; |
@@ -241,5 +241,7 @@ $(window).scroll(scrollHandler); | @@ -241,5 +241,7 @@ $(window).scroll(scrollHandler); | ||
241 | $(document).on('touchend', '.swiper-header', function() { | 241 | $(document).on('touchend', '.swiper-header', function() { |
242 | var url = $(this).find('.fav-more').attr('href'); | 242 | var url = $(this).find('.fav-more').attr('href'); |
243 | 243 | ||
244 | - window.location.href = url; | 244 | + if (url) { |
245 | + window.location.href = url; | ||
246 | + } | ||
245 | }); | 247 | }); |
-
Please register or login to post a comment