guo преди 2 години
родител
ревизия
93f1df8c1a
променени са 6 файла, в които са добавени 17 реда и са изтрити 1 реда
  1. 14 0
      pages/mobile/index.vue
  2. 2 1
      pages/mobile/modelThree.vue
  3. 1 0
      pages/mobile/vinDetail.vue
  4. BIN
      static/img/banner_chexingjian.png
  5. BIN
      static/img/barner_noimg.png
  6. BIN
      static/img/noimg.png

+ 14 - 0
pages/mobile/index.vue

@@ -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;

+ 2 - 1
pages/mobile/modelThree.vue

@@ -13,7 +13,8 @@
 					
 				</swiper-item>
 				
-			</swiper>
+			</swiper>
+			<image v-else class="swiper" src="../../static/img/barner_noimg.png" mode=""></image>
 		</view>
 		<view style="height: 20rpx;background: #F4F5F7;"></view>
 		<view class="mainBox">

+ 1 - 0
pages/mobile/vinDetail.vue

@@ -15,6 +15,7 @@
 				</swiper-item>
 				
 			</swiper>
+			<image v-else class="swiper" src="../../static/img/barner_noimg.png" mode=""></image>
 			
 		</view>
 		<view style="height: 20rpx;background: #F4F5F7;"></view>

BIN
static/img/banner_chexingjian.png


BIN
static/img/barner_noimg.png


BIN
static/img/noimg.png