| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>耀荣康健</title>
- <script src="./js/jquery-3.2.1.min.js"></script>
- <script src="./js/layer.js"></script>
- </head>
- <body>
- <div style="margin: 0 auto; height: 100%; width: 100%; text-align: center">
- <div style="height: 150px; color: aliceblue; background-color: blue; line-height: 150px">
- <span>header...header...</span>
- </div>
- <div style="height: 600px">
- <iframe id="gameIFrame" width="1000" height="600" frameborder="0" scrolling="false"></iframe>
- </div>
- <div style="height: 150px; color: aliceblue; background-color: #888888; line-height: 150px">
- <span>bottom...bottom...</span>
- </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()
- });
- })
- function checkLogin() {
- $.ajax({
- url: './login/checkLogin',
- type: 'POST',
- dataType: 'json',
- success: function (res) {
- // console.log('成功:', res.code);
- if (res.code == 0) {
- isLogin = true
- docheck()
- } else {
- isLogin = false
- LAYER_ID = layer.open({
- // icon: 2,
- type: 2,
- title: ["请先登录", "font-size:18px"],
- // title: false,
- content: './login.html',
- scrollbar: false,
- area: ['800px', '500px'],
- // offset:'100px',
- anim: 0
- });
- }
- },
- error: function (xhr, status, error) {
- // console.error('错误:', error);
- }
- });
- }
- </script>
- </body>
- </html>
|