Showing
7 changed files
with
21 additions
and
12 deletions
1 | <div class="activity-entry clearfix"> | 1 | <div class="activity-entry clearfix"> |
2 | {{#activityEnter}} | 2 | {{#activityEnter}} |
3 | <a class="entry-item pull-left {{#if @first}}first{{/if}} {{#if @last}}last{{/if}}" href="{{link}}"> | 3 | <a class="entry-item pull-left {{#if @first}}first{{/if}} {{#if @last}}last{{/if}}" href="{{link}}"> |
4 | - <img class="icon pull-left" src="{{icon}}"> | 4 | + <span class="icon pull-left {{icon}}"></span> |
5 | <div class="entry-text"> | 5 | <div class="entry-text"> |
6 | <span class="title">{{title}}</span> | 6 | <span class="title">{{title}}</span> |
7 | <p class="desc">{{desc}}</p> | 7 | <p class="desc">{{desc}}</p> |
@@ -3,8 +3,8 @@ | @@ -3,8 +3,8 @@ | ||
3 | 折扣专场 SALE | 3 | 折扣专场 SALE |
4 | </div> | 4 | </div> |
5 | 5 | ||
6 | + {{#brandSale}} | ||
6 | <div class="sale-group-big clearfix"> | 7 | <div class="sale-group-big clearfix"> |
7 | - {{#brandSale}} | ||
8 | {{#big}} | 8 | {{#big}} |
9 | <a class="item pull-left" href="{{link}}"> | 9 | <a class="item pull-left" href="{{link}}"> |
10 | <div class="pic"> | 10 | <div class="pic"> |
@@ -35,11 +35,7 @@ | @@ -35,11 +35,7 @@ | ||
35 | </div> | 35 | </div> |
36 | </a> | 36 | </a> |
37 | {{/normal}} | 37 | {{/normal}} |
38 | - {{/brandSale}} | ||
39 | - </div> | ||
40 | - | ||
41 | - <div class="sale-group"> | ||
42 | - | ||
43 | </div> | 38 | </div> |
39 | + {{/brandSale}} | ||
44 | 40 | ||
45 | </div> | 41 | </div> |
web-static/img/sale/discount.png
0 → 100644
2.1 KB
web-static/img/sale/for-vip.png
0 → 100644
1.53 KB
web-static/img/sale/off-price.png
0 → 100644
1.36 KB
@@ -33,9 +33,22 @@ | @@ -33,9 +33,22 @@ | ||
33 | } | 33 | } |
34 | 34 | ||
35 | .icon { | 35 | .icon { |
36 | - width: 72px; | ||
37 | - height: 72px; | 36 | + width: 70px; |
37 | + height: 70px; | ||
38 | margin-left: 48px; | 38 | margin-left: 48px; |
39 | + background-repeat: no-repeat; | ||
40 | + | ||
41 | + &.vip { | ||
42 | + background-image: image-url('sale/for-vip.png'); | ||
43 | + } | ||
44 | + | ||
45 | + &.discount { | ||
46 | + background-image: image-url('sale/discount.png'); | ||
47 | + } | ||
48 | + | ||
49 | + &.off-price { | ||
50 | + background-image: image-url('sale/off-price.png'); | ||
51 | + } | ||
39 | } | 52 | } |
40 | 53 | ||
41 | .title { | 54 | .title { |
@@ -33,19 +33,19 @@ class Sale1Controller extends WebAction | @@ -33,19 +33,19 @@ class Sale1Controller extends WebAction | ||
33 | ), | 33 | ), |
34 | 'activityEnter' => array( | 34 | 'activityEnter' => array( |
35 | array( | 35 | array( |
36 | - 'icon' => '', | 36 | + 'icon' => 'vip', |
37 | 'title' => 'VIP会员专享', | 37 | 'title' => 'VIP会员专享', |
38 | 'desc' => 'Only for VIP', | 38 | 'desc' => 'Only for VIP', |
39 | 'link' => 'http://www.yohobuy.com' | 39 | 'link' => 'http://www.yohobuy.com' |
40 | ), | 40 | ), |
41 | array( | 41 | array( |
42 | - 'icon' => '', | 42 | + 'icon' => 'discount', |
43 | 'title' => '断码区', | 43 | 'title' => '断码区', |
44 | 'desc' => 'Discount', | 44 | 'desc' => 'Discount', |
45 | 'link' => 'http://www.yohobuy.com' | 45 | 'link' => 'http://www.yohobuy.com' |
46 | ), | 46 | ), |
47 | array( | 47 | array( |
48 | - 'icon' => '', | 48 | + 'icon' => 'off-price', |
49 | 'title' => '最新降价', | 49 | 'title' => '最新降价', |
50 | 'desc' => 'Off Price', | 50 | 'desc' => 'Off Price', |
51 | 'link' => 'http://www.yohobuy.com' | 51 | 'link' => 'http://www.yohobuy.com' |
-
Please register or login to post a comment