...
|
...
|
@@ -13,7 +13,8 @@ exports.list = (req, res, next) => { |
|
|
navTitle: '调研中心'
|
|
|
}),
|
|
|
list: result,
|
|
|
isApp: req.yoho.isApp
|
|
|
isApp: req.yoho.isApp,
|
|
|
localCss: true
|
|
|
});
|
|
|
}).catch(next);
|
|
|
};
|
...
|
...
|
@@ -53,7 +54,7 @@ exports.detail = (req, res, next) => { |
|
|
let id = parseInt(`0${req.params.id}`, 10);
|
|
|
|
|
|
req.ctx(questionModel).getQuestionDetail(id, req.user.uid).then(result => {
|
|
|
if (result) {
|
|
|
if (result && req.yoho.isApp) {
|
|
|
result.uid = req.user.uid;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -65,7 +66,8 @@ exports.detail = (req, res, next) => { |
|
|
navTitle: 'YOHOBUY!潮流大调查'
|
|
|
}),
|
|
|
detail: result,
|
|
|
isApp: req.yoho.isApp
|
|
|
isApp: req.yoho.isApp,
|
|
|
localCss: true
|
|
|
});
|
|
|
}).catch(next);
|
|
|
}; |
...
|
...
|
|