home.page.js 509 Bytes
/**
 * 频道页
 * @author: 赵彪<bill.zhao@yoho.cn>
 * @date: 2016/6/24
 */

var lazyLoad = require('yoho-jquery-lazyload');

require('../common/header');
require('../common/return-top');
require('../plugins/slider');

lazyLoad($('img.lazy-img'));

$('.slide-container').slider();

$('.card').mouseenter(function() {
    var $this = $(this); // eslint-disable-line

    if ($this.hasClass('active')) {
        return false;
    }

    $('.active').removeClass('active');
    $this.addClass('active');
});