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

libai / footsen

  • 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
  • footsen
  • footseen
  • Nesting
  • guard
  • monthList.html
Find file
BlameHistoryPermalink
  • dabai's avatar
    footseen更新 · 96fe1e53
    dabai committed 4 years ago
    96fe1e53
monthList.html 5.3 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
<!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">
    <link rel="stylesheet" href="css/base.css">
    <link rel="stylesheet" href="css/list.css?v=202006091957">
    <script src="../../lib/fsize.js"></script>
    <title></title>
</head>
<body>
	<div class="main">
		<div class="mList"></div>
		<div class="mBotton"></div>
	</div>
</body>
<script src="../../lib/jquery-3.1.1.min.js"></script>
<script src="../../lib/langchange.js?v=202006091633"></script>
<script type="text/javascript">
	if(langType == 2){
		$('body').addClass('L_Ar');
	}
	
	$('title').html(langList[langType].gurad3);
	
	var interval = null;
	
	var params = getRequest();
	sessionStorage.token = params.token;//token
	sessionStorage.uid = params.uid; //uid
	sessionStorage.roomid = params.roomid;
	
	
	getData();

	function getData(){
	$.ajax({
		url: $ip + '/guard/getGuardRank.html',
    type: "post",
    dataType: "JSON",
		data:{
			os: 'WEB',
			cid: 'web_gw',
			lang: sessionStorage.lang,
			uid: sessionStorage.uid,
			token: sessionStorage.token,
			roomid:sessionStorage.roomid,
			type:0
		},
		success:function(res){
			clearInterval(interval);
			getUser(res.user)
			var result = res.ranks;
			if(result.length>0){
				var str = '';
				var name = ['','mDetailFirst','mDetailTwo','mDetailThree']
				for(var i=0;i<result.length;i++){
					str += '<div class="mDetail" onclick="goRoom('+result[i].uid+')">';
					if(i<3){
						str += '<span class="mDetailNum"><img src="images/'+result[i].rank+'.png"/></span>';
					} else {
						str += '<span class="mDetailNum">'+result[i].rank+'</span>';
					}
					str += '<span class="mDetailBg '+(i<3?name[result[i].rank]:'')+'">';
					if(result[i].face== '/user/boy.png' || result[i].face== '/user/girl.png' ){
						str += '	<img src="http://app.ixiulive.com/static/images/head2.png?x-oss-process=image/resize,w_80"/>';
					} else {						
						str += '	<img src="'+cdn+result[i].face+'?x-oss-process=image/resize,w_80"/>';
					}
					str += '</span>';
					if(result[i].isLive == 1){
						str += '<img src="images/live/0.png" class="liveCheck"/>';
					}
					str += '	<span class="mName ellipsis">'+result[i].nickname+'</span>';
					str += '	<span class="mNum ellipsis">'+result[i].exp+'<img src="images/gicon.png"></span>';
					str += '</div>';
				}
				$('.mList').append(str);
				var i=0;
				interval = setInterval(function(){
						i++;
						$('.liveCheck').attr('src','images/live/'+i+'.png');
						if(i==11){
							i=0;
						}
				},100);

			} else {
				var str = ''
				str += '<div class="notCon">';
				str += '	<img class="notImg" src="images/not.png"/>';
				str += '	<p class="notTitlt notTitlt1">'+langList[langType].gurad12+'</p>';
				str += '</div>';
				$('.mList').html(str);
			}
		}
	});
}

function getUser(user){
		var str = '';
		str += '<a href="http://yazhai://_'+user.uid+'_zone">';
		if(user.face== '/user/boy.png' || user.face== '/user/girl.png' ){
			str += '	<img src="http://app.ixiulive.com/static/images/head2.png?x-oss-process=image/resize,w_80"/>';
		} else {						
			str += '	<img src="'+cdn+user.face+'?x-oss-process=image/resize,w_80"/>';
		}
		str += '</a>';
		str += '<div class="mBottomInfo">';
		str += '<p class="ellipsis">'+user.nickname+'</p>';
		if(user.rank>50){
			str += '<p class="ellipsis">'+user.exp+'<span>'+langList[langType].gurad7+',</span>'+langList[langType].gurad13+'</p>';
		} else {
			str += '<p class="ellipsis">'+user.exp+'<span>'+langList[langType].gurad7+',</span><span class="mBottomNum">'+langList[langType].gurad48+user.rank+'</span></p>';
		}
		str += '</div>';
		str += '<div class="mBottomBtn '+(langType == 1 ?'L_En':'')+'" onclick="goGuard();">'+langList[langType].gurad9+'</div>';
	
		$('.mBotton').html(str);
}

function goRoom(uid){
	window.location.href = 'http://yazhai://_'+uid+'_zone';
}

function goGuard(){
	var obj = {
        "cid": 19,
        "reqCode": new Date().getTime(),
        "data":{
            "msg":"打开开通守护" ,
            "roomid":sessionStorage.roomid
        }
    }
	var obj2 = JSON.stringify(obj);
	appCollaboration(obj2)
}

	function appCollaboration(msg){
		var sUserAgent = navigator.userAgent.toLowerCase();
	  var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";
	  var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os";
	  var bIsMidp = sUserAgent.match(/midp/i) == "midp";
	  var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4";
	  var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb";
	  var bIsAndroid = sUserAgent.match(/android/i) == "android";
	  var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce";
	  var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile";
	  if (!(bIsIpad|| bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM) ){
	  }
	  else if(bIsAndroid){
	      window.yazhai.appCollaboration(msg);
	  }else if(bIsIphoneOs||bIsIpad){
	      window.webkit.messageHandlers.appCollaboration.postMessage(msg);
	  }
	}
	//客户端回调结果
	function appCallback(msg) {
	    console.log(msg);
	}
</script>
</html>