...
|
...
|
@@ -24,12 +24,35 @@ const getOnlineServiceInfo = (req, res, next) => { |
|
|
}),
|
|
|
title: '在线客服',
|
|
|
pageFooter: true,
|
|
|
service: result
|
|
|
service: result,
|
|
|
serviceUrl: 'http://chat80.live800.com/live800/chatClient/chatbox.jsp?companyID=493979&configID=123576&jid=9277320930'
|
|
|
});
|
|
|
}).catch(next);
|
|
|
};
|
|
|
|
|
|
const getOnlineServiceDetail = (req, res, next) => {
|
|
|
let cateId = parseInt(req.query.cateInfo, 10);
|
|
|
let title = req.query.cateInfo.substring(req.query.cateInfo.indexOf('_') + 1);
|
|
|
|
|
|
onlineModel.getOnlineServiceDetail(cateId).then((result) => {
|
|
|
|
|
|
res.render('online-service-detail', {
|
|
|
module: 'home',
|
|
|
page: 'online-service',
|
|
|
pageHeader: _.assign(headerModel.setNav({
|
|
|
navTitle: title
|
|
|
}), {
|
|
|
navBtn: false
|
|
|
}),
|
|
|
title: title,
|
|
|
pageFooter: true,
|
|
|
service: result
|
|
|
});
|
|
|
}).catch(next);
|
|
|
};
|
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
getOnlineServiceInfo
|
|
|
getOnlineServiceInfo,
|
|
|
getOnlineServiceDetail
|
|
|
}; |
...
|
...
|
|