Commit 4c1259c0 by libai

测试

parent c81d6ec2
......@@ -1524,12 +1524,17 @@
margin-top: -10rem;
filter: blur(0.4rem);
}
.room-secret {
position: relative;
z-index: 500;
height: 100vh;
}
.room-secret-shadow {
width: 10rem;
height: 100vh;
position: absolute;
z-index: 5;
background: rgba(0, 0, 0, 0.5);
background: rgba(0, 0, 0, 0.1);
top: -1vw;
left: 0;
}
......
......@@ -1567,12 +1567,17 @@
filter:blur(0.4rem)
}
}
.room-secret{
position: relative;
z-index: 500;
height: 100vh;
}
.room-secret-shadow{
width: 10rem;
height: 100vh;
position: absolute;
z-index: 5;
background: rgba(0,0,0,0.5);
background: rgba(0,0,0,0.1);
top: -1vw;
left: 0;
......
......@@ -574,45 +574,45 @@ $(function(){
window.location.href="../index.html"
return;
}
if(data.room.liveScope==3&&data.room.selfLock==0&&localStorage.uid!=sessionStorage.roomId){
$(".room-content").hide()
$(".room-secret").show()
html+='<img src="https://zhibocdn.yabolive.net/comm'+data.room.face.split('?')[0]+'?x-oss-process=image/resize,w_100" alt="">';
html+='<p>'+data.room.roomName+'</p>';
$(".room-secret-mc").html(html)
$(".secret-diamond-box").html('<img src="images/diamond.png" alt="">'+data.room.tollPrice)
$(".room-secret-bg img").attr("src",'https://zhibocdn.yabolive.net/comm'+data.room.face.split('?')[0]+'?x-oss-process=image/resize,w_375')
$(".secret-btn").unbind("click").on("click",function(){
if(localStorage.token==undefined||localStorage.token=='undefined'){
$(".layer-shadow").show()
loginPage()
return;
}
$.ajax({
url:$ip+'room/to/join/buy',
data:{
uid: localStorage.uid,
token: localStorage.token,
roomId: sessionStorage.roomId,
channelId:data.room.channelId,
pageID: localStorage.canvasCode,
},
success:function(data){
// console.log('进入付费房购买资格',data)
if(data.code==1){
layer.msg("已付費,即將進入直播間")
setTimeout(function(){
window.location.reload()
},1000)
}else{
layer.msg(data.msg)
}
}
})
})
return;
}
if(data.room.liveState!=1){
// if(data.room.liveScope==3&&data.room.selfLock==0&&localStorage.uid!=sessionStorage.roomId){
// $(".room-content").hide()
// $(".room-secret").show()
// html+='<img src="https://zhibocdn.yabolive.net/comm'+data.room.face.split('?')[0]+'?x-oss-process=image/resize,w_100" alt="">';
// html+='<p>'+data.room.roomName+'</p>';
// $(".room-secret-mc").html(html)
// $(".secret-diamond-box").html('<img src="images/diamond.png" alt="">'+data.room.tollPrice)
// $(".room-secret-bg img").attr("src",'https://zhibocdn.yabolive.net/comm'+data.room.face.split('?')[0]+'?x-oss-process=image/resize,w_375')
// $(".secret-btn").unbind("click").on("click",function(){
// if(localStorage.token==undefined||localStorage.token=='undefined'){
// $(".layer-shadow").show()
// loginPage()
// return;
// }
// $.ajax({
// url:$ip+'room/to/join/buy',
// data:{
// uid: localStorage.uid,
// token: localStorage.token,
// roomId: sessionStorage.roomId,
// channelId:data.room.channelId,
// pageID: localStorage.canvasCode,
// },
// success:function(data){
// // console.log('进入付费房购买资格',data)
// if(data.code==1){
// layer.msg("已付費,即將進入直播間")
// setTimeout(function(){
// window.location.reload()
// },1000)
// }else{
// layer.msg(data.msg)
// }
// }
// })
// })
// return;
// }
if(data.room.liveState!=1&&data.room.liveScope!=3){
$(".room-content").hide()
$(".mc-out-box").show()
var html=''
......@@ -774,7 +774,7 @@ $(function(){
$(".room-content-loading").fadeOut(100)
$(".loading-face").fadeOut(100)
}, loadOutNum);
$(".sound-btn").unbind("click").on("click",function(){
$(".sound-tips").hide()
var _self=$(this)
......@@ -802,7 +802,50 @@ $(function(){
})
})
if(data.room.liveScope==3&&data.room.selfLock==0&&localStorage.uid!=sessionStorage.roomId){
// $(".room-content").hide()
$(".room-secret").show()
// html+='<img src="https://zhibocdn.yabolive.net/comm'+data.room.face.split('?')[0]+'?x-oss-process=image/resize,w_100" alt="">';
// html+='<p>'+data.room.roomName+'</p>';
// $(".room-secret-mc").html(html)
$(".secret-diamond-box").html('<img src="images/diamond.png" alt="">'+data.room.tollPrice)
$(".room-secret-bg").remove()
$(".user-msg-box").hide()
$(".room-bottom").hide()
$(".room-top").hide()
$("#myVideo").css("filter","blur(26px)")
$("#myVideo").css("transform","scale(1.05)")
// $(".room-secret-bg img").attr("src",'https://zhibocdn.yabolive.net/comm'+data.room.face.split('?')[0]+'?x-oss-process=image/resize,w_375')
$(".secret-btn").unbind("click").on("click",function(){
if(localStorage.token==undefined||localStorage.token=='undefined'){
$(".layer-shadow").show()
loginPage()
return;
}
$.ajax({
url:$ip+'room/to/join/buy',
data:{
uid: localStorage.uid,
token: localStorage.token,
roomId: sessionStorage.roomId,
channelId:data.room.channelId,
pageID: localStorage.canvasCode,
},
success:function(data){
// console.log('进入付费房购买资格',data)
if(data.code==1){
layer.msg("已付費,即將進入直播間")
setTimeout(function(){
window.location.reload()
},1000)
}else{
layer.msg(data.msg)
}
}
})
})
return;
}
giftList(1)
if(localStorage.uid!=undefined){
myDiamond()
......
......@@ -578,45 +578,7 @@ $(function(){
window.location.href="../index.html"
return;
}
if(data.room.liveScope==3&&data.room.selfLock==0&&localStorage.uid!=sessionStorage.roomId){
$(".room-content").hide()
$(".room-secret").show()
html+='<img src="https://zhibocdn.yabolive.net/comm'+data.room.face.split('?')[0]+'?x-oss-process=image/resize,w_100" alt="">';
html+='<p>'+data.room.roomName+'</p>';
$(".room-secret-mc").html(html)
$(".secret-diamond-box").html('<img src="images/diamond.png" alt="">'+data.room.tollPrice)
$(".room-secret-bg img").attr("src",'https://zhibocdn.yabolive.net/comm'+data.room.face.split('?')[0]+'?x-oss-process=image/resize,w_375')
$(".secret-btn").unbind("click").on("click",function(){
if(localStorage.token==undefined||localStorage.token=='undefined'){
$(".layer-shadow").show()
loginPage()
return;
}
$.ajax({
url:$ip+'room/to/join/buy',
data:{
uid: localStorage.uid,
token: localStorage.token,
roomId: sessionStorage.roomId,
channelId:data.room.channelId,
pageID: localStorage.canvasCode,
},
success:function(data){
// console.log('进入付费房购买资格',data)
if(data.code==1){
layer.msg("已付費,即將進入直播間")
setTimeout(function(){
window.location.reload()
},1000)
}else{
layer.msg(data.msg)
}
}
})
})
return;
}
if(data.room.liveState!=1){
if(data.room.liveState!=1&&data.room.liveScope!=3){
$(".room-content").hide()
$(".mc-out-box").show()
var html=''
......@@ -858,6 +820,50 @@ $(function(){
})
})
if(data.room.liveScope==3&&data.room.selfLock==0&&localStorage.uid!=sessionStorage.roomId){
// $(".room-content").hide()
$(".room-secret").show()
// html+='<img src="https://zhibocdn.yabolive.net/comm'+data.room.face.split('?')[0]+'?x-oss-process=image/resize,w_100" alt="">';
// html+='<p>'+data.room.roomName+'</p>';
// $(".room-secret-mc").html(html)
$(".secret-diamond-box").html('<img src="images/diamond.png" alt="">'+data.room.tollPrice)
$(".room-secret-bg").remove()
$(".user-msg-box").hide()
$(".room-bottom").hide()
$(".room-top").hide()
$("#myVideo").css("filter","blur(26px)")
$("#myVideo").css("transform","scale(1.05)")
// $(".room-secret-bg img").attr("src",'https://zhibocdn.yabolive.net/comm'+data.room.face.split('?')[0]+'?x-oss-process=image/resize,w_375')
$(".secret-btn").unbind("click").on("click",function(){
if(localStorage.token==undefined||localStorage.token=='undefined'){
$(".layer-shadow").show()
loginPage()
return;
}
$.ajax({
url:$ip+'room/to/join/buy',
data:{
uid: localStorage.uid,
token: localStorage.token,
roomId: sessionStorage.roomId,
channelId:data.room.channelId,
pageID: localStorage.canvasCode,
},
success:function(data){
// console.log('进入付费房购买资格',data)
if(data.code==1){
layer.msg("已付費,即將進入直播間")
setTimeout(function(){
window.location.reload()
},1000)
}else{
layer.msg(data.msg)
}
}
})
})
return;
}
giftList(1)
if(localStorage.uid!=undefined){
......
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