help-index.page.js
936 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/**
* [帮助中心首页]
* @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);
});