...
|
...
|
@@ -70,7 +70,7 @@ var defaultOpt = require('../common/query-param'); |
|
|
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
url: '/product/index/shopFav',
|
|
|
url: location.protocol + '//m.yohobuy.com/product/index/shopFav',
|
|
|
xhrFields: {
|
|
|
withCredentials: true
|
|
|
},
|
...
|
...
|
@@ -125,7 +125,7 @@ var defaultOpt = require('../common/query-param'); |
|
|
// 切换active状态到$pre上
|
|
|
$pre.addClass('active');
|
|
|
|
|
|
$('#pos-list').addClass('hide')
|
|
|
$('#pos-list').addClass('hide');
|
|
|
$pre.siblings('.filter').removeClass('active');
|
|
|
subNavScrollTo();
|
|
|
}
|
...
|
...
|
@@ -428,13 +428,13 @@ function scrollHandler() { |
|
|
$nav2.removeClass('hide');
|
|
|
$nav1.addClass('hide');
|
|
|
if (!$newList.hasClass('hide')) {
|
|
|
$newList.addClass('classics')
|
|
|
$newList.addClass('classics');
|
|
|
}
|
|
|
} else if (sTop > nav1OffsetTop && $('#nav').length) {
|
|
|
$nav1.removeClass('hide');
|
|
|
$nav2.addClass('hide');
|
|
|
if (!$newList.hasClass('hide')) {
|
|
|
$newList.removeClass('classics')
|
|
|
$newList.removeClass('classics');
|
|
|
}
|
|
|
} else {
|
|
|
$nav1.addClass('hide');
|
...
|
...
|
@@ -708,7 +708,7 @@ $newList.on('touchstart', 'li', function(e) { |
|
|
}
|
|
|
|
|
|
$newList.addClass('hide');
|
|
|
$('#pos-list').addClass('hide')
|
|
|
$('#pos-list').addClass('hide');
|
|
|
$firstLiDom.find('.nav-txt').text($(this).text());
|
|
|
$firstLiDom.attr('data-bp-id', bpIdData).addClass('active').siblings().removeClass('active');
|
|
|
$subNav.find('.first-li-more').removeClass('new default sale').addClass(cls);
|
...
|
...
|
@@ -791,9 +791,9 @@ $subNav.on('touchend touchcancel', function(e) { |
|
|
filter.hideFilter();
|
|
|
$newList.toggleClass('hide');
|
|
|
if ($('#pos-list').hasClass('hide')) {
|
|
|
$newList.removeClass('classics')
|
|
|
$newList.removeClass('classics');
|
|
|
} else {
|
|
|
$newList.addClass('classics')
|
|
|
$newList.addClass('classics');
|
|
|
}
|
|
|
if ($this.hasClass('default')) {
|
|
|
$newList.find('li.default').addClass('active').siblings().removeClass('active');
|
...
|
...
|
@@ -803,7 +803,7 @@ $subNav.on('touchend touchcancel', function(e) { |
|
|
$newList.find('li.sale').addClass('active').siblings().removeClass('active');
|
|
|
}
|
|
|
newListHide();
|
|
|
|
|
|
|
|
|
} else {
|
|
|
// 最新li 列表
|
|
|
$newList.addClass('hide');
|
...
|
...
|
@@ -815,7 +815,7 @@ $subNav.on('touchend touchcancel', function(e) { |
|
|
$('.home-sub-nav>li.filter').removeClass('active');
|
|
|
$this.removeClass('active');
|
|
|
filter.hideFilter();
|
|
|
|
|
|
|
|
|
} else {
|
|
|
$('.home-sub-nav>li.filter').addClass('active');
|
|
|
$this.addClass('active');
|
...
|
...
|
@@ -831,7 +831,7 @@ $subNav.on('touchend touchcancel', function(e) { |
|
|
$('#pos-list').removeClass('hide');
|
|
|
}
|
|
|
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
|
|
|
filter.hideFilter();// 隐藏面板
|
...
|
...
|
@@ -974,7 +974,7 @@ $collect.on('touchstart', function() { |
|
|
|
|
|
$.ajax({
|
|
|
method: 'get',
|
|
|
url: '' + '/product/opt/favoriteBrand',
|
|
|
url: location.protocol + '//m.yohobuy.com/product/opt/favoriteBrand',
|
|
|
data: {
|
|
|
id: favId ? favId : shopId,
|
|
|
appVersion: appVersion,
|
...
|
...
|
|