Blame view

public/js/cart/index/precell-dia.js 806 Bytes
李靖 authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
import $ from 'yoho-jquery';
import Page from 'yoho-page';
import dialog from 'plugin/dialog';

class PrecellDia extends Page {
    constructor() {
        super();
        this.selector = {
            $precellDia: $('.precell-dia')
        };
        this.init();
    }

    init() {
        this.bindEvents();
    }

    bindEvents() {
        $(document).on('click', '.precell-dia', this.precellDia.bind(this));
    }

    precellDia() {
        dialog.showDialog({
郭成尧 authored
24
            dialogText: '由于商品上市期不同,同笔订单商品需同时发货,预售商品不参加活动,不可使用优惠券。',
李靖 authored
25 26 27 28 29 30 31 32 33 34 35 36
            fast: true,
            hasFooter: {
                centerBtnText: '我知道了'
            }
        });
        return false;
    }
}

$(() => {
    new PrecellDia();
});