|
|
@ -9,8 +9,8 @@ |
|
|
<img @click="setVoice" src="../../assets/images/search/search-voice.png" class="voice-icon" alt="" /> |
|
|
<img @click="setVoice" src="../../assets/images/search/search-voice.png" class="voice-icon" alt="" /> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="flex"> |
|
|
|
|
|
<div class="right-box" v-show="!showVoice"> |
|
|
|
|
|
|
|
|
<div class="flex" v-if="!showVoice"> |
|
|
|
|
|
<div class="right-box"> |
|
|
<h1 class="title">快捷入口</h1> |
|
|
<h1 class="title">快捷入口</h1> |
|
|
<h1 class="title-en">Quick entrance</h1> |
|
|
<h1 class="title-en">Quick entrance</h1> |
|
|
<div class="facility-list"> |
|
|
<div class="facility-list"> |
|
|
@ -23,44 +23,32 @@ |
|
|
<keyboardByWritten @del="del" @handle-word="handleLetter" v-else /> |
|
|
<keyboardByWritten @del="del" @handle-word="handleLetter" v-else /> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div v-show="!keywords.length && !showVoice"> |
|
|
|
|
|
<h1 class="title">万象热搜</h1> |
|
|
|
|
|
<h1 class="title-en">MIXC hot search</h1> |
|
|
|
|
|
<ScrollView class="hot-scroll" :list="hotRecommend" scrollbar> |
|
|
|
|
|
<div class="hot-box"> |
|
|
|
|
|
<div class="recommend-item" v-for="item of hotRecommend" :key="item.shopId" @click="handleShop(item)">{{ item.shopName }}</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</ScrollView> |
|
|
|
|
|
<h1 class="title">常见问题</h1> |
|
|
|
|
|
<h1 class="title-en">common problem</h1> |
|
|
|
|
|
|
|
|
<!-- <div class="left-box" v-show="!keywords.length && !showVoice"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="question-box"> |
|
|
|
|
|
<QuestionList /> |
|
|
|
|
|
<div class="more-question" @click="showClassify = true">{{ $t('more') }}</div> |
|
|
|
|
|
<Teleport to="body"> |
|
|
|
|
|
<Transition enter-active-class="animate__animated animate__fadeInDown" leave-active-class="animate__animated animate__fadeOutUp"> |
|
|
|
|
|
<QuestionClassify @close="showClassify = false" v-if="showClassify" /> |
|
|
|
|
|
</Transition> |
|
|
|
|
|
</Teleport> |
|
|
</div> |
|
|
</div> |
|
|
<SearchResultList |
|
|
|
|
|
@handle-shop="handleShop" |
|
|
|
|
|
@handle-activity="handleActivity" |
|
|
|
|
|
:list="searchShopListRef" |
|
|
|
|
|
:config="config" |
|
|
|
|
|
v-show="keywords.length && !showVoice" |
|
|
|
|
|
/> --> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<h1 class="title">万象热搜</h1> |
|
|
|
|
|
<h1 class="title-en">MIXC hot search</h1> |
|
|
|
|
|
<ScrollView class="hot-scroll" :list="hotRecommend" scrollbar> |
|
|
|
|
|
<div class="hot-box"> |
|
|
|
|
|
<div class="recommend-item" v-for="item of hotRecommend" :key="item.shopId" @click="handleShop(item)">{{ item.shopName }}</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</ScrollView> |
|
|
|
|
|
<h1 class="title">常见问题</h1> |
|
|
|
|
|
<h1 class="title-en">common problem</h1> |
|
|
|
|
|
|
|
|
|
|
|
<div class="question-box"> |
|
|
|
|
|
<QuestionList /> |
|
|
|
|
|
<div class="more-question" @click="showClassify = true">{{ $t('more') }}</div> |
|
|
|
|
|
<Teleport to="body"> |
|
|
|
|
|
<Transition enter-active-class="animate__animated animate__fadeInDown" leave-active-class="animate__animated animate__fadeOutUp"> |
|
|
|
|
|
<QuestionClassify @close="showClassify = false" v-if="showClassify" /> |
|
|
|
|
|
</Transition> |
|
|
|
|
|
</Teleport> |
|
|
|
|
|
</div> |
|
|
|
|
|
<!-- <div class="search-right"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Voice @handle-question="showClassify = true" v-if="showVoice" /> |
|
|
|
|
|
</div> --> |
|
|
|
|
|
|
|
|
<SearchResultList @handle-shop="handleShop" @handle-activity="handleActivity" :list="searchShopListRef" :config="config" v-if="keywords.length && !showVoice" /> |
|
|
|
|
|
|
|
|
|
|
|
<Voice @handle-question="showClassify = true" v-if="showVoice" /> |
|
|
</div> |
|
|
</div> |
|
|
<div class="search-btn" @click="close"> |
|
|
<div class="search-btn" @click="close"> |
|
|
<img src="../../assets/images/search/back.png" alt="" /> |
|
|
<img src="../../assets/images/search/back.png" alt="" /> |
|
|
@ -201,7 +189,7 @@ onBeforeUnmount(() => { |
|
|
.input { |
|
|
.input { |
|
|
border: none; |
|
|
border: none; |
|
|
outline: none; |
|
|
outline: none; |
|
|
width: 255px; |
|
|
|
|
|
|
|
|
width: 262px; |
|
|
height: 78px; |
|
|
height: 78px; |
|
|
background: transparent; |
|
|
background: transparent; |
|
|
font-weight: 700; |
|
|
font-weight: 700; |
|
|
|