|
@@ -4,7 +4,7 @@
|
|
|
<view class="searchBox">
|
|
|
<image src="../../static/img/icon_search.png" class="searchImg"></image>
|
|
|
<input type="text" class="searchInput" :placeholder='placeholder' v-model="inputValue"
|
|
|
- @click="search" />
|
|
|
+ @confirm="search" />
|
|
|
<image src="../../static/img/icon_close.png" class="searchClose" v-if="inputValue!=''"
|
|
|
@click="clear"></image>
|
|
|
</view>
|
|
@@ -30,8 +30,8 @@
|
|
|
methods:{
|
|
|
search(){
|
|
|
if (!this.inputValue) return;
|
|
|
- // console.log(this.inputValue);
|
|
|
- this.$emit(this.inputValue);
|
|
|
+ //console.log(this.inputValue);
|
|
|
+ this.$emit('search',this.inputValue);
|
|
|
|
|
|
},
|
|
|
clear(){
|