Authored by 阿达

首页增加活动名数据

@@ -54,19 +54,22 @@ exports.saleIndex = () => { @@ -54,19 +54,22 @@ exports.saleIndex = () => {
54 img: 'http://img10.static.yhbimg.com/yhb-img01/2016/05/19/13/01f617bba26fa175656922be378554a692.jpg?imageView2/{mode}/w/{width}/h/{height}', 54 img: 'http://img10.static.yhbimg.com/yhb-img01/2016/05/19/13/01f617bba26fa175656922be378554a692.jpg?imageView2/{mode}/w/{width}/h/{height}',
55 time: '低于一小时', 55 time: '低于一小时',
56 brand: 'http://img11.static.yhbimg.com/yhb-img01/2016/05/19/11/01efd5521a2bb695df0bd0f1b9ff982b01.jpg?imageView2/{mode}/w/{width}/h/{height}', 56 brand: 'http://img11.static.yhbimg.com/yhb-img01/2016/05/19/11/01efd5521a2bb695df0bd0f1b9ff982b01.jpg?imageView2/{mode}/w/{width}/h/{height}',
57 - discount: '1折起' 57 + discount: '1折起',
  58 + activityName: '2016春夏新品大赏!'
58 }, { 59 }, {
59 link: 'www.baidu.com', 60 link: 'www.baidu.com',
60 img: 'http://img10.static.yhbimg.com/yhb-img01/2016/05/19/13/01f617bba26fa175656922be378554a692.jpg?imageView2/{mode}/w/{width}/h/{height}', 61 img: 'http://img10.static.yhbimg.com/yhb-img01/2016/05/19/13/01f617bba26fa175656922be378554a692.jpg?imageView2/{mode}/w/{width}/h/{height}',
61 time: '低于一小时', 62 time: '低于一小时',
62 brand: 'http://img11.static.yhbimg.com/yhb-img01/2016/05/19/11/01efd5521a2bb695df0bd0f1b9ff982b01.jpg?imageView2/{mode}/w/{width}/h/{height}', 63 brand: 'http://img11.static.yhbimg.com/yhb-img01/2016/05/19/11/01efd5521a2bb695df0bd0f1b9ff982b01.jpg?imageView2/{mode}/w/{width}/h/{height}',
63 - discount: '1折起' 64 + discount: '1折起',
  65 + activityName: '2016春夏新品大赏!'
64 }, { 66 }, {
65 link: 'www.baidu.com', 67 link: 'www.baidu.com',
66 img: 'http://img10.static.yhbimg.com/yhb-img01/2016/05/19/13/01f617bba26fa175656922be378554a692.jpg?imageView2/{mode}/w/{width}/h/{height}', 68 img: 'http://img10.static.yhbimg.com/yhb-img01/2016/05/19/13/01f617bba26fa175656922be378554a692.jpg?imageView2/{mode}/w/{width}/h/{height}',
67 time: '低于一小时', 69 time: '低于一小时',
68 brand: 'http://img11.static.yhbimg.com/yhb-img01/2016/05/19/11/01efd5521a2bb695df0bd0f1b9ff982b01.jpg?imageView2/{mode}/w/{width}/h/{height}', 70 brand: 'http://img11.static.yhbimg.com/yhb-img01/2016/05/19/11/01efd5521a2bb695df0bd0f1b9ff982b01.jpg?imageView2/{mode}/w/{width}/h/{height}',
69 - discount: '1折起' 71 + discount: '1折起',
  72 + activityName: '2016春夏新品大赏!'
70 }], 73 }],
71 normal: [{ 74 normal: [{
72 link: 'www.baidu.com', 75 link: 'www.baidu.com',
@@ -163,7 +166,7 @@ exports.saleIndex = () => { @@ -163,7 +166,7 @@ exports.saleIndex = () => {
163 exports.discount = () => { 166 exports.discount = () => {
164 return { 167 return {
165 module: 'product', 168 module: 'product',
166 - page: 'discount', 169 + page: 'sale',
167 saleList: 170 saleList:
168 { 171 {
169 saleBanner: 172 saleBanner:
@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 <a class="item pull-left" href="{{link}}"> 9 <a class="item pull-left" href="{{link}}">
10 <div class="pic"> 10 <div class="pic">
11 <img src="{{image img 375 400}}"> 11 <img src="{{image img 375 400}}">
12 - <div class="time">{{time}}</div> 12 + <div class="time"><span></span>{{time}}</div>
13 </div> 13 </div>
14 <div class="detail"> 14 <div class="detail">
15 <img class="brand pull-left" src="{{image brand 150 100}}"> 15 <img class="brand pull-left" src="{{image brand 150 100}}">
@@ -17,6 +17,7 @@ @@ -17,6 +17,7 @@
17 <div class="discount"> 17 <div class="discount">
18 <span class="num">{{discount}}</span> Off 18 <span class="num">{{discount}}</span> Off
19 </div> 19 </div>
  20 + <div class="active-name">{{activityName}}</div>
20 <div class="title"> 21 <div class="title">
21 {{title}} 22 {{title}}
22 </div> 23 </div>
@@ -186,6 +186,13 @@ @@ -186,6 +186,13 @@
186 font-size: 40px; 186 font-size: 40px;
187 } 187 }
188 } 188 }
  189 +
  190 + .active-name {
  191 + font-size: 15px;
  192 + font-weight: bold;
  193 + text-align: center;
  194 + margin-top: 10px;
  195 + }
189 } 196 }
190 197
191 .sale-group { 198 .sale-group {