Authored by 周少峰

add is_rec

@@ -72,7 +72,7 @@ @@ -72,7 +72,7 @@
72 {{#unless changedQuery}} 72 {{#unless changedQuery}}
73 73
74 <div class="search-suggest-less"> 74 <div class="search-suggest-less">
75 - "<em>{{name}}</em>"&nbsp;搜索结果太少了,试试{{#suggest}}&nbsp;"<a href="/?query={{.}}">{{.}}</a>"&nbsp;{{/suggest}}关键词搜索 75 + "<em>{{name}}</em>"&nbsp;搜索结果太少了,试试{{#suggest}}&nbsp;"<a href="/?query={{.}}&is_rec=Y">{{.}}</a>"&nbsp;{{/suggest}}关键词搜索
76 </div> 76 </div>
77 {{/unless}} 77 {{/unless}}
78 {{/if}} 78 {{/if}}
@@ -81,7 +81,7 @@ @@ -81,7 +81,7 @@
81 {{#if changedQuery}} 81 {{#if changedQuery}}
82 <div class="search-suggest-less"> 82 <div class="search-suggest-less">
83 没有找到&nbsp;"<em>{{name}}</em>"&nbsp;相关的商品, 83 没有找到&nbsp;"<em>{{name}}</em>"&nbsp;相关的商品,
84 - 为您推荐&nbsp;"<a href="/?query={{suggestFirst}}">{{suggestFirst}}</a>"&nbsp;的搜索结果。{{#if suggestSecond}}或者试试{{#suggestSecond}}&nbsp;"<a href="/?query={{.}}">{{.}}</a>"&nbsp;{{/suggestSecond}}{{/if}} 84 + 为您推荐&nbsp;"<a href="/?query={{suggestFirst}}&is_rec=Y">{{suggestFirst}}</a>"&nbsp;的搜索结果。{{#if suggestSecond}}或者试试{{#suggestSecond}}&nbsp;"<a href="/?query={{.}}&is_rec=Y">{{.}}</a>"&nbsp;{{/suggestSecond}}{{/if}}
85 </div> 85 </div>
86 {{/if}} 86 {{/if}}
87 87
@@ -73,6 +73,7 @@ $(function() { @@ -73,6 +73,7 @@ $(function() {
73 switch (listType) { 73 switch (listType) {
74 case 'search': 74 case 'search':
75 loadYas.KEYWORD = qs.query || ''; 75 loadYas.KEYWORD = qs.query || '';
  76 + loadYas.IS_REC = qs.is_rec || 'N';
76 opt = 'YB_KEYWORD_GOODS_LIST_L'; 77 opt = 'YB_KEYWORD_GOODS_LIST_L';
77 break; 78 break;
78 case 'brand': 79 case 'brand':
@@ -115,6 +116,7 @@ $('.good-item-wrapper').click(function() { @@ -115,6 +116,7 @@ $('.good-item-wrapper').click(function() {
115 switch (listType) { 116 switch (listType) {
116 case 'search': 117 case 'search':
117 loadYas.KEYWORD = qs.query || ''; 118 loadYas.KEYWORD = qs.query || '';
  119 + loadYas.IS_REC = qs.is_rec || 'N';
118 opt = 'YB_KEYWORD_GOODS_LIST_C'; 120 opt = 'YB_KEYWORD_GOODS_LIST_C';
119 break; 121 break;
120 case 'brand': 122 case 'brand':