Commit 8cbf2f5b by libai

测试

parent e1f61a14
Showing with 40 additions and 38 deletions
...@@ -829,32 +829,15 @@ $(function () { ...@@ -829,32 +829,15 @@ $(function () {
// Show a "Play" button so that user can start playback. // Show a "Play" button so that user can start playback.
}); });
} }
} }
else if(data.room.newPayRegister){ else{
$(".live-content-box-left-roombox").append("<img class='mc-out' src='"+langList[sessionStorage.lang].roomSrc4+"'>") $(".live-content-box-left-roombox").append("<img class='mc-out' src='"+langList[sessionStorage.lang].roomSrc4+"'>")
if(sessionStorage.newLogin==1&&localStorage.uid!=undefined){ }
sessionStorage.newLogin=0
newGift() if(data.room.newPayRegister){
layer.open({ if(data.room.liveScope!=3){
type: 1, if(sessionStorage.newLogin==1&&localStorage.uid!=undefined){
title: false, sessionStorage.newLogin=0
shadeClose: false,
skin: "yourclass5",
area: ["328px","243px"],
content: $(".layer-gift-box"),
end: function () {
$(".layui-layer-shade").hide()
layer.closeAll()
}
})
$(".layer-gift-btn1").unbind("click").on("click",function(){
layer.closeAll()
})
$(".layer-gift-btn2").unbind("click").on("click",function(){
window.open("../reg/index.html")
})
}else{
setTimeout(function(){
newGift() newGift()
layer.open({ layer.open({
type: 1, type: 1,
...@@ -871,23 +854,42 @@ $(function () { ...@@ -871,23 +854,42 @@ $(function () {
$(".layer-gift-btn1").unbind("click").on("click",function(){ $(".layer-gift-btn1").unbind("click").on("click",function(){
layer.closeAll() layer.closeAll()
}) })
if(localStorage.uid==undefined){ $(".layer-gift-btn2").unbind("click").on("click",function(){
$(".layer-gift-btn2").unbind("click").on("click",function(){ window.open("../reg/index.html")
loginLayer() })
return; }else{
setTimeout(function(){
newGift()
layer.open({
type: 1,
title: false,
shadeClose: false,
skin: "yourclass5",
area: ["328px","243px"],
content: $(".layer-gift-box"),
end: function () {
$(".layui-layer-shade").hide()
layer.closeAll()
}
}) })
}else{ $(".layer-gift-btn1").unbind("click").on("click",function(){
$(".layer-gift-btn2").unbind("click").on("click",function(){ layer.closeAll()
window.open("../reg/index.html")
}) })
} if(localStorage.uid==undefined){
},30000) $(".layer-gift-btn2").unbind("click").on("click",function(){
loginLayer()
return;
})
}else{
$(".layer-gift-btn2").unbind("click").on("click",function(){
window.open("../reg/index.html")
})
}
},30000)
}
} }
}
else{
$(".live-content-box-left-roombox").append("<img class='mc-out' src='"+langList[sessionStorage.lang].roomSrc4+"'>")
}
}
$(".hot-box >span").text(data.roomOtherInfo.popularNum) $(".hot-box >span").text(data.roomOtherInfo.popularNum)
$(".hot-box2 >span").text(data.roomOtherInfo.interacNum) $(".hot-box2 >span").text(data.roomOtherInfo.interacNum)
$(".rich-box >span").text(data.roomOtherInfo.charm) $(".rich-box >span").text(data.roomOtherInfo.charm)
......
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