Эх сурвалжийг харах

feat: 修复空搜索条件时问题

zhangyuhan 3 жил өмнө
parent
commit
ba57dcc238

+ 4 - 2
src/web/templates/pc/supsearch.html

@@ -317,8 +317,10 @@ formarForSelectType()
 if (beforeOfSelectType != selectType) {
 	$(function () {
 		$("#zbSeatchT [name='selectType']").val(selectType);
-		console.log(selectType, '当前', beforeOfSelectType)
-		searchOnsubmit()
+		console.log(selectType, '当前', beforeOfSelectType, searchvalue, $("#zbSeatchT [name='keywords']").val())
+		if (searchvalue != '' || $("#zbSeatchT [name='keywords']").val() != '') {
+			searchOnsubmit()
+		}
 	})
 }
 var industry = {{.T.industry}}!=null?{{.T.industry}}:"";