Authored by xuqi

分离更多商品

@@ -95,11 +95,13 @@ module.exports = function(flag) { @@ -95,11 +95,13 @@ module.exports = function(flag) {
95 isNew: true, 95 isNew: true,
96 url: '' 96 url: ''
97 } 97 }
98 - ],  
99 - moreProds: '' 98 + ]
100 } 99 }
101 }, 100 },
102 { 101 {
  102 + moreProds: ''
  103 + },
  104 + {
103 bigImage: { 105 bigImage: {
104 src: 'http://7xidk0.com1.z0.glb.clouddn.com/bg.png', 106 src: 'http://7xidk0.com1.z0.glb.clouddn.com/bg.png',
105 alt: '复古风' 107 alt: '复古风'
@@ -204,8 +206,7 @@ module.exports = function(flag) { @@ -204,8 +206,7 @@ module.exports = function(flag) {
204 isNew: true, 206 isNew: true,
205 url: '' 207 url: ''
206 } 208 }
207 - ],  
208 - moreProds: '' 209 + ]
209 } 210 }
210 }, 211 },
211 { 212 {
  1 +.more-good {
  2 + padding: 0 0 0 30rem / $pxConvertRem;
  3 + margin-top: -30rem / $pxConvertRem;
  4 + margin-bottom: 30rem / $pxConvertRem;
  5 + background-color: #fff;
  6 + line-height: 88rem / $pxConvertRem;
  7 + border-bottom: 1px solid #e0e0e0;
  8 +
  9 + a {
  10 + text-decoration: none;
  11 + color: #444;
  12 + font-size: 30rem / $pxConvertRem;
  13 + }
  14 +
  15 + i {
  16 + float: right;
  17 + margin: 0 30rem / $pxConvertRem 0 0;
  18 + font-size: 28rem / $pxConvertRem;
  19 + color: #b0b0b0
  20 + }
  21 +}
1 -@import "../saunter/article-author", "../saunter/article", "../saunter/related-brand", "../saunter/article-tag", "../saunter/related-post"; 1 +@import "../saunter/article-author", "../saunter/article", "../saunter/related-brand", "../saunter/article-tag", "../saunter/related-post", "../common/more-prods";
2 2
3 #wrapper { 3 #wrapper {
4 position: absolute; 4 position: absolute;
@@ -13,24 +13,4 @@ @@ -13,24 +13,4 @@
13 color: #b0b0b0; 13 color: #b0b0b0;
14 text-align: center; 14 text-align: center;
15 } 15 }
16 -  
17 - .more-good {  
18 - padding: 0 0 0 30rem / $pxConvertRem;  
19 - margin: 0 0 0 -15rem / $pxConvertRem;  
20 - line-height: 88rem / $pxConvertRem;  
21 - border-top: 1px solid #e0e0e0;  
22 -  
23 - a {  
24 - text-decoration: none;  
25 - color: #444;  
26 - font-size: 30rem / $pxConvertRem;  
27 - }  
28 -  
29 - i {  
30 - float: right;  
31 - margin: 0 30rem / $pxConvertRem 0 0;  
32 - font-size: 28rem / $pxConvertRem;  
33 - color: #b0b0b0  
34 - }  
35 - }  
36 } 16 }
  1 +{{#moreProds}}
  2 + <div class="more-good clearfix">
  3 + <a href="{{.}}">
  4 + 更多商品
  5 + <i class="iconfont">&#xe604;</i>
  6 + </a>
  7 + </div>
  8 +{{/moreProds}}
1 {{# recommendation}} 1 {{# recommendation}}
2 <div class="article-type-five clearfix"> 2 <div class="article-type-five clearfix">
3 - <h2>相关推荐</h2>  
4 - <div class="good-list clearfix">  
5 - {{# list}}  
6 - {{> common/good_info}}  
7 - {{/ list}}  
8 - </div>  
9 - <div class="more-good clearfix">  
10 - <a href="{{moreProds}}">  
11 - 更多商品  
12 - <i class="iconfont">&#xe604;</i>  
13 - </a>  
14 - </div> 3 + <h2>相关推荐</h2>
  4 + <div class="good-list clearfix">
  5 + {{# list}}
  6 + {{> common/good_info}}
  7 + {{/ list}}
  8 + </div>
15 </div> 9 </div>
16 {{/ recommendation}} 10 {{/ recommendation}}
@@ -6,5 +6,6 @@ @@ -6,5 +6,6 @@
6 {{> saunter/article_type_three}} 6 {{> saunter/article_type_three}}
7 {{> saunter/article_type_four}} 7 {{> saunter/article_type_four}}
8 {{> saunter/article_type_five}} 8 {{> saunter/article_type_five}}
  9 + {{> common/more_prods}}
9 {{/ content}} 10 {{/ content}}
10 {{/ article}} 11 {{/ article}}