customer.js
601 Bytes
/**
* 客服中心控制器
* @author: bikai(kai.bi@yoho.cn)
* @date: 2015/9/24
*/
var data = require('../../public/js/data/customer'),
question = require('../../public/js/data/question-list'),
layoutPath = '../layouts/layout';
// 客服中心
exports.service = function(req, res) {
res.render('pages/customer', {
data: data,
layout: layoutPath,
module: 'customer'
});
};
// 客服中心
exports.list = function(req, res) {
res.render('pages/question-list', {
data: question,
layout: layoutPath,
module: 'customer'
});
};