Commit bf5c5bca by libai

测试

parent 9f6cdbbf
...@@ -407,6 +407,13 @@ ...@@ -407,6 +407,13 @@
<script> <script>
$(function(){ $(function(){
var browserLang = navigator.language
if(browserLang.indexOf("zh")==-1){
$(".bottom-nav-img1 p").text()
$(".bottom-nav-img2 p").text()
$(".bottom-nav-img3 p").text()
$(".bottom-nav-img4 p").text()
}
//判斷渠道 //判斷渠道
liveList(1) liveList(1)
if(sessionStorage.type=="pwa"){ if(sessionStorage.type=="pwa"){
...@@ -895,7 +902,7 @@ $(function(){ ...@@ -895,7 +902,7 @@ $(function(){
pageID:localStorage.canvasCode pageID:localStorage.canvasCode
}, },
success:function(data){ success:function(data){
console.log('直播列表',data) // console.log('直播列表',data)
var html=[]; var html=[];
var j=0 var j=0
for(var i=0;i<data.normalRoomList.length;i++){ for(var i=0;i<data.normalRoomList.length;i++){
......
...@@ -1453,8 +1453,10 @@ $(function(){ ...@@ -1453,8 +1453,10 @@ $(function(){
for(var i=0;i<10;i++){ for(var i=0;i<10;i++){
if(data.dataList[i]==undefined)continue; if(data.dataList[i]==undefined)continue;
var list=data.dataList[i] var list=data.dataList[i]
if(list.face=='/user/boy.png')var faceImg='images/boy.png';
else var faceImg='https://zhibocdn.yabolive.net/comm'+list.face+'?x-oss-process=image/resize,w_50';
html+='<li data-type="'+list.uid+'">'; html+='<li data-type="'+list.uid+'">';
html+='<img src="https://zhibocdn.yabolive.net/comm'+list.face+'?x-oss-process=image/resize,w_78" alt="">'; html+='<img src="https://zhibocdn.yabolive.net/comm'+faceImg+'?x-oss-process=image/resize,w_78" alt="">';
html+='</li>'; html+='</li>';
} }
if(data.dataList.length<10) $(".room-user-ul").css("width",data.dataList.length+'rem') if(data.dataList.length<10) $(".room-user-ul").css("width",data.dataList.length+'rem')
...@@ -2087,9 +2089,9 @@ $(function(){ ...@@ -2087,9 +2089,9 @@ $(function(){
// $(".richAddShow-go").eq(0).remove() // $(".richAddShow-go").eq(0).remove()
// }, 1000); // }, 1000);
} }
//热门值互动值
if(obj.cid == 4700){ if(obj.cid == 4700){
var list=JSON.parse(obj.content) var list=JSON.parse(obj.content)
console.log("推了",list.content.interacNum,list.content.popularNum)
if(list.content.popularNum>0)$(".hot-list-box >i").text(list.content.popularNum) if(list.content.popularNum>0)$(".hot-list-box >i").text(list.content.popularNum)
if(list.content.interacNum>0)$(".interac-list-box >i").text(list.content.interacNum) if(list.content.interacNum>0)$(".interac-list-box >i").text(list.content.interacNum)
} }
......
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
<div style="top: 168px;" class="rich-list-box-jiao"></div> <div style="top: 168px;" class="rich-list-box-jiao"></div>
<img class="list-floor-left" src="images/list-floor.png" alt=""> <img class="list-floor-left" src="images/list-floor.png" alt="">
<img class="list-floor-right" src="images/list-floor.png" alt=""> <img class="list-floor-right" src="images/list-floor.png" alt="">
<div class="hot-list-box-top">熱門</div> <div class="hot-list-box-top">人氣</div>
<ul class="hot-list-ul"> <ul class="hot-list-ul">
<!-- <li> <!-- <li>
<div class="hot-list-li-box1">4</div> <div class="hot-list-li-box1">4</div>
...@@ -647,7 +647,7 @@ $(function () { ...@@ -647,7 +647,7 @@ $(function () {
else{ else{
$(".live-content-box-left-roombox").append("<img class='mc-out' src='images/mc-out.png'>") $(".live-content-box-left-roombox").append("<img class='mc-out' src='images/mc-out.png'>")
} }
$(".hot-box >span").text(data.room.hotResult.score) $(".hot-box >span").text(data.roomOtherInfo.popularNum)
$(".rich-box >span").text(data.roomOtherInfo.charm) $(".rich-box >span").text(data.roomOtherInfo.charm)
$(".mc-tips div").text(data.roomBaseInfo.sign.replace("Firefly Live","Footseen")) $(".mc-tips div").text(data.roomBaseInfo.sign.replace("Firefly Live","Footseen"))
var html = []; var html = [];
...@@ -1129,20 +1129,15 @@ $(function () { ...@@ -1129,20 +1129,15 @@ $(function () {
} }
function hotList() { function hotList() {
$.ajax({ $.ajax({
url: $ip + 'room/hot', url: $ip + 'rank/popular/list',
data: { data: {
roomid: sessionStorage.roomId, pageID: localStorage.canvasCode,
pageNum: 1,
pageSize: 99,
type: 0,
pass: true,
pageID: localStorage.canvasCode
}, },
success: function (data) { success: function (data) {
//console.log("热门榜单", data) //console.log("热门榜单", data)
var html = []; var html = [];
for (var i = 0; i < data.ranklist.length; i++) { for (var i = 0; i < data.rankList.length; i++) {
var list = data.ranklist[i] var list=data.rankList[i]
if(list.uid==sessionStorage.roomId)html += '<a href="javascript:;"><li>'; if(list.uid==sessionStorage.roomId)html += '<a href="javascript:;"><li>';
else html += '<a target="_blank" href="https://www.footseen.xyz/room/liveRoom.html?roomId='+list.uid+'"><li>'; else html += '<a target="_blank" href="https://www.footseen.xyz/room/liveRoom.html?roomId='+list.uid+'"><li>';
html += '<div class="hot-list-li-box1">' + (i + 1) + '</div>'; html += '<div class="hot-list-li-box1">' + (i + 1) + '</div>';
...@@ -2788,13 +2783,17 @@ $(function () { ...@@ -2788,13 +2783,17 @@ $(function () {
if (obj.cid == 4200){ if (obj.cid == 4200){
var list=JSON.parse(obj.content) var list=JSON.parse(obj.content)
//console.log('主播數據變更',list); //console.log('主播數據變更',list);
$(".hot-box >span").text(list.content.hotnum)
$(".rich-box >span").text(list.content.bonds) $(".rich-box >span").text(list.content.bonds)
$(".rich-box").append('<div class="rich-add-box richAddShow-go">+'+list.content.changebonds+'</div>') $(".rich-box").append('<div class="rich-add-box richAddShow-go">+'+list.content.changebonds+'</div>')
setTimeout(function() { setTimeout(function() {
$(".richAddShow-go").eq(0).remove() $(".richAddShow-go").eq(0).remove()
}, 1000); }, 1000);
} }
//热门值互动值
if(obj.cid == 4700){
var list=JSON.parse(obj.content)
if(list.content.popularNum>0)$(".hot-box >span").text(list.content.popularNum)
}
//主播直播状态 //主播直播状态
if (obj.cid == 4300){ if (obj.cid == 4300){
var list=JSON.parse(obj.content) var list=JSON.parse(obj.content)
...@@ -2942,7 +2941,7 @@ $(function () { ...@@ -2942,7 +2941,7 @@ $(function () {
} }
// Reconnection++ // Reconnection++
ReconnectionT=setInterval(function() { ReconnectionT=setTimeout(function() {
WebSocketGo() WebSocketGo()
Reconnection++ Reconnection++
......
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