Authored by lijing

逛列表顺序显示问题

@@ -60,7 +60,7 @@ const editor = (req, res, next) => { @@ -60,7 +60,7 @@ const editor = (req, res, next) => {
60 } else { 60 } else {
61 return next(); 61 return next();
62 } 62 }
63 - 63 +
64 }).catch(next); 64 }).catch(next);
65 65
66 }; 66 };
@@ -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) {
@@ -178,7 +178,7 @@ const tag = (req, res, next) => { @@ -178,7 +178,7 @@ const tag = (req, res, next) => {
178 178
179 }; 179 };
180 180
181 - 181 +
182 responseData.pageHeader.navTitle = param.tag || '标签'; 182 responseData.pageHeader.navTitle = param.tag || '标签';
183 183
184 184
@@ -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;