Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

libai / fsActive

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • fsActive
  • ftIcon
  • action2
  • index.html
Find file
Normal viewHistoryPermalink
index.html 5.09 KB
Newer Older
libai's avatar
ft活动上线
7639cfa4
 
libai committed 9 months ago
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<!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">
libai's avatar
ft活动上线
b52eee4b
 
libai committed 6 months ago
16
    <link rel="stylesheet" href="css/index.css?v=2024110101">
libai's avatar
ft活动上线
7639cfa4
 
libai committed 9 months ago
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
    <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)">
libai's avatar
ft活动上线
b52eee4b
 
libai committed 6 months ago
33
    <div  class="act-room-bg act-room-bg2">
libai's avatar
ft活动上线
2470c2df
 
libai committed 6 months ago
34 35 36
        <p class="act-room-p1">主播積分 : 8000</p>
        <p class="act-room-p2">排名 : 5</p>
    </div>
libai's avatar
ft活动上线
7639cfa4
 
libai committed 9 months ago
37 38 39 40 41 42 43 44
</body>
<script src="lib/jquery-3.1.1.min.js"></script>
<script src="lib/fsize.js"></script>
<script src="layer-v3.1.0/layer/layer.js"></script>
<script src="lib/default.js?v='2024061701'"></script>
<script type="text/javascript" src="https://app.ixiulive.com/static/js/socket.io.js"></script>
<script>
$(function(){
libai's avatar
ft活动上线
2470c2df
 
libai committed 6 months ago
45 46 47
    if(sessionStorage.lang!=2){
        $("body").addClass("bg-en")
    }
libai's avatar
ft活动上线
7639cfa4
 
libai committed 9 months ago
48
    var wsTimer=null
libai's avatar
ft活动上线
b52eee4b
 
libai committed 6 months ago
49

libai's avatar
ft活动上线
4eb71f58
 
libai committed 7 months ago
50

libai's avatar
ft活动上线
4a56f001
 
libai committed 8 months ago
51 52 53 54 55 56 57
    $(".act-room-bg").on("click",function(){
        var obj = {
            "cid": 12,
            "reqCode": new Date().getTime(),
            "data": {
                "msg": '跳转集合功能',
                "jumptype": 3,
libai's avatar
ft活动上线
2470c2df
 
libai committed 6 months ago
58
                "url": $url + "/activeFt/luckyFly/index.html" + location.search+'',
libai's avatar
ft活动上线
4a56f001
 
libai committed 8 months ago
59 60 61 62 63
            }
        }
        var obj2 = JSON.stringify(obj);
        appCollaboration(obj2);
    })
libai's avatar
ft活动上线
7639cfa4
 
libai committed 9 months ago
64 65 66 67 68 69 70
    var obj = {
	 	"cid": 43,
	 	"reqCode": new Date().getTime(),
	 	"data": {
             "type":1,
            //  "width":314,
            "width":120,
libai's avatar
ft活动上线
4a56f001
 
libai committed 8 months ago
71
             "height":68,
libai's avatar
ft活动上线
7639cfa4
 
libai committed 9 months ago
72 73 74 75 76 77
             'unit':2,
             "position":1
	 	}
	 }
	var obj2 = JSON.stringify(obj);
	appCollaboration(obj2);
libai's avatar
ft活动上线
4a56f001
 
libai committed 8 months ago
78

libai's avatar
ft活动上线
7639cfa4
 
libai committed 9 months ago
79 80
    view()
    setInterval(function(){
libai's avatar
ft活动上线
2470c2df
 
libai committed 6 months ago
81
        view()
libai's avatar
ft活动上线
7639cfa4
 
libai committed 9 months ago
82
    },60000)
libai's avatar
ft活动上线
2470c2df
 
libai committed 6 months ago
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
    function view(){
        $.ajax({
            url:$ip+'/actSpaceOdyssey/getRoomPartData.html',
            success:function(data){
                console.log('圖標數據',data)
                if(data.result.userData.signReceive!=0){
                    $(".act-room-bg").removeClass("act-room-bg2")
                }
                if(sessionStorage.lang==2){
                    $(".act-room-p1").text('主播積分 : '+data.result.roomData.score+'')
                    if(data.result.roomData.rank!=-1)$(".act-room-p2").text('排名 : '+data.result.roomData.rank+'')
                    else $(".act-room-p2").text('排名 : --')
                }else{
                    $(".act-room-p1").text('score : '+data.result.roomData.score+'')
                    if(data.result.roomData.rank!=-1)$(".act-room-p2").text('rank : '+data.result.roomData.rank+'')
                    else $(".act-room-p2").text('rank : --')
                }
            }
        })
    }

libai's avatar
ft活动上线
4a56f001
 
libai committed 8 months ago
104 105
    setTimeout(function(){
        if(sessionStorage.lang==2)return;
libai's avatar
ft活动上线
0987bc53
 
libai committed 7 months ago
106 107 108 109
        $.ajax({
            url:$ip+'/actSecretGarden/openPopup.html',
            data:{
                width:'0',
libai's avatar
ft活动上线
2470c2df
 
libai committed 6 months ago
110
                popupUrl:$url + "/activeFt/luckyFly/pop.html",
libai's avatar
ft活动上线
0987bc53
 
libai committed 7 months ago
111
                height:'0.5',
libai's avatar
ft活动上线
2470c2df
 
libai committed 6 months ago
112
                heightR:'95',
libai's avatar
ft活动上线
0987bc53
 
libai committed 7 months ago
113 114 115 116 117 118 119 120 121
                x:'0',
                y:'0.5',
            },
            success:function(){
            }
        })
     
        if(localStorage.fish==undefined||localStorage.fish<new Date().getTime()){
            localStorage.fish=(Number(new Date().getTime())+86400000)
libai's avatar
ft活动上线
7372bab2
 
libai committed 8 months ago
122

libai's avatar
ft活动上线
7c7dc2d6
 
libai committed 8 months ago
123
        }
libai's avatar
ft活动上线
4a56f001
 
libai committed 8 months ago
124
    },30000)
libai's avatar
ft活动上线
7639cfa4
 
libai committed 9 months ago
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
    function getData(roomid) {
	var opts = {
        reconnectionDelay: 5000,
		query: {
			'uid': sessionStorage.uid,
			'token': sessionStorage.token,
			'room': sessionStorage.roomId
		}
	}

	socket = io.connect(_url3 + '/default', opts);
	socket.on('connect', function () {
		console.log("连接成功");
	});

	socket.on('RaisingBeautifulGril', function (msg) {
        var data=JSON.parse(msg)
        if(data.rank>0){
            console.log(data)
            $(".room-bg1").show()
            $(".room-title").text(titleArr[data.extra.stage])
            $(".room-bg-p1 span").text(data.score)
            var barWidth=Math.floor(data.score/data.extra.stageScore*100)
            $(".room-bg-p2 span").text(barWidth+'%')
            $(".room-bg-p3 span").text(data.rank)
        }else{
            $(".room-bg1").hide()
        }

	});

	socket.on('disconnect', function () {
        setTimeout(function(){
            getData()
        },3000)
		console.log("已下线!");
	});

	socket.on('connect_error', function (error) {
		console.log("链接失败!");
	});

}

})
</script>
</html>