Authored by ccbikai

价格排序点击背景

... ... @@ -88,10 +88,9 @@ $categoryContainer.find('.sub-level').on('touchstart', 'li', function() {
$(this).removeClass('highlight');
});
$nav.on('touchstart', function(e) {
var target = e.target || e.srcElement;
target.parentNode.className = 'bytouch ' + target.parentNode.className;
}).on('touchend touchcancel', function() {
$nav.on('touchstart', 'li', function() {
$nav.find('li').removeClass('bytouch');
$(this).addClass('bytouch');
}).on('touchend touchcancel', 'li', function() {
$nav.find('li').removeClass('bytouch');
});
\ No newline at end of file
... ...
... ... @@ -447,10 +447,10 @@ if ($brandHeader.length > 0) {
//初始请求最新第一页数据
search();
$listNav.on('touchstart', function(e) {
var target = e.target || e.srcElement;
target.parentNode.parentNode.className = 'bytouch ' + target.parentNode.parentNode.className;
}).on('touchend touchcancel', function() {
$listNav.on('touchstart', 'li', function() {
$listNav.find('li').removeClass('bytouch');
$(this).addClass('bytouch');
}).on('touchend touchcancel', 'li', function() {
$listNav.find('li').removeClass('bytouch');
});
... ...