Authored by yyq

search recomend

... ... @@ -82,7 +82,7 @@
{{#if changedQuery}}
<div class="search-suggest-less">
没有找到&nbsp;<em>"{{name}}"</em>&nbsp;相关的商品,
为您推荐&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}}
为您推荐&nbsp;"<a href="/?query={{suggestFirst}}&is_rec=Y" id="rec-query-key">{{suggestFirst}}</a>"&nbsp;的搜索结果。{{#if suggestSecond}}或者试试{{#suggestSecond}}&nbsp;"<a href="/?query={{.}}&is_rec=Y">{{.}}</a>"&nbsp;{{/suggestSecond}}{{/if}}
</div>
{{/if}}
... ...
... ... @@ -167,12 +167,12 @@ if ($brandMore.length > 0) {
// 【品牌】加载更多品牌数据
function checkMoreBrands(callback) {
var squery = window.location.search;
// /product/search/filter/brands?callback=?
var url = '//search.yohobuy.com/product/search/filter/brands';
var url = '//search.yohobuy.com/product/search/filter/brands?callback=?';
var brandsHtml;
var params = (location.search || '').substr(1);
var params = window.queryString();
var $changeKey = $('#rec-query-key');
// 直出brands list取消异步加载,目前只用于5.6全球购商品列表
if (!moreBrandLoaded && $filterBrands.find('.brand-panel').length) {
... ... @@ -185,10 +185,8 @@ function checkMoreBrands(callback) {
$brandsIndex = $('.brands-index');
}
if (squery && squery.length > 0) {
url += squery + '&callback=?';
} else {
url += '?callback=?';
if (params.query && $changeKey.length) {
params.query = $changeKey.text();
}
if (hideInfo) {
... ...