Showing
1 changed file
with
11 additions
and
11 deletions
@@ -70,7 +70,7 @@ var defaultOpt = require('../common/query-param'); | @@ -70,7 +70,7 @@ var defaultOpt = require('../common/query-param'); | ||
70 | 70 | ||
71 | $.ajax({ | 71 | $.ajax({ |
72 | type: 'GET', | 72 | type: 'GET', |
73 | - url: '/product/index/shopFav', | 73 | + url: location.protocol + '//m.yohobuy.com/product/index/shopFav', |
74 | xhrFields: { | 74 | xhrFields: { |
75 | withCredentials: true | 75 | withCredentials: true |
76 | }, | 76 | }, |
@@ -125,7 +125,7 @@ var defaultOpt = require('../common/query-param'); | @@ -125,7 +125,7 @@ var defaultOpt = require('../common/query-param'); | ||
125 | // 切换active状态到$pre上 | 125 | // 切换active状态到$pre上 |
126 | $pre.addClass('active'); | 126 | $pre.addClass('active'); |
127 | 127 | ||
128 | - $('#pos-list').addClass('hide') | 128 | + $('#pos-list').addClass('hide'); |
129 | $pre.siblings('.filter').removeClass('active'); | 129 | $pre.siblings('.filter').removeClass('active'); |
130 | subNavScrollTo(); | 130 | subNavScrollTo(); |
131 | } | 131 | } |
@@ -428,13 +428,13 @@ function scrollHandler() { | @@ -428,13 +428,13 @@ function scrollHandler() { | ||
428 | $nav2.removeClass('hide'); | 428 | $nav2.removeClass('hide'); |
429 | $nav1.addClass('hide'); | 429 | $nav1.addClass('hide'); |
430 | if (!$newList.hasClass('hide')) { | 430 | if (!$newList.hasClass('hide')) { |
431 | - $newList.addClass('classics') | 431 | + $newList.addClass('classics'); |
432 | } | 432 | } |
433 | } else if (sTop > nav1OffsetTop && $('#nav').length) { | 433 | } else if (sTop > nav1OffsetTop && $('#nav').length) { |
434 | $nav1.removeClass('hide'); | 434 | $nav1.removeClass('hide'); |
435 | $nav2.addClass('hide'); | 435 | $nav2.addClass('hide'); |
436 | if (!$newList.hasClass('hide')) { | 436 | if (!$newList.hasClass('hide')) { |
437 | - $newList.removeClass('classics') | 437 | + $newList.removeClass('classics'); |
438 | } | 438 | } |
439 | } else { | 439 | } else { |
440 | $nav1.addClass('hide'); | 440 | $nav1.addClass('hide'); |
@@ -708,7 +708,7 @@ $newList.on('touchstart', 'li', function(e) { | @@ -708,7 +708,7 @@ $newList.on('touchstart', 'li', function(e) { | ||
708 | } | 708 | } |
709 | 709 | ||
710 | $newList.addClass('hide'); | 710 | $newList.addClass('hide'); |
711 | - $('#pos-list').addClass('hide') | 711 | + $('#pos-list').addClass('hide'); |
712 | $firstLiDom.find('.nav-txt').text($(this).text()); | 712 | $firstLiDom.find('.nav-txt').text($(this).text()); |
713 | $firstLiDom.attr('data-bp-id', bpIdData).addClass('active').siblings().removeClass('active'); | 713 | $firstLiDom.attr('data-bp-id', bpIdData).addClass('active').siblings().removeClass('active'); |
714 | $subNav.find('.first-li-more').removeClass('new default sale').addClass(cls); | 714 | $subNav.find('.first-li-more').removeClass('new default sale').addClass(cls); |
@@ -791,9 +791,9 @@ $subNav.on('touchend touchcancel', function(e) { | @@ -791,9 +791,9 @@ $subNav.on('touchend touchcancel', function(e) { | ||
791 | filter.hideFilter(); | 791 | filter.hideFilter(); |
792 | $newList.toggleClass('hide'); | 792 | $newList.toggleClass('hide'); |
793 | if ($('#pos-list').hasClass('hide')) { | 793 | if ($('#pos-list').hasClass('hide')) { |
794 | - $newList.removeClass('classics') | 794 | + $newList.removeClass('classics'); |
795 | } else { | 795 | } else { |
796 | - $newList.addClass('classics') | 796 | + $newList.addClass('classics'); |
797 | } | 797 | } |
798 | if ($this.hasClass('default')) { | 798 | if ($this.hasClass('default')) { |
799 | $newList.find('li.default').addClass('active').siblings().removeClass('active'); | 799 | $newList.find('li.default').addClass('active').siblings().removeClass('active'); |
@@ -803,7 +803,7 @@ $subNav.on('touchend touchcancel', function(e) { | @@ -803,7 +803,7 @@ $subNav.on('touchend touchcancel', function(e) { | ||
803 | $newList.find('li.sale').addClass('active').siblings().removeClass('active'); | 803 | $newList.find('li.sale').addClass('active').siblings().removeClass('active'); |
804 | } | 804 | } |
805 | newListHide(); | 805 | newListHide(); |
806 | - | 806 | + |
807 | } else { | 807 | } else { |
808 | // 最新li 列表 | 808 | // 最新li 列表 |
809 | $newList.addClass('hide'); | 809 | $newList.addClass('hide'); |
@@ -815,7 +815,7 @@ $subNav.on('touchend touchcancel', function(e) { | @@ -815,7 +815,7 @@ $subNav.on('touchend touchcancel', function(e) { | ||
815 | $('.home-sub-nav>li.filter').removeClass('active'); | 815 | $('.home-sub-nav>li.filter').removeClass('active'); |
816 | $this.removeClass('active'); | 816 | $this.removeClass('active'); |
817 | filter.hideFilter(); | 817 | filter.hideFilter(); |
818 | - | 818 | + |
819 | } else { | 819 | } else { |
820 | $('.home-sub-nav>li.filter').addClass('active'); | 820 | $('.home-sub-nav>li.filter').addClass('active'); |
821 | $this.addClass('active'); | 821 | $this.addClass('active'); |
@@ -831,7 +831,7 @@ $subNav.on('touchend touchcancel', function(e) { | @@ -831,7 +831,7 @@ $subNav.on('touchend touchcancel', function(e) { | ||
831 | $('#pos-list').removeClass('hide'); | 831 | $('#pos-list').removeClass('hide'); |
832 | } | 832 | } |
833 | 833 | ||
834 | - } | 834 | + } |
835 | } else { | 835 | } else { |
836 | 836 | ||
837 | filter.hideFilter();// 隐藏面板 | 837 | filter.hideFilter();// 隐藏面板 |
@@ -974,7 +974,7 @@ $collect.on('touchstart', function() { | @@ -974,7 +974,7 @@ $collect.on('touchstart', function() { | ||
974 | 974 | ||
975 | $.ajax({ | 975 | $.ajax({ |
976 | method: 'get', | 976 | method: 'get', |
977 | - url: '' + '/product/opt/favoriteBrand', | 977 | + url: location.protocol + '//m.yohobuy.com/product/opt/favoriteBrand', |
978 | data: { | 978 | data: { |
979 | id: favId ? favId : shopId, | 979 | id: favId ? favId : shopId, |
980 | appVersion: appVersion, | 980 | appVersion: appVersion, |
-
Please register or login to post a comment