exports.courses = function(req, res) {? ? uId = req.params.uId;? ? user = {? ? ? ? id: uId,? ? ? ? name: '陳磊'? ? };? ? var type= 'courses';? ? res.render('u/courses', { user: user, type: type });};exports.plans = function(req, res) {? ? var list = [{? ? program_id: 32,? ? program_title: 'Web前端工程師',? ? program_label: ['前端', '求職', '實(shí)戰(zhàn)'],? ? program_cur_course: 95? ? }];? ? var type= 'plans';? ? res.render('u/plans', { list: list, type: type});};exports.bbs = function(req, res) {? ? var type= 'bbs';? ? res.render('u/bbs', { title: 'Users', type: type });};exports.articles = function(req, res) {? ? var type= 'articles';? ? res.render('u/articles', { title: 'Users', type: type });};exports.wiki = function(req, res) {? ? var type= 'wiki';? ? var list = [{? ? ? ? program_id: 47,? ? ? ? program_status: '審核中',? ? ? ? program_bd: 'html',? ? ? ? program_title_detail: 'html詞條',? ? ? ? program_pass_time: '20分鐘'? ? }];? ? res.render('u/wiki', { list: list, type: type });};exports.notices = function(req, res) {? ? uId = req.params.uId;? ? user = {? ? ? ? id: uId,? ? ? ? name: 'admin'? ? };? ? var list = [{? ? ? ? notices_author:'admin',? ? ? ? notices_content:'通知內(nèi)容',? ? ? ? notices_time:'2016-03-29'? ? },{? ? ? ? notices_author:'admin',? ? ? ? notices_content:'通知內(nèi)容',? ? ? ? notices_time:'2016-03-29'? ? },{? ? ? ? notices_author:'admin',? ? ? ? notices_content:'通知內(nèi)容',? ? ? ? notices_time:'2016-03-29'? ? }];? ? var type= 'notices';? ? res.render('u/notices', { user: user, type: type ,list: list});};exports.messages = function(req, res) {? ? uId = req.params.uId;? ? user = {? ? ? ? id: uId,? ? ? ? name: 'admin'? ? };? ? var type= 'msg';? ? res.render('u/messages',{ user: user, type: type });}
Default Templates
qq_李邵逸馬_03116231
2016-03-29 16:58:48