把之前版本的routes全部重写,增加了wap版,修改了bootstrap,优化了许多交互细节,增加了日记本功能,丰富了个人设置等功能。
有想交流经验的,找bug的。。。开喷…。
前端用nginx判断的ua,分流到不同的版本,额,ie只支持到wap版~
首页: 个人页:
在yahoo.cn邮箱点击活邮件时出现以下错误:
Express 500 ReferenceError: /home/tuer2.0/views/wap/common/header.jade:4 2| title 兔耳日记 | #{title} 3| link(rel="stylesheet",href="http://#{config.csshost}/style/css/m.css",type="text/css",media="screen",charset="utf-8") > 4| config is not defined 2| title 兔耳日记 | #{title} 3| link(rel="stylesheet",href="http://#{config.csshost}/style/css/m.css",type="text/css",media="screen",charset="utf-8")
4|
config is not defined at eval (eval at (/home/tuer2.0/node_modules/jade/lib/jade.js:176:8)) at Object.exports.compile (/home/tuer2.0/node_modules/jade/lib/jade.js:181:12) at ServerResponse.res._render (/home/tuer2.0/node_modules/express/lib/view.js:425:21) at ServerResponse.res.render (/home/tuer2.0/node_modules/express/lib/view.js:318:17) at exports.active.render (/home/tuer2.0/routes/wap/register.js:89:8) at EventProxy.trigger (/home/tuer2.0/node_modules/eventproxy/eventproxy.js:112:34) at EventProxy.immediate (/home/tuer2.0/node_modules/eventproxy/eventproxy.js:145:14) at exports.active (/home/tuer2.0/routes/wap/register.js:108:28) at tuerBase.findOne (/home/tuer2.0/model/base.js:235:10) at Collection.findOne (/home/tuer2.0/node_modules/mongodb/lib/mongodb/collection.js:952:34)