help.js
1.36 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
/**
* 帮助中心
* @author: shenzm<zhimin.shen@yoho.cn>
* @date: 2016/08/02
*/
'use strict';
/**
* 帮助中心
*/
const component = {
index: (req, res) => {
res.render('help', {
module: 'me',
page: 'help',
noLocalJS: true,
noLocalCSS: true,
helpList: [{
caption: '1',
name: '购物流程'
}, {
caption: '2',
name: '配送时间与范围'
}, {
caption: '3',
name: '商品验收与签收'
}, {
caption: '4',
name: '投诉与建议'
}, {
caption: '5',
name: '退换货流程'
}, {
caption: '6',
name: '退换货政策'
}, {
caption: '7',
name: '支付方式'
}, {
caption: '8',
name: '隐私条款'
}]
});
},
helpDetail: (req, res) => {
const caption = req.query.caption;
const data = {
module: 'me',
page: 'help',
noLocalJS: true,
noLocalCSS: true
};
data['helpDetail_' + caption] = true;
res.render('helpDetail', data);
}
};
module.exports = component;