diff --git a/pages/shop/GoodSearch/index.vue b/pages/shop/GoodSearch/index.vue index 9c09b0c..70af129 100644 --- a/pages/shop/GoodSearch/index.vue +++ b/pages/shop/GoodSearch/index.vue @@ -2,36 +2,41 @@ - + 搜索 - - + 历史搜索 {{ item.word }} + v-for="item of historyKey" + :key="item.id" + class="item" + @click="toSearch(item.word)" + > + {{ item.word }} - 热门搜索 {{ keywordsKey }} + v-for="keywordsKey of keywords" + :key="keywordsKey" + class="item" + @click="toSearch(keywordsKey)" + > + {{ keywordsKey }} @@ -40,19 +45,18 @@