Authored by 阿达

首页增加活动名数据

... ... @@ -54,19 +54,22 @@ exports.saleIndex = () => {
img: 'http://img10.static.yhbimg.com/yhb-img01/2016/05/19/13/01f617bba26fa175656922be378554a692.jpg?imageView2/{mode}/w/{width}/h/{height}',
time: '低于一小时',
brand: 'http://img11.static.yhbimg.com/yhb-img01/2016/05/19/11/01efd5521a2bb695df0bd0f1b9ff982b01.jpg?imageView2/{mode}/w/{width}/h/{height}',
discount: '1折起'
discount: '1折起',
activityName: '2016春夏新品大赏!'
}, {
link: 'www.baidu.com',
img: 'http://img10.static.yhbimg.com/yhb-img01/2016/05/19/13/01f617bba26fa175656922be378554a692.jpg?imageView2/{mode}/w/{width}/h/{height}',
time: '低于一小时',
brand: 'http://img11.static.yhbimg.com/yhb-img01/2016/05/19/11/01efd5521a2bb695df0bd0f1b9ff982b01.jpg?imageView2/{mode}/w/{width}/h/{height}',
discount: '1折起'
discount: '1折起',
activityName: '2016春夏新品大赏!'
}, {
link: 'www.baidu.com',
img: 'http://img10.static.yhbimg.com/yhb-img01/2016/05/19/13/01f617bba26fa175656922be378554a692.jpg?imageView2/{mode}/w/{width}/h/{height}',
time: '低于一小时',
brand: 'http://img11.static.yhbimg.com/yhb-img01/2016/05/19/11/01efd5521a2bb695df0bd0f1b9ff982b01.jpg?imageView2/{mode}/w/{width}/h/{height}',
discount: '1折起'
discount: '1折起',
activityName: '2016春夏新品大赏!'
}],
normal: [{
link: 'www.baidu.com',
... ... @@ -163,7 +166,7 @@ exports.saleIndex = () => {
exports.discount = () => {
return {
module: 'product',
page: 'discount',
page: 'sale',
saleList:
{
saleBanner:
... ...
... ... @@ -9,7 +9,7 @@
<a class="item pull-left" href="{{link}}">
<div class="pic">
<img src="{{image img 375 400}}">
<div class="time">{{time}}</div>
<div class="time"><span></span>{{time}}</div>
</div>
<div class="detail">
<img class="brand pull-left" src="{{image brand 150 100}}">
... ... @@ -17,6 +17,7 @@
<div class="discount">
<span class="num">{{discount}}</span> Off
</div>
<div class="active-name">{{activityName}}</div>
<div class="title">
{{title}}
</div>
... ...
... ... @@ -186,6 +186,13 @@
font-size: 40px;
}
}
.active-name {
font-size: 15px;
font-weight: bold;
text-align: center;
margin-top: 10px;
}
}
.sale-group {
... ...