...
|
...
|
@@ -82,6 +82,7 @@ $('#hotRank').on('touchend touchcancel', function(e) { |
|
|
var target = ev.target || ev.srcElement;
|
|
|
|
|
|
if (target.nodeName.toLowerCase() === 'span') {
|
|
|
$('.s-goods-nav .nav-item').removeClass('active');
|
|
|
target.parentNode.className = 'active ' + target.parentNode.className;
|
|
|
id = target.getAttribute('data-id') ? target.getAttribute('data-id') : '';
|
|
|
sort = target.getAttribute('data-sort') ? target.getAttribute('data-sort') : '';
|
...
|
...
|
@@ -98,9 +99,9 @@ $('#hotRank').on('touchstart', function(e) { |
|
|
var target = ev.target || ev.srcElement;
|
|
|
|
|
|
if (target.nodeName.toLowerCase() === 'span') {
|
|
|
target.parentNode.className = 'active ' + target.parentNode.className;
|
|
|
target.parentNode.className = 'bgActive ' + target.parentNode.className;
|
|
|
}
|
|
|
}).on('touchend touchcancel', function() {
|
|
|
$('.s-goods-nav .nav-item').removeClass('active');
|
|
|
$('.s-goods-nav .nav-item').removeClass('bgActive');
|
|
|
});
|
|
|
|
...
|
...
|
|