Authored by 周少峰

add is_rec

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