fixes bug to home center redirect go roll
Showing
5 changed files
with
9 additions
and
3 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,6 +4991,9 @@ var recommendSwiper, | @@ -4989,6 +4991,9 @@ var recommendSwiper, | ||
4989 | 4991 | ||
4990 | if (preferenceUrl) { | 4992 | if (preferenceUrl) { |
4991 | $.get(preferenceUrl).then(function(html) { | 4993 | $.get(preferenceUrl).then(function(html) { |
4994 | + if (html.length < 5) { | ||
4995 | + $recommendForYou.css('display', 'none'); | ||
4996 | + } else { | ||
4992 | $recommendForYou.html(html).show(); | 4997 | $recommendForYou.html(html).show(); |
4993 | if ($('#swiper-recommend').length) { | 4998 | if ($('#swiper-recommend').length) { |
4994 | recommendSwiper = new Swiper('#swiper-recommend', { | 4999 | recommendSwiper = new Swiper('#swiper-recommend', { |
@@ -4999,6 +5004,7 @@ if (preferenceUrl) { | @@ -4999,6 +5004,7 @@ if (preferenceUrl) { | ||
4999 | watchSlidesVisibility: true | 5004 | watchSlidesVisibility: true |
5000 | }); | 5005 | }); |
5001 | } | 5006 | } |
5007 | + } | ||
5002 | 5008 | ||
5003 | window.rePosFooter(); | 5009 | window.rePosFooter(); |
5004 | 5010 |
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