Commit 36b78596 by libai

测试

parent c17ec4b9
Showing with 25 additions and 2 deletions
......@@ -215,6 +215,29 @@ $(function(){
}
$(".search-user-ul").html(html)
$(".search-user-box").show()
$(".like-user-click").unbind("click").on("click",function(){
var _self=$(this)
$.ajax({
url:$ip+'room/likeOpt',
data:{
roomId:_self.attr("data-type"),
optType:1,
uid:localStorage.uid,
token:localStorage.token,
pageID: localStorage.canvasCode,
},
success:function(data){
console.log('關注',data)
if(data.code==1){
_self.unbind("click")
_self.addClass("like-user-btn2")
_self.text("已追蹤")
}else{
layer.msg(data.msg)
}
}
})
})
}
})
}
......@@ -243,7 +266,7 @@ $(function(){
var list=data.dataList[i];
var videoList=JSON.parse(list.content)
// console.log(videoList)
html+='<a href="room/videoRoom.html?topicId='+list.topicId+'&tag=""">'
html+='<a href="../room/videoRoom.html?topicId='+list.topicId+'&tag=""">'
html+='<li>';
html+='<div style="background: url(https://zhibocdn.yabolive.net/comm'+videoList.videos[0].cover+')no-repeat;background-size: cover;background-position-y: center;" class="video-top-box">';
html+='<div class="live-cursor-shadow"></div>';
......@@ -291,7 +314,7 @@ $(function(){
for(var i=0;i<data.dataList.length;i++){
var list=data.dataList[i];
var imgList=JSON.parse(list.content)
html+='<a href="room/imagesRoom.html?topicId='+list.topicId+'&tag=""">'
html+='<a href="../room/imagesRoom.html?topicId='+list.topicId+'&tag=""">'
html+='<li>';
if(imgList.images==undefined){
var mRandom=Math.ceil(Math.random()*10)
......
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