Authored by 郭成尧

frontend-frame

<div class="yoho-page select-giftcard-page">
</div>
\ No newline at end of file
... ...
require('cart/select-giftcard.page.css');
import $ from 'yoho-jquery';
import SelectGiftCard from './cartbuynow/select-giftcard';
import order from 'cart/buynow/order-info';
$(() => {
new SelectGiftCard(order);
});
... ...
import $ from 'yoho-jquery';
import Page from 'yoho-page';
class SelectGiftCard extends Page {
constructor(order) {
super();
this.order = order;
this.orderInfo = order.orderInfo;
this.selector = {
rule: $('#rule')
};
this.init();
}
init() {
console.log('init');
}
bindEvents() {
console.log('bindEvents');
}
}
export default SelectGiftCard;
... ...
require('cart/select-giftcard.page.css');
import $ from 'yoho-jquery';
import SelectGiftCard from './cartbuynow/select-giftcard';
import order from 'cart/order-info';
$(() => {
new SelectGiftCard(order);
});
... ...