소스 검색

bug 修复

lilei 3 년 전
부모
커밋
0baccd23d2
1개의 변경된 파일7개의 추가작업 그리고 7개의 파일을 삭제
  1. 7 7
      pages/latePlay/chooseProduct.vue

+ 7 - 7
pages/latePlay/chooseProduct.vue

@@ -6,9 +6,10 @@
 			v-model="queryWord" 
 			:show-action="isGobleSearch" 
 			@focus="isGobleSearch=true" 
+			@blur="isGobleSearch=false"
 			@custom="searchPart" 
 			@search="searchPart" 
-			@clear="searchPart"
+			@clear="clearSearch"
 			:action-style="{'color': '#fff', 'font-size': '24upx', 'background-color': '#57a3f3', 'border-radius': '6upx', 'padding': '12upx 0'}">
 			</u-search>
 			<view class="p-title">
@@ -29,6 +30,7 @@
 							</view>
 							<view class="pinfo">
 								<view class="pname">
+									<text class="pno">A10</text>
 									箭牌机油滤清器10款进口大众途锐 5.0L V10 TDI
 								</view>
 								<view class="ptxt flex align_center justify_between">
@@ -84,11 +86,11 @@
 				this.queryWord = ''
 				this.pageNo = 1
 				this.partList = []
+				this.getpartList()
 			},
 			// 搜索配件
 			searchPart(){
 				if(this.queryWord != ''){
-					this.clearSearch()
 					this.getpartList()
 				}
 			},
@@ -209,7 +211,7 @@
 						.pno{
 							background-color: rgba(3, 54, 146, 0.15);
 							border-radius: 50rpx;
-							padding: 0 20rpx;
+							padding: 2rpx 20rpx;
 							color: #033692;
 							font-size: 24rpx;
 							margin-right: 10rpx;
@@ -225,10 +227,8 @@
 				}
 				.ptools{
 					margin-top: 20rpx;
-					.pcurnums{
-						> text{
-							margin-right: 20rpx;
-						}
+					.print{
+						padding: 0 10rpx;
 					}
 				}
 			}