Administrator 5 năm trước cách đây
mục cha
commit
00238d6bcc
1 tập tin đã thay đổi với 13 bổ sung12 xóa
  1. 13 12
      components/cm-module/listTemplate/immediatelyList.vue

+ 13 - 12
components/cm-module/listTemplate/immediatelyList.vue

@@ -10,16 +10,18 @@
 			</view>
 			<view class="search-from name">
 				<text class="iconfont icon-iconfonticonfontsousuo1"></text>
-				<input class="input"  
-					   type="text" 
-					   focus
-					   confirm-type="search" 
-					   v-model="searchInputVal" 
-					   placeholder="请输入商品关键词" 
-					   @input="onShowClose" 
-					   @confirm="searchOpertor"
-					   bindconfirm='goSearch'
-					   maxlength="20"/>
+				 <form class="search-block" action="javascript:void 0">
+					<input class="input"  
+						   type="text" 
+						   focus
+						   confirm-type="search" 
+						   v-model="searchInputVal" 
+						   placeholder="请输入商品关键词" 
+						   @input="onShowClose" 
+						   @confirm="searchOpertor"
+						   @keyup.13="goSearch"
+						   maxlength="20"/>
+				</form>
 				<text class="iconfont icon-shanchu1" v-if="isShowClose" @click="delInputText()"></text>
 			</view>
 			<view class="search-btn" :class="tabIndex">
@@ -177,7 +179,6 @@
 					{name:'组合商品',id:'zuhe'}
 				],
 				 isShow: false,
-				 keyWord: '',
 			}
 		},
 		created() {
@@ -272,7 +273,7 @@
 				}
 			},
 			goSearch(event){
-				 if (this.keyWord) {
+				 if (event.keyCode == 13) {
 				      this.getcombinationProduct();
 				    }
 			},