index.html
9.19 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
<!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>Fishing Carnival</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=2024092504">
<link rel="stylesheet" href="css/liMarquee.css">
<link rel="stylesheet" href="css/swiper.min.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>
<div class="layer-dew"></div>
<div class="layer-rule"></div>
<body style="background:#12479D;">
<div class="bg">
<img class="ref" src="images/ref.png" alt="">
<div class="banner"></div>
<div class="task-box">
<div data-type="1" class="task-btn1"></div>
<div data-type="2" class="task-btn2"></div>
<div data-type="3" class="task-btn3"></div>
<div data-type="4" class="task-btn4"></div>
<div class="dew-btn"></div>
</div>
<div class="floor-bg">
<div class="exc-btn"></div>
<div class="rule-btn"></div>
</div>
<iframe src="" frameborder="0"></iframe>
<div class="lunbo-box">
<div class="lunbo-content">
<!-- <div>
Congratulations on the <span style="color:#2DFFF8">10x</span> jackpot in <span style="color:#FDFF3A ;">XXXXXXX</span> fishing game!
</div> -->
</div>
</div>
<div class="list-box">
<ul class="list-ul">
<!-- <li>
<div class="user-box1">1</div>
<div class="user-box2">
<img class="user-face" src="https://big.bgp.ourpow.com/comm/user/boy.png?x-oss-process=image/resize,w_90" alt="">
用戶暱稱預留
</div>
<div class="user-box3">幸運值: <span>451321</span></div>
</li> -->
</ul>
</div>
<div style="height: 1rem;"></div>
</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='2024061702'"></script>
<script src="lib/clipboard.js"></script>
<script src="lib/swiper.min.js"></script>
<script>
$(function(){
list()
task()
lunbo()
var obj = {
"cid": 34, //修改网页title 居中显示。
"data": {
"type": 2, //1 图片 2文本。
"imgTxt": 'Fishing Carnival',
}
}
var obj2 = JSON.stringify(obj);
appCollaboration(obj2);
if (bbb.indexOf("https://fsactive.fusi.club/") > -1) {
$("iframe").attr("src","https://yazhai.qigame1024.com/fcarnivallive"+location.search+""+"&roomid=999991")
}else{
$("iframe").attr("src","https://yazhaigray.qigame1024.com/fcarnivallive"+location.search+""+"&roomid=999991")
}
$(".exc-btn").on("click",function(){
var obj = {
"cid": 12,
"reqCode": new Date().getTime(),
"data": {
"msg": "兌換露水",
"jumptype": 15,
}
}
var obj2 = JSON.stringify(obj);
appCollaboration(obj2);
})
$(".dew-btn").on("click",function(){
layer.open({
type: 1,
title: false,
shadeClose: true,
skin: "yourclass5",
area: ["10rem", "8rem"],
content: $(".layer-dew"),
end: function () {
$(".layui-layer-shade").hide()
}
})
})
$(".rule-btn").on("click",function(){
layer.open({
type: 1,
title: false,
shadeClose: true,
skin: "yourclass5",
area: ["9.97rem", "7.41rem"],
content: $(".layer-rule"),
end: function () {
$(".layui-layer-shade").hide()
}
})
})
function task(){
$.ajax({
url:$ip+'/actFishingCarnival/getUserTaskData.html',
success:function(data){
console.log("任务数据",data)
for(var i=0;i<data.result.taskList.length;i++){
var list=data.result.taskList[i]
if(list.taskStatus==0){
if(i==0)$(".task-box >div").eq(i).addClass("task1")
if(i==1){
$(".task-box >div").eq(i).addClass("task4").unbind("click").on("click",function(){
var obj = {
"cid": 12,
"reqCode": new Date().getTime(),
"data": {
"msg": '去儲值',
"jumptype": 16, //16: 去储值 18: 跳转到座驾 3:跳转集合功能 28:跳转直播间 29:空间 26:设置 40:半屏宝石储值 41:礼物列表 42:背包列表 // 43: 跳转新人主播引导
"hideTitle": 0 // 1隐藏头部,0 不隐藏, 默认为0
}
}
var obj2 = JSON.stringify(obj);
appCollaboration(obj2);
})
}
if(i==2||i==3){
$(".task-box >div").eq(i).addClass("task5").unbind("click").on("click",function(){
var bbb = location.href;
if (bbb.indexOf("https://fsactive.fusi.club/") > -1) {
window.location.href='yazhai://_11132174_room'
}else{
window.location.href='yazhai://_999991_room'
}
})
}
}
if(list.taskStatus==1){
$(".task-box >div").eq(i).addClass("task2").unbind("click").on("click",function(){
var _self=$(this)
getTask(_self.attr("data-type"))
})
}
if(list.taskStatus==2){
$(".task-box >div").eq(i).addClass("task3").unbind("click")
}
}
}
})
}
function getTask(e){
$.ajax({
url:$ip+'/actFishingCarnival/receiveTaskRewards.html',
data:{
taskId:e
},
success:function(data){
console.log("获取任务数据",data)
if(data.code!=1){
layer.msg(data.msg)
return;
}
if(sessionStorage.lang==2)layer.msg("領取成功");
else layer.msg("success");
task()
}
})
}
function lunbo(){
$.ajax({
url:$ip+'/actFishingCarnival/getUserFishRecord.html',
success:function(data){
console.log('轮播数据',data)
if(data.result.recordList.length<4)$(".lunbo-box").hide()
var html=[];
for(var i=0;i<data.result.recordList.length;i++){
var list=data.result.recordList[i]
html+='<div>Congratulations on the <span style="color:#2DFFF8">'+list.prizeMultiple+'x</span> jackpot in <br><span style="color:#FDFF3A ;">'+list.nickName+'</span> fishing game!</div>';
}
$(".lunbo-content").html(html)
}
})
}
function list(){
$.ajax({
url:$ip+'/actFishingCarnival/getFishRankData.html',
success:function(data){
console.log('榜单排行',data)
var html=[];
for(var i=0;i<data.result.rankList.length;i++){
var list=data.result.rankList[i]
html+='<li>';
html+='<div class="user-box1">'+(i+1)+'</div>';
html+='<div class="user-box2">';
html+='<a href="yazhai://_' + list.uid + '_zone"><img class="user-face" src="https://big.bgp.ourpow.com/comm'+list.face+'?x-oss-process=image/resize,w_90" alt=""></a>';
html+=''+list.name+'';
html+='</div>';
html+='<div class="user-box3">score: <span>'+list.score+'</span></div>';
html+='</li>';
}
$(".list-ul").html(html);
}
})
}
})
</script>
</html>