Browse Source

样式优化

twt 3 days ago
parent
commit
c9444c9340
2 changed files with 8 additions and 2 deletions
  1. 3 1
      pages/index/index.vue
  2. 5 1
      pages/index/sgoodsList.vue

+ 3 - 1
pages/index/index.vue

@@ -11,8 +11,10 @@
 				</view>
 		    	<view class="ssView" @click="goSearch">
 					<image class="newSImg" src="/static/img/newS.png" mode=""></image>
-					<input type="text" class="sInput" placeholder-style="color:#C4C4C4" placeholder="请输入车辆品牌、车系"/>
+					<input type="text" class="sInput" v-if="ssType==1" placeholder-style="color:#C4C4C4" placeholder="请输入车辆品牌、车系"/>
+					<input type="text" class="sInput" v-if="ssType==2" placeholder-style="color:#C4C4C4" placeholder="请输入商品型号"/>
 				</view>
+				
 		    </view>
 			<view class="ssBox"  v-if="bIndex==3">
 				<view class="ssView" >

+ 5 - 1
pages/index/sgoodsList.vue

@@ -4,7 +4,7 @@
 	<view class="sTopBox">
 			  <view class="searchInputBox" >
 			  	<image src="../../static/img/icon_search.png" mode="" class="simg"></image>
-			  	<input v-model="value" type="text"  placeholder="请输入商品" 
+			  	<input v-model="value" type="text"  placeholder="请输入商品型号" 
 				placeholder-class="ip" class="ssinput" @confirm="searchFn" focus>
 				<image src="../../static/img/icon_search_del.png" mode="" class="search_del" @click="searchDel"></image>
 			  </view>
@@ -115,6 +115,9 @@
 			  this.pageIndex=1
 			  this.queryMaintainPartList()
 			},
+			searchDel(){
+				this.value=''
+			},
 			searchFn(){
 				this.MaintainPartList=[];
 				this.pageIndex=1
@@ -459,6 +462,7 @@ color: #FFFFFF;font-size: 28rpx;padding-left: 16rpx;
 		width: 36rpx;height: 36rpx;padding-top: 23rpx;padding-bottom: 10px;padding-right: 10rpx;
 		position: absolute;
 		    right: 0;
+			z-index: 11;
 	}
 	.simg{
 		width: 36rpx;height: 34rpx;margin-top: 23rpx;margin-left:30rpx;