Authored by OF1706

less recommend list none

@@ -72,7 +72,7 @@ exports.getSearchData = (params, channel) => { @@ -72,7 +72,7 @@ exports.getSearchData = (params, channel) => {
72 header: true 72 header: true
73 }), 73 }),
74 search: {} 74 search: {}
75 - }; 75 + };
76 76
77 // 获取左侧类目数据 77 // 获取左侧类目数据
78 if (result[1].code === 200) { 78 if (result[1].code === 200) {
@@ -85,7 +85,8 @@ exports.getSearchData = (params, channel) => { @@ -85,7 +85,8 @@ exports.getSearchData = (params, channel) => {
85 }); 85 });
86 86
87 finalResult.search = { 87 finalResult.search = {
88 - leftContent: searchHandler.handleSortData(result[1].data.sort, dps, params) 88 + leftContent: searchHandler.handleSortData(result[1].data.sort, dps, params),
  89 + isSearch: true
89 }; 90 };
90 } 91 }
91 92
@@ -262,7 +263,6 @@ exports.getSearchLessProduct = (channel, uid, udid, page) => { @@ -262,7 +263,6 @@ exports.getSearchLessProduct = (channel, uid, udid, page) => {
262 return result; 263 return result;
263 } 264 }
264 265
265 -  
266 let together = yield searchApi.lessRecommend(channelNum, uid, udid, '100003', 20); 266 let together = yield searchApi.lessRecommend(channelNum, uid, udid, '100003', 20);
267 267
268 if (page > 5) { 268 if (page > 5) {
1 -<div class="product-search-page product-page yoho-page center-content"> 1 +<div class="product-search-page {{#if search.isSearch}}search-page{{/if}} product-page yoho-page center-content">
2 {{# search}} 2 {{# search}}
3 {{> common/path-nav}} 3 {{> common/path-nav}}
4 {{> product/no-result}} 4 {{> product/no-result}}
@@ -100,6 +100,8 @@ @@ -100,6 +100,8 @@
100 100
101 {{> product/standard-content}} 101 {{> product/standard-content}}
102 102
  103 + {{#if @root.search.isSearch}}
  104 +
103 {{#if_cond goods.length '<' 20 }} 105 {{#if_cond goods.length '<' 20 }}
104 106
105 <div> 107 <div>
@@ -118,8 +120,10 @@ @@ -118,8 +120,10 @@
118 120
119 {{/if_cond}} 121 {{/if_cond}}
120 122
  123 + {{/if}}
  124 +
121 {{> product/latest-walk}} 125 {{> product/latest-walk}}
122 126
123 </div> 127 </div>
124 {{/ brandAbout}} 128 {{/ brandAbout}}
125 -</div> 129 +</div>
@@ -15,7 +15,8 @@ @@ -15,7 +15,8 @@
15 </div> 15 </div>
16 <p class="no-tip">建议您:看看输入的文字是否有误 / 减少分类条件限制 / 重新搜索</p> 16 <p class="no-tip">建议您:看看输入的文字是否有误 / 减少分类条件限制 / 重新搜索</p>
17 </div> 17 </div>
18 -<div class="center-content clearfix"> 18 +
  19 +{{#if isSearch}}<div class="center-content clearfix">
19 <div class="bottom-tab-line"> 20 <div class="bottom-tab-line">
20 <span class="bottom-title" data-type="recommend" data-role="recommend-tab">你可能喜欢</span> 21 <span class="bottom-title" data-type="recommend" data-role="recommend-tab">你可能喜欢</span>
21 </div> 22 </div>
@@ -28,4 +29,4 @@ @@ -28,4 +29,4 @@
28 <script>getSearchRecommend();</script> 29 <script>getSearchRecommend();</script>
29 </textarea> 30 </textarea>
30 </div> 31 </div>
31 -</div> 32 +</div>{{/if}}