Commit 0c673254 by 施宇

111

parent 7d38e708
Showing with 3 additions and 3 deletions
...@@ -264,9 +264,9 @@ ...@@ -264,9 +264,9 @@
}); });
$('.input_btn').click(function () { $('.input_btn').click(function () {
var val = $.trim($('.search-input').val()); var val = $.trim($('.search-input').val());
if(!val.length){ if (!val.length) {
layer.msg('搜索内容不能为空') layer.msg('搜索内容不能为空')
}else } else
if (val.length < 3) { if (val.length < 3) {
layer.msg('请至少输入3个字符') layer.msg('请至少输入3个字符')
} else { } else {
...@@ -274,7 +274,7 @@ ...@@ -274,7 +274,7 @@
if (token) { if (token) {
window.location.href = home_url + '/search?key=' + val + '&type=1&time=1'; window.location.href = home_url + '/search?key=' + val + '&type=1&time=1';
} else { } else {
window.location.href = search_url + '/indexsearch/'+decodeURIComponent(val)+'_1_1'; window.location.href = search_url + '/indexsearch/' + decodeURIComponent(val) + '_1_1';
} }
} }
......
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