Commit c17ec4b9 by libai

测试

parent 35250897
Showing with 5 additions and 5 deletions
......@@ -127,7 +127,7 @@ $(function(){
if(data.search!=undefined){
var searchData=decodeURI(location.href.split("search=")[1])
$(".search-input").val(searchData)
searchGoUser(searchData,3)
searchGoUser(searchData,3,'false')
searchGoVideo(searchData,12)
if(noVideo==true&&noUser==true){
$(".like-no-box p").text('找到'+searchData+'相關內容 0 個,相關用戶 0 人')
......@@ -140,7 +140,7 @@ $(function(){
$(".search-top-box div").removeClass("search-top-click")
_self.addClass("search-top-click")
if(_self.attr("data-type")==1){
searchGoUser(searchData,3)
searchGoUser(searchData,3,'false')
searchGoVideo(searchData,12)
$(".images-box").hide()
if(noVideo==true&&noUser==true){
......@@ -151,7 +151,7 @@ $(function(){
$(".like-no-box").hide()
}
else if(_self.attr("data-type")==2){
searchGoUser(searchData,30)
searchGoUser(searchData,30,'true')
$(".video-box").hide()
$(".images-box").hide()
if(noUser==true){
......@@ -184,7 +184,7 @@ $(function(){
$(".like-no-box").hide()
}
})
function searchGoUser(e,pageNum){
function searchGoUser(e,pageNum,asyncFlag){
$.ajax({
url:$ip+'search/queryUser',
data:{
......@@ -195,7 +195,7 @@ $(function(){
uid:localStorage.uid,
token:localStorage.token
},
async:false,
async:asyncFlag,
success:function(data){
console.log('搜索用户',data)
var html=[];
......
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