Authored by zhangxiaoru

editorial

... ... @@ -21,15 +21,15 @@ const index = (req, res, next) => {
if (channel === 'women') {
contentCode = '527079e6c46d0f125eb46b835968971b';
name = 'WOMEN首页';
link = 'http://www.yohoblk.com';
link = 'http://www.yohoblk.com/women';
} else if (channel === 'lifestyle') {
contentCode = '94b5ed607b6d565ffc29c2c04be121dc';
name = 'LIFT STYLE首页';
link = 'http://www.yohoblk.com/women';
link = 'http://www.yohoblk.com/lifestyle';
} else {
contentCode = '81886aaa5e82e3741bc1ba1e04ec7706';
name = 'MEN首页';
link = 'http://www.yohoblk.com/lifestyle';
link = 'http://www.yohoblk.com';
}
let appType = 1;
... ...
... ... @@ -124,7 +124,7 @@ const list = (req, res) => {
},
{
pathTitle: '资讯',
name: req.query.query
name: req.query.query || result.authorName
}
],
pathTitle: req.query.query || result.authorName,
... ...
... ... @@ -151,7 +151,6 @@ const _processHeadData = (list) => {
_.forEach(list, function(data, index) {
if (index === 0) {
data.isPraise = data.isPraise === 'Y';
data.isFavor = data.isFavor === 'Y';
... ... @@ -340,13 +339,19 @@ const _processContentData = (list) => {
* @param id
* @returns {*}
*/
const _getHeadData = (id, uid, udid, appType) => {
return serviceAPI.get('/guang/api/*/article/getArticleBaseInfo', {
let par = {
id: id,
uid: uid,
udid: udid,
app_type: appType
}).then((result) => {
};
if (uid) {
par.uid = uid;
}
return serviceAPI.get('/guang/api/*/article/getArticleBaseInfo', par).then((result) => {
if (result && result.code === 200) {
return result.data;
} else {
... ...
... ... @@ -202,7 +202,7 @@
}
.brands {
width: 950px;
width: 960px;
padding: 30px 0 30px 30px;
overflow: hidden;
... ... @@ -242,6 +242,10 @@
}
}
.brand:nth-child(7n) {
margin-right: 0;
}
.user-handle {
float: right;
ul {
... ...