diff --git a/room/liveRoom.html b/room/liveRoom.html index 13c9d48..b50b351 100644 --- a/room/liveRoom.html +++ b/room/liveRoom.html @@ -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)