|
|
|
@ -10,15 +10,8 @@
|
|
|
|
<view class="search-icon">
|
|
|
|
<view class="search-icon">
|
|
|
|
<text class="iconfont icon-search"></text>
|
|
|
|
<text class="iconfont icon-search"></text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<input
|
|
|
|
<input v-model="menuSearchKeyword" class="search-input" type="text" placeholder="搜索菜单"
|
|
|
|
v-model="menuSearchKeyword"
|
|
|
|
placeholder-class="input-placeholder" @input="handleMenuSearch" @confirm="handleMenuSearch" />
|
|
|
|
class="search-input"
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
placeholder="搜索菜单"
|
|
|
|
|
|
|
|
placeholder-class="input-placeholder"
|
|
|
|
|
|
|
|
@input="handleMenuSearch"
|
|
|
|
|
|
|
|
@confirm="handleMenuSearch"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<view v-if="menuSearchKeyword" class="clear-btn" @click="clearMenuSearch">
|
|
|
|
<view v-if="menuSearchKeyword" class="clear-btn" @click="clearMenuSearch">
|
|
|
|
<text class="clear-icon">×</text>
|
|
|
|
<text class="clear-icon">×</text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
@ -346,7 +339,10 @@ const scrollTop = ref(0);
|
|
|
|
const menuSearchKeyword = ref('');
|
|
|
|
const menuSearchKeyword = ref('');
|
|
|
|
|
|
|
|
|
|
|
|
function goTop() {
|
|
|
|
function goTop() {
|
|
|
|
scrollTop.value = scrollTop.value === 0 ? 0.1 : 0;
|
|
|
|
uni.pageScrollTo({
|
|
|
|
|
|
|
|
scrollTop: 0,
|
|
|
|
|
|
|
|
duration: 300
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function handleMenuSearch() {
|
|
|
|
function handleMenuSearch() {
|
|
|
|
|