...
|
...
|
@@ -65,7 +65,8 @@ class SelectCouponController extends Page { |
|
|
unusableCouponList: resultHtml.find('.unusable'),
|
|
|
useNowBtn: resultHtml.find('#useNowBtn'),
|
|
|
exchangeCouponBtn: resultHtml.find('#exchangeCouponBtn'),
|
|
|
couponCodeInput: resultHtml.find('input[name=couponCodeInput]')
|
|
|
couponCodeInput: resultHtml.find('input[name=couponCodeInput]'),
|
|
|
exchangeBox: resultHtml.find('.exchange-box')
|
|
|
};
|
|
|
|
|
|
this.view.filterBtn.on('click', this.tabChange.bind(this));
|
...
|
...
|
@@ -145,9 +146,11 @@ class SelectCouponController extends Page { |
|
|
if (itemClicked.hasClass('valid')) {
|
|
|
this.view.unusableCouponList.addClass('hide');
|
|
|
this.view.usableCouponList.removeClass('hide');
|
|
|
this.view.exchangeBox.removeClass('hide');
|
|
|
} else {
|
|
|
this.view.usableCouponList.addClass('hide');
|
|
|
this.view.unusableCouponList.removeClass('hide');
|
|
|
this.view.exchangeBox.addClass('hide');
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|