Authored by yyq

special page

... ... @@ -283,5 +283,33 @@ exports.special = (req, res) => {
devEnv: true
};
data.mainBanner = {
list: [
{
href: '#',
img: 'http://img10.static.yhbimg.com/brandBanner/2014/11/24/07/01ff74fb2a33764c2fd18b3c8a60f5beef.jpg'
},
{
href: '#',
img: 'http://img10.static.yhbimg.com/brandBanner/2014/11/24/07/01ff74fb2a33764c2fd18b3c8a60f5beef.jpg'
},
{
href: '#',
img: 'http://img10.static.yhbimg.com/brandBanner/2014/11/24/07/01ff74fb2a33764c2fd18b3c8a60f5beef.jpg'
}
],
href: '#',
img: 'http://img10.static.yhbimg.com/brandBanner/2014/11/24/07/01ff74fb2a33764c2fd18b3c8a60f5beef.jpg'
};
data.specialHead = {
logo: 'http://img10.static.yhbimg.com/brandLogo/2012/08/02/15/0119ad6a2407f5505268688a470d6f6c13.jpg',
special: '精品上装专场',
discount: '8',
title: '全部商品',
count: '123533',
limit: '20000'
};
res.render('outlets/special', data);
};
... ...
<p>I am special page</p>
\ No newline at end of file
<div class="outlets-special-page outlets-page yoho-page">
{{> common/main-banner}}
<div class="center-content clearfix">
{{> common/special-head}}
<div class="list-left left">
{{> product/left-content}}
</div>
<div class="list-right right">
{{> product/standard-content}}
</div>
</div>
</div>
... ...
... ... @@ -280,7 +280,27 @@
margin: 0 auto;
}
}
.main-banner {
height: 360px;
ul {
width: 100%;
height: 100%;
position: relative;
}
li {
width: 100%;
height: 100%;
display: block;
position: absolute;
top: 0;
left: 0;
}
}
}
@import "channel";
@import "special";
@import "main-product";
... ...