Authored by OF1706

recommend list

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