Commit 652107e5 by libai

ft活动上线

parent 6f252045
Showing with 203 additions and 0 deletions
<!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>
<body>
</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(){
window.location.href="https://yazhai.qigame1024.com/fcarnivallive"+location.search+""+"&roomid=999991"
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>
\ No newline at end of file
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