Authored by yyq

local css

@@ -13,7 +13,8 @@ exports.list = (req, res, next) => { @@ -13,7 +13,8 @@ exports.list = (req, res, next) => {
13 navTitle: '调研中心' 13 navTitle: '调研中心'
14 }), 14 }),
15 list: result, 15 list: result,
16 - isApp: req.yoho.isApp 16 + isApp: req.yoho.isApp,
  17 + localCss: true
17 }); 18 });
18 }).catch(next); 19 }).catch(next);
19 }; 20 };
@@ -53,7 +54,7 @@ exports.detail = (req, res, next) => { @@ -53,7 +54,7 @@ exports.detail = (req, res, next) => {
53 let id = parseInt(`0${req.params.id}`, 10); 54 let id = parseInt(`0${req.params.id}`, 10);
54 55
55 req.ctx(questionModel).getQuestionDetail(id, req.user.uid).then(result => { 56 req.ctx(questionModel).getQuestionDetail(id, req.user.uid).then(result => {
56 - if (result) { 57 + if (result && req.yoho.isApp) {
57 result.uid = req.user.uid; 58 result.uid = req.user.uid;
58 } 59 }
59 60
@@ -65,7 +66,8 @@ exports.detail = (req, res, next) => { @@ -65,7 +66,8 @@ exports.detail = (req, res, next) => {
65 navTitle: 'YOHOBUY!潮流大调查' 66 navTitle: 'YOHOBUY!潮流大调查'
66 }), 67 }),
67 detail: result, 68 detail: result,
68 - isApp: req.yoho.isApp 69 + isApp: req.yoho.isApp,
  70 + localCss: true
69 }); 71 });
70 }).catch(next); 72 }).catch(next);
71 }; 73 };
@@ -68,7 +68,12 @@ module.exports = class extends global.yoho.BaseModel { @@ -68,7 +68,12 @@ module.exports = class extends global.yoho.BaseModel {
68 return this.post({ 68 return this.post({
69 url: '/activity/question/submitQuestions', 69 url: '/activity/question/submitQuestions',
70 data: info, 70 data: info,
71 - api: global.yoho.ServiceAPI 71 + api: global.yoho.ServiceAPI,
  72 + param: {
  73 + headers: {
  74 + 'Content-Type': 'application/json;charset=UTF-8'
  75 + }
  76 + }
72 }); 77 });
73 } 78 }
74 }; 79 };