Authored by 郭成尧

frontend-frame

  1 +<div class="yoho-page select-giftcard-page">
  2 +</div>
  1 +require('cart/select-giftcard.page.css');
  2 +import $ from 'yoho-jquery';
  3 +import SelectGiftCard from './cartbuynow/select-giftcard';
  4 +import order from 'cart/buynow/order-info';
1 5
  6 +$(() => {
  7 + new SelectGiftCard(order);
  8 +});
  1 +import $ from 'yoho-jquery';
  2 +import Page from 'yoho-page';
  3 +
  4 +class SelectGiftCard extends Page {
  5 + constructor(order) {
  6 + super();
  7 + this.order = order;
  8 + this.orderInfo = order.orderInfo;
  9 +
  10 + this.selector = {
  11 + rule: $('#rule')
  12 + };
  13 + this.init();
  14 + }
  15 +
  16 + init() {
  17 + console.log('init');
  18 + }
  19 +
  20 + bindEvents() {
  21 + console.log('bindEvents');
  22 + }
  23 +}
  24 +
  25 +export default SelectGiftCard;
  1 +require('cart/select-giftcard.page.css');
  2 +import $ from 'yoho-jquery';
  3 +import SelectGiftCard from './cartbuynow/select-giftcard';
  4 +import order from 'cart/order-info';
  5 +
  6 +$(() => {
  7 + new SelectGiftCard(order);
  8 +});