Authored by 郭成尧

filter-touch-target

... ... @@ -311,13 +311,13 @@ class ProductListWithFilter {
$this.addClass('active');
this.view.dropList.toggle();
this.view.dropList.find('.default').on('touchend touchcancel', (e) => {
this.view.thisLi = $(e.target);
this.view.thisLi = $(e.delegateTarget);
this.view.firstText.html('默认');
this.popularityFilter(this.view.thisLi, 'default');
return false;
});
this.view.dropList.find('.discount').on('touchend touchcancel', (e) => {
this.view.thisLi = $(e.target);
this.view.thisLi = $(e.delegateTarget);
this.view.firstText.html(this.view.thisLi.data('text'));
this.popularityFilter(this.view.thisLi, 'discount');
$('.first-li-more').removeClass('new default sale discount').addClass('discount');
... ...