Commit 62fda92f by libai

测试

parent 14dd8eb4
Showing with 6 additions and 1 deletions
...@@ -168,15 +168,20 @@ function loginGo(){ ...@@ -168,15 +168,20 @@ function loginGo(){
loginLayer() loginLayer()
return; return;
} }
if($(".search-input").val()==''||$(".search-input").val().split(" ").join("").length == 0){
layer.msg("請輸入要搜索的內容")
return;
}
window.location.href="https://www.footseen.xyz/yazhaiTest/search/index.html?search="+$(".search-input").val()+"" window.location.href="https://www.footseen.xyz/yazhaiTest/search/index.html?search="+$(".search-input").val()+""
}) })
$(".search-input").on("keydown",function(event){ $(".search-input").on("keydown",function(event){
if (event.keyCode == "13") {
if(localStorage.uid==undefined){ if(localStorage.uid==undefined){
loginLayer() loginLayer()
return; return;
} }
if (event.keyCode == "13") {
if($(".search-input").val()==''||$(".search-input").val().split(" ").join("").length == 0){ if($(".search-input").val()==''||$(".search-input").val().split(" ").join("").length == 0){
layer.msg("請輸入要搜索的內容") layer.msg("請輸入要搜索的內容")
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment