Authored by Zhang

功能修改

... ... @@ -166,11 +166,11 @@
<span>默认</span>
<span class="chose"></span>
</li>
<li class="discount dec" data-bp-id="shop_listnav_popularity_1" data-text="折扣降序">
<li class="discount dec" data-bp-id="shop_listnav_popularity_1" data-text="折扣">
<span>折扣从高到低</span>
<span class="chose"></span>
</li>
<li class="discount asc" data-bp-id="shop_listnav_popularity_1" data-text="折扣升序">
<li class="discount asc" data-bp-id="shop_listnav_popularity_1" data-text="折扣">
<span>折扣从低到高</span>
<span class="chose"></span>
</li>
... ... @@ -257,11 +257,11 @@
<span>默认</span>
<span class="chose"></span>
</li>
<li class="discount dec" data-bp-id="shop_listnav_popularity_1" data-text="折扣降序">
<li class="discount dec" data-bp-id="shop_listnav_popularity_1" data-text="折扣">
<span>折扣从高到低</span>
<span class="chose"></span>
</li>
<li class="discount asc" data-bp-id="shop_listnav_popularity_1" data-text="折扣升序">
<li class="discount asc" data-bp-id="shop_listnav_popularity_1" data-text="折扣">
<span>折扣从低到高</span>
<span class="chose"></span>
</li>
... ...
... ... @@ -45,11 +45,11 @@
<div class='new-list hide'>
<ul>
<li class='active default' data-bp-id='shop_listnav_default_1'>默认</li>
<li class="discount desc" data-bp-id="shop_listnav_popularity_1" data-text="折扣降序">
<li class="discount desc" data-bp-id="shop_listnav_popularity_1" data-text="折扣">
<span>折扣从高到低</span>
<span class="chose"></span>
</li>
<li class="discount asc" data-bp-id="shop_listnav_popularity_1" data-text="折扣升序">
<li class="discount asc" data-bp-id="shop_listnav_popularity_1" data-text="折扣">
<span>折扣从低到高</span>
<span class="chose"></span>
</li>
... ...
... ... @@ -38,11 +38,11 @@
<span>默认</span>
<span class="chose"></span>
</li>
<li class="discount dec" data-bp-id="shop_listnav_discount_0" data-text="折扣降序">
<li class="discount dec" data-bp-id="shop_listnav_discount_0" data-text="折扣">
<span>折扣从高到低</span>
<span class="chose"></span>
</li>
<li class="discount asc" data-bp-id="shop_listnav_discount_1" data-text="折扣升序">
<li class="discount asc" data-bp-id="shop_listnav_discount_1" data-text="折扣">
<span>折扣从低到高</span>
<span class="chose"></span>
</li>
... ...
... ... @@ -1101,6 +1101,10 @@ $listNav.on('touchend touchcancel', function(e) {
search({filtering: true});
}
}
if (!$dropList.hasClass('hide')) {
$dropList.addClass('hide');
}
});
function scrollHandler() {
... ...
... ... @@ -956,6 +956,10 @@ $subNav.on('touchend touchcancel', function(e) {
$('.new-list').removeClass('full-height');
}
if (!$dropList.hasClass('hide')) {
$dropList.addClass('hide');
}
e.stopPropagation();
});
... ...
... ... @@ -260,6 +260,7 @@ $listNav.on('touchend touchcancel', function(e) {
return false;
});
} else if ($this.hasClass('filter')) { // 筛选面板
$dropList.css('display', 'none');
// 筛选面板切换状态
if ($this.hasClass('active')) {
... ... @@ -277,7 +278,7 @@ $listNav.on('touchend touchcancel', function(e) {
filter.showFilter();
}
} else { // 排序改变
$dropList.css('display', 'none');
if ($this.hasClass('new')) {
navType = 'new';
} else if ($this.hasClass('price')) {
... ...
... ... @@ -808,12 +808,15 @@ $listNav.on('touchend touchcancel', function(e) {
$active.removeClass('active');
$this.addClass('active');
}
if (nav.reload) {
$(document).trigger('shouldSendBpData', [bpIdData]);
search({filtering: true});
}
}
if (!$dropList.hasClass('hide')) {
$dropList.addClass('hide');
}
});
function scrollHandler() {
... ...
... ... @@ -118,4 +118,8 @@
}
}
}
.hide {
display: none;
}
}
... ...