Authored by ccbikai

首页 1000+ 搞定

1 {{#data}} 1 {{#data}}
2 <ul class="hot-brands clearfix"> 2 <ul class="hot-brands clearfix">
3 {{> common/floor-header}} 3 {{> common/floor-header}}
4 - {{# list}} 4 + {{# list}}
5 <li class="brand"> 5 <li class="brand">
6 <a href="{{url}}"> 6 <a href="{{url}}">
7 <div class="brand-logo"> 7 <div class="brand-logo">
@@ -11,8 +11,11 @@ @@ -11,8 +11,11 @@
11 </a> 11 </a>
12 </li> 12 </li>
13 {{/ list}} 13 {{/ list}}
  14 +
14 <li class="more"> 15 <li class="more">
15 - <a href="{{more}}"></a> 16 + <a class="{{#unless image.src}}default{{/unless}}" href="{{image.url}}">
  17 + <img src="{{image image.src 320 172}}">
  18 + </a>
16 </li> 19 </li>
17 </ul> 20 </ul>
18 -{{/data}}  
  21 +{{/data}}
@@ -69,13 +69,17 @@ @@ -69,13 +69,17 @@
69 width: 317px; 69 width: 317px;
70 height: 174px; 70 height: 174px;
71 border-top: 1px solid #e0e0e0; 71 border-top: 1px solid #e0e0e0;
  72 + overflow: hidden;
72 73
73 a { 74 a {
74 display: block; 75 display: block;
75 width: 100%; 76 width: 100%;
76 height: 100%; 77 height: 100%;
77 - background: resolve("channel/more-brand.png") no-repeat;  
78 - background-size: 100% 100%; 78 +
  79 + &.default {
  80 + background: resolve("channel/more-brand.png") no-repeat;
  81 + background-size: 100% 100%;
  82 + }
79 } 83 }
80 } 84 }
81 } 85 }