Authored by yyq

local css

... ... @@ -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);
};
... ...
... ... @@ -68,7 +68,12 @@ module.exports = class extends global.yoho.BaseModel {
return this.post({
url: '/activity/question/submitQuestions',
data: info,
api: global.yoho.ServiceAPI
api: global.yoho.ServiceAPI,
param: {
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
}
});
}
};
... ...