Authored by lore-w

修复商品标题太多时排版问题

@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 <span>{{updateNum}}</span> 9 <span>{{updateNum}}</span>
10 </li> 10 </li>
11 {{#each list}} 11 {{#each list}}
12 - <li> 12 + <li {{#if active}}active{{/if}}>
13 <a href="{{href}}">{{name}}</a> 13 <a href="{{href}}">{{name}}</a>
14 <span>{{num}}</span> 14 <span>{{num}}</span>
15 </li> 15 </li>
@@ -27,7 +27,7 @@ @@ -27,7 +27,7 @@
27 </h2> 27 </h2>
28 <ul class="sort-child-list new-sale"> 28 <ul class="sort-child-list new-sale">
29 {{#each list}} 29 {{#each list}}
30 - <li> 30 + <li {{#if active}}active{{/if}}>
31 <a href="{{href}}">{{name}}</a> 31 <a href="{{href}}">{{name}}</a>
32 <span>{{num}}</span> 32 <span>{{num}}</span>
33 </li> 33 </li>
@@ -40,11 +40,13 @@ @@ -40,11 +40,13 @@
40 color: #222; 40 color: #222;
41 font-size: 12px; 41 font-size: 12px;
42 text-align: center; 42 text-align: center;
  43 + overflow: hidden;
43 44
44 > a { 45 > a {
45 margin-top: 16px; 46 margin-top: 16px;
46 line-height: 1.5; 47 line-height: 1.5;
47 display: block; 48 display: block;
  49 + @include ellipsis();
48 } 50 }
49 51
50 > .price { 52 > .price {
@@ -320,7 +320,7 @@ class Index1Controller extends AbstractAction @@ -320,7 +320,7 @@ class Index1Controller extends AbstractAction
320 ), 320 ),
321 'url' => 'http://adidas.yohobuy.com/?gender=1,3', 321 'url' => 'http://adidas.yohobuy.com/?gender=1,3',
322 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', 322 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
323 - 'name' => 'adidas Originals FORUM 中帮拼色休闲板鞋', 323 + 'name' => 'adidas Originals FORUM 中帮拼色休闲板鞋中帮拼色休闲板鞋',
324 'salePrice' => '899', 324 'salePrice' => '899',
325 'isFew' => true, 325 'isFew' => true,
326 'skn' => 123 326 'skn' => 123
@@ -726,7 +726,7 @@ class Index1Controller extends AbstractAction @@ -726,7 +726,7 @@ class Index1Controller extends AbstractAction
726 ), 726 ),
727 'url' => 'http://adidas.yohobuy.com/?gender=1,3', 727 'url' => 'http://adidas.yohobuy.com/?gender=1,3',
728 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', 728 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
729 - 'name' => 'adidas Originals FORUM 中帮拼色休闲板鞋', 729 + 'name' => 'adidas Originals FORUM 中帮拼色休闲板鞋中帮拼色休闲板鞋',
730 'salePrice' => '899', 730 'salePrice' => '899',
731 'isFew' => true 731 'isFew' => true
732 ), 732 ),