Commit 2c74cf69 by libai

测试

parent 9b572ce9
...@@ -5,13 +5,13 @@ ...@@ -5,13 +5,13 @@
var bbb = location.href; var bbb = location.href;
if (bbb.indexOf("footseen.xyz") > -1) { if (bbb.indexOf("footseen.xyz") > -1) {
$ip = "https://cpapi.footseen.xyz/"; $ip = "https://cpapi.footseen.xyz/";
$ip2="https://webserver.yabolive.net" $ip2= "https://webserver.yabolive.net"
$ws = "wss://websocket.footseen.xyz:12308/" $ws = "wss://websocket.footseen.xyz:12308/"
// checkIp() checkIp()
} }
else{ else{
$ip='http://cpapitest.yabolive.net:81/' $ip = 'http://cpapitest.yabolive.net:81/'
$ip2="http://ceshi.yabolive.tv/web" $ip2= "http://ceshi.yabolive.tv/web"
$ws = "ws://47.242.178.187:12308/" $ws = "ws://47.242.178.187:12308/"
// localStorage.canvasCode='phone' // localStorage.canvasCode='phone'
} }
......
...@@ -5,16 +5,17 @@ ...@@ -5,16 +5,17 @@
var bbb = location.href; var bbb = location.href;
if (bbb.indexOf("footseen.xyz") > -1) { if (bbb.indexOf("footseen.xyz") > -1) {
$ip = "https://cpapi.footseen.xyz/"; $ip = "https://cpapi.footseen.xyz/";
$ip2="https://webserver.yabolive.net" $ip2= "https://webserver.yabolive.net"
$ws = "wss://websocket.footseen.xyz:12308/" $ws = "wss://websocket.footseen.xyz:12308/"
checkIp() checkIp()
} }
else{ else{
$ip='http://cpapitest.yabolive.net:81/' $ip = 'http://cpapitest.yabolive.net:81/'
$ip2="http://ceshi.yabolive.tv/web" $ip2= "http://ceshi.yabolive.tv/web"
$ws = "ws://47.242.178.187:12308/" $ws = "ws://47.242.178.187:12308/"
// localStorage.canvasCode='phone' // localStorage.canvasCode='phone'
} }
if(bbb.indexOf("userRoom.html")==-1){ if(bbb.indexOf("userRoom.html")==-1){
sessionStorage.lastUrl=bbb sessionStorage.lastUrl=bbb
} }
......
...@@ -692,6 +692,8 @@ $(function(){ ...@@ -692,6 +692,8 @@ $(function(){
var startTimer1=null var startTimer1=null
var startTimer2=null var startTimer2=null
var startTimer3=null var startTimer3=null
//發言條數
var sendNum=0
$(".room-bg").css("height",dHeight+'px') $(".room-bg").css("height",dHeight+'px')
$(".video-box").css("height",dHeight+'px') $(".video-box").css("height",dHeight+'px')
$(".room-content-loading").css("height",dHeight+'px') $(".room-content-loading").css("height",dHeight+'px')
...@@ -756,7 +758,7 @@ $(function(){ ...@@ -756,7 +758,7 @@ $(function(){
startLive() startLive()
//进入直播间 //进入直播间
if(localStorage.uid!=undefined){ if(localStorage.uid!=undefined){
// newReg() newReg()
} }
function startLive(e){ function startLive(e){
$.ajax({ $.ajax({
...@@ -1176,6 +1178,13 @@ $(function(){ ...@@ -1176,6 +1178,13 @@ $(function(){
layer.msg(langRoom[sessionStorage.lang].roomJsTxt3) layer.msg(langRoom[sessionStorage.lang].roomJsTxt3)
$(".room-mc-box").css("transition","0.3s all") $(".room-mc-box").css("transition","0.3s all")
$(".room-mc-box").addClass("room-mc-box2") $(".room-mc-box").addClass("room-mc-box2")
if(sessionStorage.firstReg==1){
$(".active-room-shadow").show()
$(".active-room-box").show()
var html=[];
html+='<iframe src="https://activity.yazhaiyabo.com/activeFt/newCharge/index.html?uid='+localStorage.uid+'&token='+localStorage.token+'&lang='+sessionStorage.lang+'&roomid='+sessionStorage.roomId+'" frameborder="0"></iframe>'
$(".active-room-box").html(html).css("bottom","0rem")
}
}else{ }else{
layer.msg(data.msg) layer.msg(data.msg)
} }
...@@ -1498,15 +1507,16 @@ $(function(){ ...@@ -1498,15 +1507,16 @@ $(function(){
lang:sessionStorage.lang lang:sessionStorage.lang
}, },
success:function(data){ success:function(data){
// console.log('首充活动',data) console.log('首充活动',data)
if(data.dataList.is_show==1){ if(data.dataList.is_show==1){
sessionStorage.firstReg=1
$(".room-reg-icon").fadeIn(350) $(".room-reg-icon").fadeIn(350)
$(".room-reg-icon").unbind("click").on("click",function(){ $(".room-reg-icon").unbind("click").on("click",function(){
$(".active-room-shadow").show() $(".active-room-shadow").show()
$(".active-room-box").show() $(".active-room-box").show()
var html=[]; var html=[];
html+='<iframe src="https://activity.yazhaiyabo.com/activeFt/firstCharge/firstChargeFootseen/room.html?uid='+localStorage.uid+'&token='+localStorage.token+'&lang='+sessionStorage.lang+'&roomid='+sessionStorage.roomId+'" frameborder="0"></iframe>' html+='<iframe src="https://activity.yazhaiyabo.com/activeFt/newCharge/index.html?uid='+localStorage.uid+'&token='+localStorage.token+'&lang='+sessionStorage.lang+'&roomid='+sessionStorage.roomId+'&pageID='+localStorage.canvasCode+'" frameborder="0"></iframe>'
$(".active-room-box").html(html).css("bottom","0rem") $(".active-room-box").html(html).css("bottom","0rem")
}) })
$(".active-room-shadow").unbind("click").on("click",function(){ $(".active-room-shadow").unbind("click").on("click",function(){
...@@ -2638,6 +2648,7 @@ $(function(){ ...@@ -2638,6 +2648,7 @@ $(function(){
data:{ data:{
uid:localStorage.uid, uid:localStorage.uid,
token:localStorage.token, token:localStorage.token,
roomid:sessionStorage.roomId,
pass: true, pass: true,
pageID: localStorage.canvasCode, pageID: localStorage.canvasCode,
}, },
...@@ -3419,7 +3430,17 @@ $(function(){ ...@@ -3419,7 +3430,17 @@ $(function(){
return; return;
} }
if(data.code==1){ if(data.code==1){
sendNum++
if(sessionStorage.firstReg==1&&sendNum==3){
setTimeout(function() {
$(".active-room-shadow").show()
$(".active-room-box").show()
var html=[];
html+='<iframe src="https://activity.yazhaiyabo.com/activeFt/newCharge/index.html?uid='+localStorage.uid+'&token='+localStorage.token+'&lang='+sessionStorage.lang+'&roomid='+sessionStorage.roomId+'" frameborder="0"></iframe>'
$(".active-room-box").html(html).css("bottom","0rem")
}, 1000);
}
$(".keyboard-input").val("") $(".keyboard-input").val("")
var ua = window.navigator.userAgent.toLowerCase(); var ua = window.navigator.userAgent.toLowerCase();
if (/android/.test(ua)) { if (/android/.test(ua)) {
......
...@@ -1538,7 +1538,7 @@ $(function () { ...@@ -1538,7 +1538,7 @@ $(function () {
// html+='<div class="swiper-slide"><img data-type="'+list.url+'" data-type2="'+list.urlType+'" class="act-btn" src="https://zhibocdn.yabolive.net/comm'+list.webIcon+'?x-oss-process=image/resize,w_174" alt=""></div>'; // html+='<div class="swiper-slide"><img data-type="'+list.url+'" data-type2="'+list.urlType+'" class="act-btn" src="https://zhibocdn.yabolive.net/comm'+list.webIcon+'?x-oss-process=image/resize,w_174" alt=""></div>';
// } // }
// } // }
html+='<div class="swiper-slide"><img data-type="https://activity.yazhaiyabo.com/activeFt/firstCharge/firstChargeFootseen/index.html" data-type2="0" class="act-btn" src="https://zhibocdn.yabolive.net/comm/activity/8069de6c48ca4ed4a924f99ff6901e24.jpg?x-oss-process=image/resize,w_174" alt=""></div>'; html+='<div class="swiper-slide"><img data-type="https://activity.yazhaiyabo.com/activeFt/newCharge/index.html" data-type2="0" class="act-btn" src="https://zhibocdn.yabolive.net/comm/activity/8069de6c48ca4ed4a924f99ff6901e24.jpg?x-oss-process=image/resize,w_174" alt=""></div>';
if(sessionStorage.pmt==undefined||sessionStorage.pmt=='undefined')html+='<div class="swiper-slide"><img data-type="https://www.footseen.xyz/mobile/download/downApp.html?v=2022091601" data-type2="3" class="act-btn" src="'+langList[sessionStorage.lang].roomSrc5+'" alt=""></div>'; if(sessionStorage.pmt==undefined||sessionStorage.pmt=='undefined')html+='<div class="swiper-slide"><img data-type="https://www.footseen.xyz/mobile/download/downApp.html?v=2022091601" data-type2="3" class="act-btn" src="'+langList[sessionStorage.lang].roomSrc5+'" alt=""></div>';
else html+='<div class="swiper-slide"><img data-type="https://www.footseen.xyz/mobile/download/downApp.html?v=2022101101" data-type2="3" class="act-btn" src="'+langList[sessionStorage.lang].roomSrc5+'" alt=""><p id="room-qrcode"></p><img class="footseen-icon" src="../images/footseen-icon.png"></div>' else html+='<div class="swiper-slide"><img data-type="https://www.footseen.xyz/mobile/download/downApp.html?v=2022101101" data-type2="3" class="act-btn" src="'+langList[sessionStorage.lang].roomSrc5+'" alt=""><p id="room-qrcode"></p><img class="footseen-icon" src="../images/footseen-icon.png"></div>'
$(".swiper-wrapper").html(html); $(".swiper-wrapper").html(html);
...@@ -1594,7 +1594,7 @@ $(function () { ...@@ -1594,7 +1594,7 @@ $(function () {
shadeClose: true, shadeClose: true,
skin: "active-layer", skin: "active-layer",
area: ["360px", "634px"], area: ["360px", "634px"],
content: _self.attr("data-type")+'?uid='+localStorage.uid+'&token='+localStorage.token+'&roomid='+sessionStorage.roomId+'&os=pc&v='+Math.floor(Math.random()*100)+'&lang='+sessionStorage.lang+'', content: _self.attr("data-type")+'?uid='+localStorage.uid+'&token='+localStorage.token+'&roomid='+sessionStorage.roomId+'&os=pc&v='+Math.floor(Math.random()*100)+'&lang='+sessionStorage.lang+'&pageID='+localStorage.canvasCode+'',
}) })
} }
......
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