Authored by OF1706

recommend list

@@ -19,7 +19,7 @@ var $head = $('.head-wrapper'), @@ -19,7 +19,7 @@ var $head = $('.head-wrapper'),
19 $searchRecommend = $head.find('.search-hot'), 19 $searchRecommend = $head.find('.search-hot'),
20 $searchHistoryHbs = $head.find('#search-suggest-history'), 20 $searchHistoryHbs = $head.find('#search-suggest-history'),
21 $searchRecommendHbs = $head.find('#search-suggest-recommend'); 21 $searchRecommendHbs = $head.find('#search-suggest-recommend');
22 - $goCart = $head.find('.go-cart'), 22 +$goCart = $head.find('.go-cart'),
23 $myYohoBox = $('#myYohoBox'), 23 $myYohoBox = $('#myYohoBox'),
24 $goodsNum = $goCart.find('.goods-num-tip'), 24 $goodsNum = $goCart.find('.goods-num-tip'),
25 $miniCart = $head.find('.mini-cart-wrapper'); 25 $miniCart = $head.find('.mini-cart-wrapper');
@@ -917,7 +917,8 @@ function searchSuggestRecommend(key) { @@ -917,7 +917,8 @@ function searchSuggestRecommend(key) {
917 if (jsonData.code === 200) { 917 if (jsonData.code === 200) {
918 // if (jsonData.data && jsonData.data.hotTerms.length && jsonData.data.guessTerms.length) { 918 // if (jsonData.data && jsonData.data.hotTerms.length && jsonData.data.guessTerms.length) {
919 searchSuggestRecommendHtml = handlebars.compile($searchRecommendHbs.html() || ''); 919 searchSuggestRecommendHtml = handlebars.compile($searchRecommendHbs.html() || '');
920 - $searchRecommend.html(searchSuggestRecommendHtml(jsonData)).show(); 920 + $searchRecommend.html(searchSuggestRecommendHtml(jsonData)).show();
  921 +
921 // } else { 922 // } else {
922 // $searchRecommend.hide(); 923 // $searchRecommend.hide();
923 // } 924 // }