Authored by lijing

逛列表顺序显示问题

@@ -87,7 +87,7 @@ const pageData = (req, res, next) => { @@ -87,7 +87,7 @@ const pageData = (req, res, next) => {
87 authorId = req.query.authorId, 87 authorId = req.query.authorId,
88 isApp = req.yoho.isApp || false, 88 isApp = req.yoho.isApp || false,
89 isTab = req.query.isTab || false, 89 isTab = req.query.isTab || false,
90 - showAuthor = true; 90 + showAuthor = false;
91 91
92 let uid = req.user.uid, 92 let uid = req.user.uid,
93 udid = req.sessionID; 93 udid = req.sessionID;
@@ -101,7 +101,7 @@ const pageData = (req, res, next) => { @@ -101,7 +101,7 @@ const pageData = (req, res, next) => {
101 return; 101 return;
102 } 102 }
103 if (!authorId && isNaN(authorId)) { 103 if (!authorId && isNaN(authorId)) {
104 - showAuthor = false; 104 + showAuthor = true;
105 } 105 }
106 return indexModel.getPageData(gender, sortId, uid, udid, page, tag, authorId, isApp, showAuthor, isTab).then(data => { 106 return indexModel.getPageData(gender, sortId, uid, udid, page, tag, authorId, isApp, showAuthor, isTab).then(data => {
107 if (data) { 107 if (data) {
@@ -123,8 +123,9 @@ const getPageData = (gender, sortId, uid, udid, page, tag, authorId, isApp, show @@ -123,8 +123,9 @@ const getPageData = (gender, sortId, uid, udid, page, tag, authorId, isApp, show
123 let artList = article.data.list.artList; 123 let artList = article.data.list.artList;
124 124
125 artList.forEach(art => { 125 artList.forEach(art => {
126 - // build.push(guangProcess.formatArticle(art, true, isApp, showAuthor, uid));  
127 - build.push(guangProcess.formatArticle(art, true, isApp, true, uid)); 126 + build.push(guangProcess.formatArticle(art, true, isApp, showAuthor, uid));
  127 +
  128 + // build.push(guangProcess.formatArticle(art, true, isApp, true, uid));
128 }); 129 });
129 result.infos = build; 130 result.infos = build;
130 return result; 131 return result;