...
|
...
|
@@ -29,11 +29,14 @@ const component = { |
|
|
const result = {
|
|
|
module: 'home',
|
|
|
page: 'index',
|
|
|
noLocalJS: true,
|
|
|
noLocalCSS: true,
|
|
|
head_ico: proData && proData.head_ico ? helpers.image(proData.head_ico, 200, 200) : '',
|
|
|
profile_name: proData ? proData.profile_name : '登录/注册',
|
|
|
userinfourl: proData ? '/home/mydetails' : helpers.urlFormat('/signin.html', {
|
|
|
refer: req.originalUrl
|
|
|
}),
|
|
|
serviceUrl: 'http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409&'
|
|
|
};
|
|
|
|
|
|
res.render('index', _.merge(result, data[1]));
|
...
|
...
|
@@ -60,6 +63,8 @@ const component = { |
|
|
res.render('help', {
|
|
|
module: 'home',
|
|
|
page: 'help',
|
|
|
noLocalJS: true,
|
|
|
noLocalCSS: true,
|
|
|
helpList: helpList
|
|
|
});
|
|
|
}).catch(next);
|
...
|
...
|
@@ -74,16 +79,19 @@ const component = { |
|
|
res.render('help-detail', {
|
|
|
module: 'home',
|
|
|
page: 'help',
|
|
|
noLocalJS: true,
|
|
|
noLocalCSS: true,
|
|
|
helpDetail: helpDetail
|
|
|
});
|
|
|
}).catch(next);
|
|
|
},
|
|
|
feedback: (req, res, next) => {
|
|
|
feedback: (req, res) => {
|
|
|
res.render('feedback', {
|
|
|
module: 'home',
|
|
|
page: 'feedback',
|
|
|
suggestSub: true,
|
|
|
}).catch(next);
|
|
|
noLocalCSS: true
|
|
|
})
|
|
|
},
|
|
|
saveFeedback: (req, res, next) => {
|
|
|
let saveFeedbackPara = {
|
...
|
...
|
@@ -123,7 +131,9 @@ const component = { |
|
|
about: (req, res) => {
|
|
|
res.render('about', {
|
|
|
module: 'home',
|
|
|
page: 'index'
|
|
|
page: 'index',
|
|
|
noLocalJS: true,
|
|
|
noLocalCSS: true
|
|
|
});
|
|
|
}
|
|
|
};
|
...
|
...
|
|