...
|
...
|
@@ -13,6 +13,7 @@ class SelectCouponController extends Page { |
|
|
this.useCouponCodeUrl = params.useCouponCodeUrl;
|
|
|
this.selectCouponCodes = [];
|
|
|
this.isBuyNowPage = params.isBuyNowPage || false;
|
|
|
this.closeTipbyUser = false;
|
|
|
|
|
|
if (this.orderInfo('coupon_code')) {
|
|
|
this.selectCouponCodes = this.orderInfo('coupon_code').split(',');
|
...
|
...
|
@@ -152,6 +153,12 @@ class SelectCouponController extends Page { |
|
|
this.view.unusableCouponList.removeClass('hide');
|
|
|
this.view.exchangeBox.addClass('hide');
|
|
|
}
|
|
|
|
|
|
if (itemClicked.data('num') === 0) {
|
|
|
this.view.tipBox.addClass('hide');
|
|
|
} else if (!this.closeTipbyUser) {
|
|
|
this.view.tipBox.removeClass('hide');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -179,6 +186,7 @@ class SelectCouponController extends Page { |
|
|
* 关闭提示框
|
|
|
*/
|
|
|
closeTip() {
|
|
|
this.closeTipbyUser = true;
|
|
|
this.view.tipBox.hide();
|
|
|
}
|
|
|
}
|
...
|
...
|
|