...
|
...
|
@@ -18,7 +18,8 @@ class ConponController extends Page { |
|
|
couponSection: $('.coupon-section'),
|
|
|
noConponNow: $('.no-conpon-now'),
|
|
|
exchangeCouponBtn: $('#exchangeCouponBtn'),
|
|
|
couponCodeInput: $('input[name=couponCodeInput]')
|
|
|
couponCodeInput: $('input[name=couponCodeInput]'),
|
|
|
usedTip: $('.used-tip')
|
|
|
};
|
|
|
|
|
|
this.view.filterBtn.on('click', this.tabChange.bind(this));
|
...
|
...
|
@@ -180,10 +181,18 @@ class ConponController extends Page { |
|
|
// 筛选参数更改
|
|
|
if (itemClicked.hasClass('no-used')) {
|
|
|
this.couponType = 'notuse';
|
|
|
this.view.usedTip.addClass('hide');
|
|
|
this.view.usedTip.find('span').addClass('hide');
|
|
|
} else if (itemClicked.hasClass('used')) {
|
|
|
this.couponType = 'use';
|
|
|
this.view.usedTip.removeClass('hide');
|
|
|
this.view.usedTip.find('.used').removeClass('hide');
|
|
|
this.view.usedTip.find('.invalid').addClass('hide');
|
|
|
} else if (itemClicked.hasClass('invalid')) {
|
|
|
this.couponType = 'overtime';
|
|
|
this.view.usedTip.removeClass('hide');
|
|
|
this.view.usedTip.find('.invalid').removeClass('hide');
|
|
|
this.view.usedTip.find('.used').addClass('hide');
|
|
|
} else {
|
|
|
tip.show('未知券类型');
|
|
|
}
|
...
|
...
|
|