shop-list.page.js 700 Bytes
/**
 * 店铺、品牌列表页
 * @author: jiangfeng<jeff.jiang@yoho.cn>
 */

var Dialog = require('../plugins/dialog').Dialog;

var Shop = {
    init: function() {
        require('./list/list-search');
        require('./list/favorite');

        $('#brand-info').click(function() {
            Shop.brandInfoDialog().show();
            $('.brand-info').addClass('nano');
            $('.brand-info').nanoScroller();
        });
    },

    brandInfoDialog: function() {
        var infoDaialog = new Dialog({
            className: 'brand-info-dialog',
            content: $('.brand-info-wrapper').html(),
            keep: false
        });

        return infoDaialog;
    }
};

Shop.init();