| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>耀荣康健</title>
- <link rel="stylesheet" type="text/css" href="/analysis/css/styles.css">
- <link rel="stylesheet" type="text/css" href="/analysis/js/layui/css/layui.css">
- <script src="/analysis/js/jquery-3.2.1.min.js"></script>
- <script src="/analysis/js/layer.js"></script>
- </head>
- <body>
- <div style="margin: 0 auto; height: 100%; width: 100%; text-align: center">
- <div style="display: flex; width: 100%; height: 112px; align-items: center; justify-content: center;background-color: #0044CB; color:#ffffff">
- <div style="width: 60%; display: flex; height: 100%; align-items: center">
- <a href="/analysis/index.html">
- <div style="width:50%; float: left; text-align: left"><img src="/analysis/img/LOGO.png"></div>
- </a>
- <div style="width:50%;float: right; text-align: right">
- <!-- <a href="/index.html" style="text-decoration: none; color: #ffffff; font-size: 24px"><span>主页</span></a>-->
- <span> </span>
- <!-- <span>个人资料</span>-->
- </div>
- </div>
- </div>
- <div style="width:100%; height:730px; display: flex; align-items: center; justify-content: center">
- <iframe id="gameIFrame" width="1000" height="600" frameborder="0" scrolling="false"></iframe>
- </div>
- <div style="font-size:14px; height: 98px; color: #999999; display: flex;
- align-items: center; justify-content: center; background: url(/analysis/img/d97f28a59f20114dad3adbeb0dab456f.png) 100% no-repeat;">
- 地址: 北京市朝阳区东四环中路41号嘉泰国际A座16层1619室 联系电话:400-086-1638<br/>
- 湘ICP备2024059687号-3
- </div>
- </div>
- <script>
- $(function () {
- // alert("aa")
- // layer.msg('hello')
- // layer.alert('酷毙了', {icon: 1});
- // layer.open({
- // skin: 'demo-class',
- // title: '在线调试',
- // content: '配置各种参数,试试效果aa',
- // end: function () {
- // alert("aa")
- // }
- // // ,offset:'rb'
- // });
- // layer.alert('cece', {icon: 2},function () {
- // layer.closeAll()
- // });
- checkLogin()
- })
- function checkLogin() {
- $.ajax({
- url: '/analysis/login/checkLogin',
- type: 'POST',
- dataType: 'json',
- success: function (res) {
- // console.log('成功:', res.code);
- if (res.code == 0) {
- // isLogin = true
- // docheck()
- // alert("aa")
- loadGame(res.data)
- } else {
- isLogin = false
- LAYER_ID = layer.open({
- // icon: 2,
- type: 2,
- title: ["请先登录", "font-size:18px"],
- // title: false,
- content: '/analysis/login.html',
- scrollbar: false,
- area: ['800px', '500px'],
- // offset:'100px',
- anim: 0,
- closeBtn: 0
- });
- }
- },
- error: function (xhr, status, error) {
- console.error('错误:', error);
- layer.alert("服务器繁忙,请稍后重试!", {icon: 2});
- }
- });
- }
- function afterLogin(data) {
- loadGame(data)
- }
- function loadGame(data) {
- // const url = '/game/index.html?view=web&phone='+data.phone
- const param = encodeURIComponent("view=web&phone=" + data.phone + "&hospitalId=&hospitalName=测试医院")
- // console.log(param)
- $("#gameIFrame").attr('src', '/analysis/game/index.html?' + param)
- }
- </script>
- </body>
- </html>
|