Ver Fonte

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

zhangyuhan há 3 anos atrás
pai
commit
ba57dcc238
1 ficheiros alterados com 4 adições e 2 exclusões
  1. 4 2
      src/web/templates/pc/supsearch.html

+ 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}}:"";