|
@@ -4,6 +4,8 @@
|
|
|
<view class="inputBox">
|
|
|
<img src="../../static/img/icon_search.png" alt="" class="searchImg">
|
|
|
<input v-model="vin" type="text" placeholder="请输入17位车架号查询" class="topInput" @confirm="inputconfirm">
|
|
|
+ <image src="../../static/img/icon_close.png" class="searchClose" v-if="vin!=''"
|
|
|
+ @click="clear"></image>
|
|
|
<!-- <image src="../../static/img/icon_camera.png" mode="" class="cameraImg"></image> -->
|
|
|
</view>
|
|
|
</view>
|
|
@@ -31,6 +33,10 @@
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ clear(){
|
|
|
+ this.vin = ''
|
|
|
+ this.$emit('search','');
|
|
|
+ },
|
|
|
inputconfirm(){
|
|
|
console.log(this.vin)
|
|
|
this.gogroup()
|
|
@@ -81,6 +87,14 @@
|
|
|
padding-left: 16rpx;
|
|
|
width: 500rpx;
|
|
|
}
|
|
|
+ .searchClose {
|
|
|
+ position: absolute;
|
|
|
+ width: 36rpx;
|
|
|
+ height: 36rpx;
|
|
|
+ right: 36rpx;
|
|
|
+ top: 20rpx;
|
|
|
+
|
|
|
+ }
|
|
|
.cameraImg{
|
|
|
position: absolute;
|
|
|
width: 40rpx;
|