Commit 666aa800 by libai

测试

parent 9e11cb8d
Showing with 1 additions and 46 deletions
......@@ -407,7 +407,6 @@
<script>
$(function(){
//判斷渠道
liveList(1)
newLiveList(1)
if(sessionStorage.pmt!=undefined&&sessionStorage.pmt!='undefined'){
if(sessionStorage.pmt=="other"){
......@@ -921,44 +920,6 @@ $(function(){
})
}
function liveList(e){
$.ajax({
url:$ip+'frontPage/queryLiveUsers',
data:{
pageNum:e,
pageSize:100,
uid:localStorage.uid || '',
token:localStorage.token || '',
pageID:localStorage.canvasCode
},
success:function(data){
// console.log('直播列表',data)
if(data.code==-5008){
setTimeout(function() {
liveList(1)
}, 500);
return;
}
var html=[];
for(var i=0;i<data.roomList.length;i++){
var list=data.roomList[i]
html+='<a href="room/liveRoom.html?roomId='+list.roomId+'&sound=1&v=2022112502&back=1"><li data-type="https://zhibocdn.yabolive.net/comm'+list.face.split("?")[0]+'?x-oss-process=image/resize,w_180">';
if(list.liveScope==3)html+='<img class="secret" src="images/Lock-no.png" alt="">';
if(list.liveScope!=3)html+='<div class="hot-num-box"><img src="images/hot.png"><span>'+list.onlinenum+'</span></div>';
// html+='<img class="live-li-face" src="images/layz.png" alt="">';
html+='<img class="live-li-face" src="https://zhibocdn.yabolive.net/comm'+list.face.split("?")[0]+'?x-oss-process=image/resize,w_300" alt="">';
html+='<div class="live-shadow"></div>';
html+='<div class="live-bottom-box">';
html+='<p>'+list.nickname+'</p>';
html+='<p>'+list.introduce+'</p>';
html+='</div>';
html+='</li></a>';
}
$(".box1 .live-ul").html(html);
}
})
}
function layzGo(){
}
......
......@@ -1195,7 +1195,7 @@ $(function(){
}
function liveList(e){
$.ajax({
url:$ip+'frontPage/queryLiveUsers',
url:$ip+'frontPage/queryLiveUsers/v2',
data:{
pageNum:e,
pageSize:100,
......@@ -1205,12 +1205,6 @@ $(function(){
},
success:function(data){
console.log('直播列表',data)
if(data.code==-5008){
setTimeout(function() {
liveList(1)
}, 500);
return;
}
var newList=''
newList+='['
var j=0
......
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