Explorar el Código

注册选择单位直接搜索不让直接点击

wgl hace 4 años
padre
commit
a1d6772d3d
Se han modificado 1 ficheros con 7 adiciones y 6 borrados
  1. 7 6
      src/projects/home/views/Register/Business/Step2.vue

+ 7 - 6
src/projects/home/views/Register/Business/Step2.vue

@@ -5,7 +5,7 @@
 
 		<div class="mui-content vongi-xzdw">
 			<div class="mui-content-padded vongi-xzdw-search">
-				<input @focusin="searchIn" @focusout="searchOut" @keyup="doSearchCompany" v-model="searchForm.name" type="search"
+				<input @focusin="searchIn" @focusout="searchOut" @keyup.enter="doSearchCompany" v-model="searchForm.name" type="search"
 				 placeholder="请输入公司名称">
 				<span class="mui-icon mui-icon-search"></span>
 			</div>
@@ -120,7 +120,7 @@
 				firstCompanyList: [],
 				secondCompanyList: [],
 
-				showType: 'select',
+				showType: 'search', //select
 				searchForm: {
 					sceneId: '',
 					name: '',
@@ -213,17 +213,18 @@
 			//进入搜索
 			searchIn() {
 				this.inputIng = false;
-				this.showType = 'search';
+				//this.showType = 'search';
 			},
 			//离开搜索
 			searchOut() {
 				if (!this.searchForm.name) {
-					this.showType = 'select';
+					//this.showType = 'select';
 				}
 			},
 			//搜索
 			doSearchCompany() {
-				if (this.inputIng) {
+				this.getSearchCompanyList();
+				/* if (this.inputIng) {
 					return false
 				}
 				this.inputIng = true;
@@ -233,7 +234,7 @@
 						_this.searchForm.pageIndex = 1;
 						_this.getSearchCompanyList();
 					}
-				}, 500);
+				}, 500); */
 			},
 			//根据公司名称搜索
 			getSearchCompanyList() {