help-index.page.js 1 KB
/**
 * [帮助中心首页]
 * @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,
                clear: 'both'
            });
        }
    });

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

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

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