软测单独项目
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.
 
 
 
 
 
 

38 lines
1.1 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;
}
</style>
</head>
<body>
<iframe id="main_iframe" ></iframe>
<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) {
$("#main_iframe").attr("src", "http://47.93.253.225:3389/personal?userUid=" + useruid);
} else {
//alert('该账号未经过华为授权,请先授权再查看个人健康信息');
$("#main_iframe").attr("src", "../healthEmpower/index.html");
}
}
});
</script>
</body>
</html>