Authored by 郭成尧

ui-modified

@@ -65,7 +65,8 @@ class SelectCouponController extends Page { @@ -65,7 +65,8 @@ class SelectCouponController extends Page {
65 unusableCouponList: resultHtml.find('.unusable'), 65 unusableCouponList: resultHtml.find('.unusable'),
66 useNowBtn: resultHtml.find('#useNowBtn'), 66 useNowBtn: resultHtml.find('#useNowBtn'),
67 exchangeCouponBtn: resultHtml.find('#exchangeCouponBtn'), 67 exchangeCouponBtn: resultHtml.find('#exchangeCouponBtn'),
68 - couponCodeInput: resultHtml.find('input[name=couponCodeInput]') 68 + couponCodeInput: resultHtml.find('input[name=couponCodeInput]'),
  69 + exchangeBox: resultHtml.find('.exchange-box')
69 }; 70 };
70 71
71 this.view.filterBtn.on('click', this.tabChange.bind(this)); 72 this.view.filterBtn.on('click', this.tabChange.bind(this));
@@ -145,9 +146,11 @@ class SelectCouponController extends Page { @@ -145,9 +146,11 @@ class SelectCouponController extends Page {
145 if (itemClicked.hasClass('valid')) { 146 if (itemClicked.hasClass('valid')) {
146 this.view.unusableCouponList.addClass('hide'); 147 this.view.unusableCouponList.addClass('hide');
147 this.view.usableCouponList.removeClass('hide'); 148 this.view.usableCouponList.removeClass('hide');
  149 + this.view.exchangeBox.removeClass('hide');
148 } else { 150 } else {
149 this.view.usableCouponList.addClass('hide'); 151 this.view.usableCouponList.addClass('hide');
150 this.view.unusableCouponList.removeClass('hide'); 152 this.view.unusableCouponList.removeClass('hide');
  153 + this.view.exchangeBox.addClass('hide');
151 } 154 }
152 } 155 }
153 156