Authored by OF1706

keyword

... ... @@ -1761,16 +1761,13 @@ exports.handleSuggestData = (origin, query) => {
}
list.push({
childList: [
{
name: `${value.keyword}`,
href: helpers.urlFormat(`/so/${stringCode.utf8ToHex(value.keyword)}.html`, null, 'www')
}
]
name: `${value.keyword}`,
href: helpers.urlFormat(`/so/${stringCode.utf8ToHex(value.keyword)}.html`, null, 'www')
});
});
leftContent.allSuggest = {all: all, list: list};
console.log(leftContent.allSuggest);
return leftContent;
};
... ...
... ... @@ -89,9 +89,8 @@
{{!-- 搜索推荐--}}
{{# allSuggest}}
<div class="sort-container">
{{# list}}
<ul class="sort-child-list suggest-list">
{{#each childList}}
{{#each list}}
<li>
<a href="{{href}}" title="{{name}}">
{{name}}
... ... @@ -99,7 +98,6 @@
</li>
{{/each}}
</ul>
{{/ list}}
</div>
{{/ allSuggest}}
... ...