...
|
...
|
@@ -32,7 +32,17 @@ class SelectGiftCard extends Page { |
|
|
* 使用礼品卡
|
|
|
*/
|
|
|
useGiftCard() {
|
|
|
console.log('ok');
|
|
|
let selectedGiftCards = [];
|
|
|
|
|
|
this.selector.giftcard.each((index, elem) => {
|
|
|
let theElem = $(elem);
|
|
|
|
|
|
if (theElem.hasClass('checked')) {
|
|
|
selectedGiftCards.push(theElem.data('code'));
|
|
|
}
|
|
|
});
|
|
|
|
|
|
this.orderInfo('gift_card_code', selectedGiftCards.join(','));
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|