Authored by zhangxiaoru

editorial

... ... @@ -13,16 +13,16 @@ const brand = require('../models/brand');
* @param res
*/
const index = (req, res, next) => {
let channel = req.cookies._Channel || 'men';
let channel = req.cookies._Channel || '301';
let contentCode = '';
let name = '';
let link = '';
if (channel === 'women') {
if (channel === '302') {
contentCode = '527079e6c46d0f125eb46b835968971b';
name = 'WOMEN首页';
link = 'http://www.yohoblk.com/women';
} else if (channel === 'lifestyle') {
} else if (channel === '303') {
contentCode = '94b5ed607b6d565ffc29c2c04be121dc';
name = 'LIFT STYLE首页';
link = 'http://www.yohoblk.com/lifestyle';
... ...
... ... @@ -20,16 +20,16 @@ const index = (req, res, next) => {
let limit = req.query.limit || 20;
let appType = 1;
let udid = md5(req.ip);
let channel = req.cookies._Channel || 'women';
let channel = req.cookies._Channel || '301';
let gender = '';
let name = '';
let link = '';
if (channel === 'men') {
if (channel === '301') {
gender = '1,3';
name = 'MEN首页';
link = 'http://www.yohoblk.com';
} else if (channel === 'women') {
} else if (channel === '302') {
gender = '2,3';
name = 'WOMEN首页';
link = 'http://www.yohoblk.com/women';
... ... @@ -85,17 +85,17 @@ const list = (req, res) => {
let tag = req.query.query;
let authorId = req.query.authorId;
let udid = md5(req.ip);
let channel = req.cookies._Channel || 'men';
let channel = req.cookies._Channel || '301';
let gender = '';
let name = '';
let link = '';
let appType = 1;
if (channel === 'men') {
if (channel === '301') {
gender = '1,3';
name = 'MEN首页';
link = 'http://www.yohoblk.com';
} else if (channel === 'women') {
} else if (channel === '302') {
gender = '2,3';
name = 'WOMEN首页';
link = 'http://www.yohoblk.com/women';
... ... @@ -156,14 +156,14 @@ const detail = (req, res, next) => {
let appType = 1;
let uid = req.user.uid;
let udid = md5(req.ip);
let channel = req.cookies._Channel || 'men';
let channel = req.cookies._Channel || '301';
let name = '';
let link = '';
if (channel === 'men') {
if (channel === '301') {
name = 'MEN首页';
link = 'http://www.yohoblk.com';
} else if (channel === 'women') {
} else if (channel === '302') {
name = 'WOMEN首页';
link = 'http://www.yohoblk.com/women';
} else {
... ...
... ... @@ -2,6 +2,7 @@
<h4>
<span class="comment-num">{{total}}</span>
条评论
<b></b>
</h4>
<p class="comments-empty">还没有评论,快抢沙发吧</p>
<div class="commnets-resultwrapper">
... ...
... ... @@ -74,7 +74,7 @@ function shareBase(options) {
sharebox = defOption.self.closest('.share-to').find('.weixin-share-box');
if (sharebox.length > 0) {
shareCon = '<i class="iconfont top ">&#xe617;</i><div class="con"><p class="pic"><img src="' +
shareCon = '<i class="top"></i><div class="con"><p class="pic"><img src="' +
openUrl + '" /></p><h2>分享到微信朋友圈</h2><p class="w">打开微信使用“扫一扫“<br/>即可将网页分享到我的朋友圈。</p></div>';
sharebox.find('div').length > 0 ? sharebox.show() : sharebox.html(shareCon).show();
}
... ...
... ... @@ -46,10 +46,13 @@
position: absolute;
color: #bbb;
background: #fff;
width: 18px;
left: 50px;
width: 12px;
left: 89px;
z-index: 100;
width: 18px;
height: 12px;
display: block;
background-image: resolve('layout/up.png');
top: 17px;
}
}
... ...
... ... @@ -461,10 +461,21 @@
position: relative;
line-height: 32px;
border-bottom: 1px solid #bbb;
position: relative;
.comment-num {
color: #379ed6;
}
b {
display: block;
width: 12px;
height: 7px;
background: #fff;
background-image: resolve('layout/down.png');
position: absolute;
left: 15px;
}
}
.comment-pager {
... ...