软测单独项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

60 lines
1.8 KiB

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<script src="../js/jquery-2.1.3.min.js"></script>
<style>
html, body, #main_iframe {
width: 100%;
height: 100%;
margin: 0px;
padding: 0px;
border: none;
overflow: hidden;
}
#shouquanDiv {
display: none;
width: 100%;
height: 100%;
margin: 0px;
padding: 0px;
border: none;
text-align: center;
margin-top: 200px
}
#shouquanDiv p {
font-size: 18px;
}
</style>
</head>
<body>
<iframe id="main_iframe"></iframe>
<div id="shouquanDiv">
<img src="img/AuthorizationUrl.png">
<p>请通过扫描二维码授权<p>
</div>
<script>
var OrgId = JSON.parse(window.sessionStorage.getItem("userInfo")).OrgID;
var useruid = JSON.parse(window.sessionStorage.getItem("userInfo")).UserCode;
$.ajax({
type: "get",
url: "http://47.93.253.225:3389/api/isUser",
data: { username: useruid},
dataType: "json",
success: function (result) {
if (result.data) {
jQuery("#main_iframe").attr("src", "http://47.93.253.225:3389/motionInfo?username=" + useruid);
} else {
alert('该账号未经过华为授权,请先授权再查看个人健康信息,扫描下方二维码授权');
$("#main_iframe").hide();
$("#shouquanDiv").show();
//$("#main_iframe").attr("src", "../healthEmpower/index.html");
}
}
});
</script>
</body>
</html>