Commit ca795abe by libai

测试

parent e87be577
Showing with 8 additions and 6 deletions
......@@ -129,7 +129,7 @@ $(function(){
$(".search-input").val(searchData)
$(".search-user-box").show()
searchGoUser(searchData,3,false)
searchGoVideo(searchData,12)
searchGoVideo(searchData,12)
if(noVideo==true&&noUser==true){
$(".like-no-box p").text('找到'+searchData+'相關內容 0 個,相關用戶 0 人')
$(".like-no-box").show()
......@@ -202,17 +202,19 @@ $(function(){
success:function(data){
console.log('搜索用户',data)
var html=[];
if(data.data.length==0){
noUser=true;
return;
}
if(data.code==-20062){
setTimeout(function(){
searchGoUser(e,pageNum,asyncFlag)
},500)
return;
}
for(var i=0;i<data.data.length;i++){
if(data.data.length==0){
noUser=true;
return;
}
for(var i=0;i<pageNum;i++){
if(data.data[i]==undefined)break;
var list=data.data[i];
html+='<li>';
if(list.isLive>0)html+='<img class="live-icon" src="images/live.png" alt="美女直播">'
......
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