me.js 878 Bytes
/**
 * 个人中心布局
 * @author: xuqi<qi.xu@yoho.cn>
 * @date: 2016/07/04
 */

var $ = require('yoho-jquery'),
    lazyLoad = require('yoho-jquery-lazyload');
var $st = $('.service-top');

function reposServiceTop() {
    if ($(window).width() < 1380) {
        $st.addClass('for-min');
    } else {
        $st.removeClass('for-min');
    }
}

$('.blk-footer .return-top').remove(); // 移除通用的返回顶部组件

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

// 左侧banner图片lazyload
lazyLoad($('.banner-img'));

// 浮动在线客服和返回顶部的鼠标移入移出切换效果
function toggleShow(e) {
    $(e.target).find('span').toggleClass('hide');
}

$('.service, .return-top').hover(toggleShow, toggleShow);

// repos service-return when window resize
$(window).resize(reposServiceTop);

reposServiceTop();