help-index.page.js 936 Bytes
/**
 * [帮助中心首页]
 * @author: wsl(shuiling.wang@yoho.cn)
 * @date: 2016/12/01
 */
var helpSearch = require('./help-search');
var problemBox = require('./problem-box');
var Scroller = require('./scroller');

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


$(function() {
    helpSearch.init();
    problemBox();

    $('.help-nav li').each(function(key, item) {
        if (key % 3 === 0) {
            $(item).css({
                marginLeft: 0
            });
        }
    });

    $('.new-guide li').each(function(key, item) {
        if (key % 5 === 0) {
            $(item).css({
                marginLeft: 0
            });
        }
    });

    $('.self-service li').each(function(key, item) {
        if (key % 6 === 0) {
            $(item).css({
                marginLeft: 0
            });
        }
    });

    setTimeout(function() {
        new Scroller('notice', 30, 5);
    }, 5000);
});