Authored by zhangxiaoru

searchcache

... ... @@ -219,6 +219,8 @@ const getAllBrandNames = () => {
const getSearchIndex = () => {
return api.get('', {
method: 'app.search.getTerms'
}, {
cache: true
}).then((result) => {
if (result && result.code === 200) {
return result.data.hotTerms;
... ...
... ... @@ -100,7 +100,7 @@ function inputAction() {
var i;
if (data.length > 0) {
console.log(data.length);
for (i = 0; i < data.length; i++) {
ajaxHtml += '<li><span class="keyword">' + data[i].keyword + '</span><span class="count">' +
data[i].count + ' items<i class="iconfont">&#xe614;</i></span></li>';
... ...