...
|
...
|
@@ -14,7 +14,9 @@ class OrderEnsure extends Page { |
|
|
invoice: $('.invoice'),
|
|
|
invoiceType: $('.invoice-type'),
|
|
|
userMobile: $('.user-mobile'),
|
|
|
couponHelp: $('.coupon-help')
|
|
|
couponHelp: $('.coupon-help'),
|
|
|
conponDialogWrapper: $('#conponDialogWrapper'),
|
|
|
conponDialogCancel: $('#conponDialogCancel')
|
|
|
};
|
|
|
|
|
|
this.init();
|
...
|
...
|
@@ -31,22 +33,25 @@ class OrderEnsure extends Page { |
|
|
bindEvents() {
|
|
|
this.selector.invoice.on('click', '.checkbox', this.needInvoice.bind(this));
|
|
|
this.selector.couponHelp.on('click', this.showCouponHelp.bind(this));
|
|
|
this.selector.conponDialogCancel.on('click', this.cancelCouponHelp.bind(this));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 优惠券帮助弹窗
|
|
|
* 展示优惠券帮助弹窗
|
|
|
*/
|
|
|
showCouponHelp(e) {
|
|
|
dialog.showDialog({
|
|
|
hasHeader: '优惠券使用规则',
|
|
|
dialogText: `<p>1.店铺券、活动券、运费券可叠加使用,叠加时优先抵用店铺券;</p>
|
|
|
<p>2.不同店铺的店铺券可以叠加使用,同店铺的店铺券不可叠加使用。</p>`,
|
|
|
hasFooter: {
|
|
|
centerBtnText: '我知道了'
|
|
|
}
|
|
|
});
|
|
|
this.selector.conponDialogWrapper.show();
|
|
|
e.preventDefault();
|
|
|
e.stopPropagation();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 关闭优惠券帮助弹窗
|
|
|
*/
|
|
|
cancelCouponHelp(e) {
|
|
|
this.selector.conponDialogWrapper.hide();
|
|
|
e.preventDefault();
|
|
|
e.stopPropagation();
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|