Commit 4c1259c0 by libai

测试

parent c81d6ec2
...@@ -1524,12 +1524,17 @@ ...@@ -1524,12 +1524,17 @@
margin-top: -10rem; margin-top: -10rem;
filter: blur(0.4rem); filter: blur(0.4rem);
} }
.room-secret {
position: relative;
z-index: 500;
height: 100vh;
}
.room-secret-shadow { .room-secret-shadow {
width: 10rem; width: 10rem;
height: 100vh; height: 100vh;
position: absolute; position: absolute;
z-index: 5; z-index: 5;
background: rgba(0, 0, 0, 0.5); background: rgba(0, 0, 0, 0.1);
top: -1vw; top: -1vw;
left: 0; left: 0;
} }
......
...@@ -1567,12 +1567,17 @@ ...@@ -1567,12 +1567,17 @@
filter:blur(0.4rem) filter:blur(0.4rem)
} }
} }
.room-secret{
position: relative;
z-index: 500;
height: 100vh;
}
.room-secret-shadow{ .room-secret-shadow{
width: 10rem; width: 10rem;
height: 100vh; height: 100vh;
position: absolute; position: absolute;
z-index: 5; z-index: 5;
background: rgba(0,0,0,0.5); background: rgba(0,0,0,0.1);
top: -1vw; top: -1vw;
left: 0; left: 0;
......
...@@ -574,45 +574,45 @@ $(function(){ ...@@ -574,45 +574,45 @@ $(function(){
window.location.href="../index.html" window.location.href="../index.html"
return; return;
} }
if(data.room.liveScope==3&&data.room.selfLock==0&&localStorage.uid!=sessionStorage.roomId){ // if(data.room.liveScope==3&&data.room.selfLock==0&&localStorage.uid!=sessionStorage.roomId){
$(".room-content").hide() // $(".room-content").hide()
$(".room-secret").show() // $(".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+='<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>'; // html+='<p>'+data.room.roomName+'</p>';
$(".room-secret-mc").html(html) // $(".room-secret-mc").html(html)
$(".secret-diamond-box").html('<img src="images/diamond.png" alt="">'+data.room.tollPrice) // $(".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') // $(".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(){ // $(".secret-btn").unbind("click").on("click",function(){
if(localStorage.token==undefined||localStorage.token=='undefined'){ // if(localStorage.token==undefined||localStorage.token=='undefined'){
$(".layer-shadow").show() // $(".layer-shadow").show()
loginPage() // loginPage()
return; // return;
} // }
$.ajax({ // $.ajax({
url:$ip+'room/to/join/buy', // url:$ip+'room/to/join/buy',
data:{ // data:{
uid: localStorage.uid, // uid: localStorage.uid,
token: localStorage.token, // token: localStorage.token,
roomId: sessionStorage.roomId, // roomId: sessionStorage.roomId,
channelId:data.room.channelId, // channelId:data.room.channelId,
pageID: localStorage.canvasCode, // pageID: localStorage.canvasCode,
}, // },
success:function(data){ // success:function(data){
// console.log('进入付费房购买资格',data) // // console.log('进入付费房购买资格',data)
if(data.code==1){ // if(data.code==1){
layer.msg("已付費,即將進入直播間") // layer.msg("已付費,即將進入直播間")
setTimeout(function(){ // setTimeout(function(){
window.location.reload() // window.location.reload()
},1000) // },1000)
}else{ // }else{
layer.msg(data.msg) // layer.msg(data.msg)
} // }
} // }
}) // })
}) // })
return; // return;
} // }
if(data.room.liveState!=1){ if(data.room.liveState!=1&&data.room.liveScope!=3){
$(".room-content").hide() $(".room-content").hide()
$(".mc-out-box").show() $(".mc-out-box").show()
var html='' var html=''
...@@ -802,7 +802,50 @@ $(function(){ ...@@ -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) giftList(1)
if(localStorage.uid!=undefined){ if(localStorage.uid!=undefined){
myDiamond() myDiamond()
......
...@@ -578,45 +578,7 @@ $(function(){ ...@@ -578,45 +578,7 @@ $(function(){
window.location.href="../index.html" window.location.href="../index.html"
return; return;
} }
if(data.room.liveScope==3&&data.room.selfLock==0&&localStorage.uid!=sessionStorage.roomId){ if(data.room.liveState!=1&&data.room.liveScope!=3){
$(".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){
$(".room-content").hide() $(".room-content").hide()
$(".mc-out-box").show() $(".mc-out-box").show()
var html='' var html=''
...@@ -858,6 +820,50 @@ $(function(){ ...@@ -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) giftList(1)
if(localStorage.uid!=undefined){ 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