Authored by lijing

逛列表顺序显示问题

... ... @@ -87,7 +87,7 @@ const pageData = (req, res, next) => {
authorId = req.query.authorId,
isApp = req.yoho.isApp || false,
isTab = req.query.isTab || false,
showAuthor = true;
showAuthor = false;
let uid = req.user.uid,
udid = req.sessionID;
... ... @@ -101,7 +101,7 @@ const pageData = (req, res, next) => {
return;
}
if (!authorId && isNaN(authorId)) {
showAuthor = false;
showAuthor = true;
}
return indexModel.getPageData(gender, sortId, uid, udid, page, tag, authorId, isApp, showAuthor, isTab).then(data => {
if (data) {
... ...
... ... @@ -123,8 +123,9 @@ const getPageData = (gender, sortId, uid, udid, page, tag, authorId, isApp, show
let artList = article.data.list.artList;
artList.forEach(art => {
// build.push(guangProcess.formatArticle(art, true, isApp, showAuthor, uid));
build.push(guangProcess.formatArticle(art, true, isApp, true, uid));
build.push(guangProcess.formatArticle(art, true, isApp, showAuthor, uid));
// build.push(guangProcess.formatArticle(art, true, isApp, true, uid));
});
result.infos = build;
return result;
... ...