微信小程序image标签添加click事件失效
微信小程序商城开发中搜索输入框"X"(图片)增加click事件失效
<view class="flex-items-plus flex-row mar-top-20">
<view class="searchImg-box flex-items-plus">
<image class="searchImg" src="https://ceres.zkthink.com/static/img/searchImg.png"></image>
<input class="search-box" v-model="keyWord" placeholder-class="searchboxPlace"
placeholder="请输入您想要的宝贝" />
<image class="searchClose-icon" @click="searchTextDel"
src="https://ceres.zkthink.com/static/img/index/searchClose_icon.png"></image>
</view>
<view class="mar-left-40 fs26" @click="getList">搜索</view>
</view>
直接不进入点击事件
searchTextDel() {
console.log(this.keyWord,"this.keyWord");
this.keyWord = ''
},