Commit abc364e9 by libai

测试

parent 6f12da6e
......@@ -1012,9 +1012,19 @@ $(function(){
TicketRoom(roomCId,roomRId)
}
if(data.room.newPayRegister){
if(sessionStorage.newLogin==1&&localStorage.uid!=undefined){
sessionStorage.newLogin=0
newGift()
$.ajax({
url:$ip+'room/doGiftGuidelineCheck',
data:{
roomid:sessionStorage.roomId,
},
success:function(data){
// console.log('送礼引导前检测',data)
}
})
layer.open({
type: 1,
title: false,
......@@ -1036,6 +1046,15 @@ $(function(){
}else{
setTimeout(function(){
newGift()
$.ajax({
url:$ip+'room/doGiftGuidelineCheck',
data:{
roomid:sessionStorage.roomId,
},
success:function(data){
// console.log('送礼引导前检测',data)
}
})
layer.open({
type: 1,
title: false,
......
......@@ -804,50 +804,66 @@ $(function () {
// Show a "Play" button so that user can start playback.
});
}
if(data.room.liveScope==3&&data.room.selfLock==0&&localStorage.uid!=sessionStorage.roomId){
$(".secret-rich-btn").unbind("click").on("click",function(){
// if(localStorage.uid==undefined){
// loginLayer()
// 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==-100){
// layer.msg(data.msg)
// setTimeout(function() {
// window.open("../reg/index.html")
// }, 500);
// return
// }
// if(data.code==1){
// layer.msg("已付費,即將進入直播間")
// setTimeout(function(){
// window.location.reload()
// },1000)
// }else{
// layer.msg(data.msg)
// }
// }
// })
})
}
}
else{
$(".live-content-box-left-roombox").append("<img class='mc-out' src='"+langList[sessionStorage.lang].roomSrc4+"'>")
}
if(data.room.newPayRegister){
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("https://www.footseen.com/footseen/phonepay/applepay.html?lang="+sessionStorage.lang+"&gofrom=web&cidStr="+sessionStorage.myCid+"&uid="+localStorage.uid+"&token="+localStorage.token+"&os=h5&appversion=7&osStr=h5")
})
}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()
}
})
$(".layer-gift-btn1").unbind("click").on("click",function(){
layer.closeAll()
})
if(localStorage.uid==undefined){
$(".layer-gift-btn2").unbind("click").on("click",function(){
layer.closeAll()
$(".layer-shadow").show()
loginPage()
sessionStorage.newLogin=1
return;
})
}else{
$(".layer-gift-btn2").unbind("click").on("click",function(){
window.open("../reg/index.html")
})
}
},30000)
}
}
$(".hot-box >span").text(data.roomOtherInfo.popularNum)
$(".rich-box >span").text(data.roomOtherInfo.charm)
$(".mc-tips div").text(data.roomBaseInfo.sign.replace("Firefly Live","Footseen"))
......
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