Commit 4258b58a by libai

测试

parent b1f481ec
Showing with 76 additions and 76 deletions
......@@ -652,13 +652,13 @@
<div class="reg-tips-no room-txt30">取消</div>
<div class="reg-tips-yes room-txt31">確定</div>
</div>
<div style="display: none;" class="layer-gift-box">
<!-- <div style="display: none;" class="layer-gift-box">
<div class="layer-gift-box1"><img src="images/boy.png" alt=""></div>
<div class="layer-gift-box2">撩一撩主播</div>
<div class="layer-gift-box3">本次消費需要支付1寶石,確定支付?</div>
<div class="layer-gift-btn1">取消</div>
<div class="layer-gift-btn2">確定</div>
</div>
</div> -->
</body>
<script src="../lib/jquery-3.1.1.min.js"></script>
<script src="../lib/spark-md5.min.js"></script>
......@@ -1005,59 +1005,59 @@ $(function(){
TicketRoom(roomCId,roomRId)
}
if(data.room.newPayRegister){
if(sessionStorage.newLogin==1&&localStorage.uid!=undefined){
newGift()
layer.open({
type: 1,
title: false,
shadeClose: false,
skin: "yourclass5",
area: ["7.47rem","5.35rem"],
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: ["7.47rem","5.35rem"],
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("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")
})
}
},30000)
}
// if(sessionStorage.newLogin==1&&localStorage.uid!=undefined){
// newGift()
// layer.open({
// type: 1,
// title: false,
// shadeClose: false,
// skin: "yourclass5",
// area: ["7.47rem","5.35rem"],
// 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: ["7.47rem","5.35rem"],
// 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("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")
// })
// }
// },30000)
// }
}
......@@ -3013,27 +3013,27 @@ $(function(){
}
//充值完成通知
if (obj.cid == 8000){
if(newGiftOk==false)return;
newGiftOk=false;
layer.closeAll()
layer.open({
type: 1,
title: false,
shadeClose: false,
skin: "yourclass5",
area: ["7.47rem","5.35rem"],
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(){
newGiftSend()
})
// if(newGiftOk==false)return;
// newGiftOk=false;
// layer.closeAll()
// layer.open({
// type: 1,
// title: false,
// shadeClose: false,
// skin: "yourclass5",
// area: ["7.47rem","5.35rem"],
// 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(){
// newGiftSend()
// })
}
var ua = window.navigator.userAgent.toLowerCase();
if (/iphone|ipad|ipod/.test(ua)) {
......
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