Authored by 郭成尧

'isLogin'

@@ -19,10 +19,9 @@ exports.index = (req, res, next) => { @@ -19,10 +19,9 @@ exports.index = (req, res, next) => {
19 }); 19 });
20 20
21 indexModel.index(params).then(result => { 21 indexModel.index(params).then(result => {
22 - result.isLogin = true;  
23 -  
24 if (result) { 22 if (result) {
25 res.render('index', Object.assign(result, { 23 res.render('index', Object.assign(result, {
  24 + isLogin: params.uid ? true : false,
26 module: 'home', 25 module: 'home',
27 page: 'index', 26 page: 'index',
28 title: 'Yoho!Buy 有货', 27 title: 'Yoho!Buy 有货',