...
|
...
|
@@ -748,24 +748,6 @@ coupon = { |
|
|
that.$couponUsableWrap.addClass('hide');
|
|
|
that.$couponUnusableWrap.removeClass('hide');
|
|
|
}
|
|
|
}).on('click', '.type-item', function() {
|
|
|
var $this = $(this);
|
|
|
|
|
|
if ($this.hasClass('active')) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
$this.siblings('.active').removeClass('active');
|
|
|
$this.addClass('active');
|
|
|
|
|
|
that.chooseType = $this.data('type');
|
|
|
|
|
|
if (that.chooseType) {
|
|
|
$('.type-content', this.$couponWrap).hide();
|
|
|
$('.type-content.list-' + that.chooseType, this.$couponWrap).show();
|
|
|
} else {
|
|
|
$('.type-content', this.$couponWrap).show();
|
|
|
}
|
|
|
}).on('keyup', '.coupon-code', function() {
|
|
|
var val = $.trim($(this).val());
|
|
|
|
...
|
...
|
|