...
|
...
|
@@ -144,6 +144,7 @@ class SelectCouponController extends Page { |
|
|
tabChange(event) {
|
|
|
let itemClicked = $(event.currentTarget);
|
|
|
|
|
|
// Tab 按钮状态
|
|
|
if (itemClicked.hasClass('active')) {
|
|
|
itemClicked.removeClass('active');
|
|
|
} else {
|
...
|
...
|
@@ -151,11 +152,17 @@ class SelectCouponController extends Page { |
|
|
itemClicked.addClass('active');
|
|
|
}
|
|
|
|
|
|
// 优惠券列表切换,兑换模块、立即使用模块显示控制
|
|
|
if (itemClicked.hasClass('valid')) {
|
|
|
this.view.unusableCouponList.addClass('hide');
|
|
|
this.view.usableCouponList.removeClass('hide');
|
|
|
this.view.exchangeBox.removeClass('hide');
|
|
|
this.view.useNowBox.removeClass('hide');
|
|
|
|
|
|
if (itemClicked.data('num') === 0) {
|
|
|
this.view.useNowBox.addClass('hide');
|
|
|
} else {
|
|
|
this.view.useNowBox.removeClass('hide');
|
|
|
}
|
|
|
} else {
|
|
|
this.view.usableCouponList.addClass('hide');
|
|
|
this.view.unusableCouponList.removeClass('hide');
|
...
|
...
|
@@ -163,6 +170,7 @@ class SelectCouponController extends Page { |
|
|
this.view.useNowBox.addClass('hide');
|
|
|
}
|
|
|
|
|
|
// Tip 控制
|
|
|
if (this.closeCouponRuleTipbyUser === 'Y') {
|
|
|
this.view.tipBox.addClass('hide');
|
|
|
} else {
|
...
|
...
|
|