oldView.html
4.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta content="telephone=no" name="format-detection">
<meta name="wap-font-scale" content="no">
<title></title>
<script src="lib/fsize.js"></script>
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/layer.css">
<link rel="stylesheet" href="css/daily.css">
<link rel="stylesheet" href="css/index.css?v=2024010801">
<link rel="stylesheet" href="css/liMarquee.css">
<style>
.layui-layer-shade {
opacity: 0.7 !important;
}
.yourclass5 {
border-radius: 0rem !important;
background: rgba(0, 0, 0, 0) !important;
}
.yourclass5 .layui-layer-content {
border-radius: 0rem !important;
}
</style>
</head>
<script src="lib/lottie-player.js"></script>
<body style="background: rgba(0, 0, 0, 0);">
<div style="display: none;" class="r1"></div>
</body>
<script src="lib/jquery-3.1.1.min.js"></script>
<script src="layer-v3.1.0/layer/layer.js"></script>
<script src="lib/default.js?v='2023120901'"></script>
<script>
$(function(){
// layer.msg(sessionStorage.roomId+':'+sessionStorage.uid)
if(sessionStorage.roomId!=sessionStorage.uid){
view()
setInterval(function(){
view()
},20000)
setTimeout(function() {
$.ajax({
url:$ip+'/actHeartbeatAnchor/getUserData.html',
success:function(data){
console.log('獲取用戶評價狀態',data)
if(data.code!=1)return;
if(data.result.reviewTypeStatus1!=0&&data.result.reviewTypeStatus2!=0){
popUp('https://fsactive.fusi.club/activeFt/loveMc/pop.html',95)
}
}
})
}, 180000)
}else{
window.location.href='https://fsactive.fusi.club/footseenIcon/liveData/index.html'+location.search
// $.ajax({
// url:$ip+'/actHeartbeatAnchor/getViewData.html',
// success:function(data){
// console.log('獲取主播信息',data)
// if(data.result.todayCheckIn==0){
// $(".r1").addClass("r3")
// $(".r1").unbind("click").on("click",function(){
// popUp('https://fsactive.fusi.club/activeFt/loveMc/index.html',120)
// })
// }else{
// $(".r1").addClass("r4")
// $(".r1").unbind("click").on("click",function(){
// popUp('https://fsactive.fusi.club/activeFt/loveMc/index.html',120)
// })
// }
// }
// })
}
function view(){
$.ajax({
url:$ip+'/actHeartbeatAnchor/getUserData.html',
success:function(data){
console.log('獲取用戶評價狀態',data)
if(data.code!=1)return;
if(data.result.reviewTypeStatus1!=0&&data.result.reviewTypeStatus2!=0){
$(".r1").addClass("r2").show()
if(data.result.reviewTypeStatus1==1&&data.result.reviewTypeStatus2==1){
$(".r2").html('<img src="images/icon3.png" alt="">').show()
}else{
$(".r2").html('<img src="images/icon4.png" alt="">').show()
}
$(".r1").unbind("click").on("click",function(){
popUp('https://fsactive.fusi.club/activeFt/loveMc/index.html',140)
})
}else{
$(".r1").removeClass("r2").show().unbind("click").on("click",function(){
popUp('https://fsactive.fusi.club/activeFt/loveMc/pop.html',95)
})
}
}
})
}
function popUp(url,height){
$.ajax({
url:$ip+'/actHeartbeatAnchor/openPopup.html',
data:{
popupUrl:url,
widthR:100,
heightR:height
},
success:function(data){
console.log('主动调起半屏页面',data)
}
})
}
})
</script>
</html>