fix(goods search): 修复搜索框点击区域问题

将搜索触发事件从整个搜索盒移动到搜索图标上,避免点击输入框时误触发搜索
This commit is contained in:
2026-07-09 15:51:32 +08:00
parent 94be20d499
commit d0a3976cda

View File

@@ -2,9 +2,9 @@
<view :style="themeColor">
<view class="content" :style="tabBarPagePaddingStyle">
<view class="cate-search">
<view class="search-box" @tap.stop="search()">
<input class="uni-input" maxlength="50" v-model="inputValue" confirm-type="search" @focus="inputFocus" focus @confirm="search()" @tap="search()" :placeholder="searchWords ? searchWords : ''" />
<text class="iconfont icon-sousuo3"></text>
<view class="search-box">
<input class="uni-input" maxlength="50" v-model="inputValue" confirm-type="search" @focus="inputFocus" focus :placeholder="searchWords ? searchWords : ''" />
<text class="iconfont icon-sousuo3" @tap.stop="search()"></text>
</view>
</view>
<view class="search-content">