Authored by 姜枫

fix bugs

... ... @@ -17,22 +17,26 @@ const index = (req, res, next) => {
let contentCode = '';
let name = '';
let link = '';
let gender = '';
if (channel === 'women') {
contentCode = '527079e6c46d0f125eb46b835968971b';
name = 'WOMEN首页';
link = 'http://www.yohoblk.com/women';
channel = 302;
gender = '2,3';
} else if (channel === 'lifestyle') {
contentCode = '94b5ed607b6d565ffc29c2c04be121dc';
name = 'LIFT STYLE首页';
link = 'http://www.yohoblk.com/lifestyle';
channel = 303;
gender = '1,2,3';
} else {
contentCode = '81886aaa5e82e3741bc1ba1e04ec7706';
name = 'MEN首页';
link = 'http://www.yohoblk.com';
channel = 301;
gender = '1,3';
}
let appType = 1;
... ... @@ -55,6 +59,7 @@ const index = (req, res, next) => {
name: 'Brand品牌'
}
],
gender: gender,
tabs: result.tabs,
category: result.category
}
... ...
... ... @@ -5,7 +5,7 @@
<ul class="clearfix">
{{#each brands}}
<li>
<a data-key="{{key}}" href="{{brandDomain}}" target="_blank">
<a data-key="{{key}}" href="{{brandDomain}}?gender={{@root.brand.gender}}" target="_blank">
<img class="lazy" data-original="{{image brandIco 270 190}}">
<span>{{#if brandName}}{{brandName}}{{else}}{{brandNameEn}}{{/if}}</span>
</a>
... ...
... ... @@ -141,7 +141,8 @@ const favorite = {
retData.brandList = data.brandList;
if (retData.brandList) {
retData.brandList.forEach(b => {
_.each(retData.brandList, b => {
if (b.newProduct && b.newProduct.length > 0) {
b.newProduct.forEach(p => {
p.url = `${config.siteUrl}/product/pro_${p.productId}_${p.goods[0].id}/${p.cnAlphabet}.html`; // eslint-disable-line
... ...
... ... @@ -53,6 +53,7 @@
width: 240px;
height: 160px;
position: relative;
overflow: hidden;
.editorial-cate {
position: absolute;
... ...
... ... @@ -47,7 +47,7 @@
font-size: 12px;
}
#brand-info{
#brand-info {
font-size: 12px;
}
}
... ... @@ -125,8 +125,8 @@
.goods-info {
float: left;
width: 272px;
margin: 26px 10px;
width: 274px;
margin: 26px 9px;
border-width: 1px;
.desc {
... ... @@ -270,7 +270,6 @@
}
}
.yoho-dialog.brand-info-dialog {
width: 900px;
height: 600px;
... ... @@ -285,8 +284,8 @@
width: 100%;
}
.width780{
width:780px;
.width780 {
width: 780px;
}
.brand-info-title {
... ...