Commit 8cbf2f5b by libai

测试

parent e1f61a14
Showing with 40 additions and 38 deletions
......@@ -829,32 +829,15 @@ $(function () {
// 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+"'>")
if(sessionStorage.newLogin==1&&localStorage.uid!=undefined){
sessionStorage.newLogin=0
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()
}
})
$(".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(){
}
if(data.room.newPayRegister){
if(data.room.liveScope!=3){
if(sessionStorage.newLogin==1&&localStorage.uid!=undefined){
sessionStorage.newLogin=0
newGift()
layer.open({
type: 1,
......@@ -871,23 +854,42 @@ $(function () {
$(".layer-gift-btn1").unbind("click").on("click",function(){
layer.closeAll()
})
if(localStorage.uid==undefined){
$(".layer-gift-btn2").unbind("click").on("click",function(){
loginLayer()
return;
$(".layer-gift-btn2").unbind("click").on("click",function(){
window.open("../reg/index.html")
})
}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-btn2").unbind("click").on("click",function(){
window.open("../reg/index.html")
$(".layer-gift-btn1").unbind("click").on("click",function(){
layer.closeAll()
})
}
},30000)
if(localStorage.uid==undefined){
$(".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-box2 >span").text(data.roomOtherInfo.interacNum)
$(".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