...
|
...
|
@@ -11,7 +11,8 @@ class SelectGiftCard extends Page { |
|
|
rule: $('#rule'),
|
|
|
page: $('.select-giftcard-page'),
|
|
|
giftcard: $('.giftcard'),
|
|
|
useGiftCardBtn: $('#useGiftCardBtn')
|
|
|
useGiftCardBtn: $('#useGiftCardBtn'),
|
|
|
noGiftCardBtn: $('#noGiftCardBtn')
|
|
|
};
|
|
|
this.init();
|
|
|
this.bindEvents();
|
...
|
...
|
@@ -27,6 +28,7 @@ class SelectGiftCard extends Page { |
|
|
bindEvents() {
|
|
|
this.selector.giftcard.on('click', '.checkbox', this.checkboxClickHandle.bind(this));
|
|
|
this.selector.useGiftCardBtn.on('click', this.useGiftCard.bind(this));
|
|
|
this.selector.noGiftCardBtn.on('click', this.noGiftCard.bind(this));
|
|
|
}
|
|
|
|
|
|
goToBack() {
|
...
|
...
|
@@ -56,6 +58,14 @@ class SelectGiftCard extends Page { |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 不使用礼品卡
|
|
|
*/
|
|
|
noGiftCard() {
|
|
|
this.orderInfo('gift_card_code', null);
|
|
|
this.goToBack();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 改变 使用 按钮状态
|
|
|
*/
|
|
|
changeUseBtnStatus() {
|
...
|
...
|
|