fixes bug to home center redirect go roll
Showing
5 changed files
with
18 additions
and
12 deletions
@@ -2028,8 +2028,8 @@ $('#search').on('touchend', function() { | @@ -2028,8 +2028,8 @@ $('#search').on('touchend', function() { | ||
2028 | 2028 | ||
2029 | if (historys && historys.length > 0) { | 2029 | if (historys && historys.length > 0) { |
2030 | historys = historys.split(ranToken); | 2030 | historys = historys.split(ranToken); |
2031 | - for (i = 0; i < historys.length; i++) { | ||
2032 | - history = historys[i]; | 2031 | + for (i = historys.length; i > 0; i--) { |
2032 | + history = historys[i - 1]; | ||
2033 | 2033 | ||
2034 | if (history === '') { | 2034 | if (history === '') { |
2035 | continue; | 2035 | continue; |
@@ -4777,7 +4777,9 @@ $.ajax({ | @@ -4777,7 +4777,9 @@ $.ajax({ | ||
4777 | } | 4777 | } |
4778 | }); | 4778 | }); |
4779 | 4779 | ||
4780 | - | 4780 | +if ($('.good-detail-page').length > 0) { |
4781 | + $('#yoho-footer').css('border-top', '1px solid #e0e0e0'); | ||
4782 | +} | ||
4781 | 4783 | ||
4782 | require("js/product/detail/like"); | 4784 | require("js/product/detail/like"); |
4783 | 4785 | ||
@@ -4989,15 +4991,19 @@ var recommendSwiper, | @@ -4989,15 +4991,19 @@ var recommendSwiper, | ||
4989 | 4991 | ||
4990 | if (preferenceUrl) { | 4992 | if (preferenceUrl) { |
4991 | $.get(preferenceUrl).then(function(html) { | 4993 | $.get(preferenceUrl).then(function(html) { |
4992 | - $recommendForYou.html(html).show(); | ||
4993 | - if ($('#swiper-recommend').length) { | ||
4994 | - recommendSwiper = new Swiper('#swiper-recommend', { | ||
4995 | - slidesPerView: 'auto', | ||
4996 | - grabCursor: true, | ||
4997 | - slideElement: 'a', | ||
4998 | - lazyLoading: true, | ||
4999 | - watchSlidesVisibility: true | ||
5000 | - }); | 4994 | + if (html.length < 5) { |
4995 | + $recommendForYou.css('display', 'none'); | ||
4996 | + } else { | ||
4997 | + $recommendForYou.html(html).show(); | ||
4998 | + if ($('#swiper-recommend').length) { | ||
4999 | + recommendSwiper = new Swiper('#swiper-recommend', { | ||
5000 | + slidesPerView: 'auto', | ||
5001 | + grabCursor: true, | ||
5002 | + slideElement: 'a', | ||
5003 | + lazyLoading: true, | ||
5004 | + watchSlidesVisibility: true | ||
5005 | + }); | ||
5006 | + } | ||
5001 | } | 5007 | } |
5002 | 5008 | ||
5003 | window.rePosFooter(); | 5009 | window.rePosFooter(); |
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
-
Please register or login to post a comment