"\r\n\r\n\r\n\t\r\n\t互动系统后台登录<\/title>\r\n\t<meta name=\"renderer\" content=\"webkit|ie-comp|ie-stand\">\r\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\">\r\n <meta name=\"viewport\" content=\"width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi\" \/>\r\n <meta http-equiv=\"Cache-Control\" content=\"no-siteapp\" \/>\r\n <link rel=\"stylesheet\" href=\"__PUBLIC__\/hd\/public\/xadmin\/css\/login.css\">\r\n <script type=\"text\/javascript\" src=\"https:\/\/cdn.bootcss.com\/jquery\/3.2.1\/jquery.min.js\"><\/script>\r\n <script src=\"__PUBLIC__\/hd\/public\/xadmin\/lib\/layui\/layui.js\" charset=\"utf-8\"><\/script>\r\n <script type=\"text\/javascript\" src=\"__PUBLIC__\/hd\/public\/xadmin\/js\/xadmin.js\"><\/script>\r\n\r\n <!--[if lt IE 9]>\r\n <script src=\"https:\/\/cdn.staticfile.org\/html5shiv\/r29\/html5.min.js\"><\/script>\r\n <script src=\"https:\/\/cdn.staticfile.org\/respond.js\/1.4.2\/respond.min.js\"><\/script>\r\n <![endif]-->\r\n<\/head>\r\n\r\n<style type=\"text\/css\">\r\n#login{\r\n display: inline-block;\r\n font-size: 18px;\r\n line-height: 24px;\r\n text-align: center;\r\n white-space: nowrap;\r\n vertical-align: middle;\r\n cursor: pointer;\r\n color: rgb(255, 255, 255);\r\n background-color: rgb(24, 159, 146);\r\n -webkit-appearance: none;\r\n width: 100%;\r\n padding: 12px 24px;\r\n margin: 0px;\r\n border-radius: 3px;\r\n border-width: initial;\r\n border-style: none;\r\n border-color: initial;\r\n border-image: initial;\r\n outline: none;\r\n}\r\n<\/style>\r\n\r\n\r\n<body class=\"login-bg\">\r\n \r\n <div class=\"login layui-anim layui-anim-up\">\r\n <div class=\"message\">互动系统-管理登录<\/div>\r\n <div id=\"darkbannerwrap\"><\/div>\r\n \r\n <form method=\"post\" class=\"layui-form\" >\r\n <input id=\"name\" name=\"name\" placeholder=\"用户名\" type=\"text\" lay-verify=\"required\" class=\"layui-input\" >\r\n <hr class=\"hr15\">\r\n <input id=\"password\" name=\"password\" lay-verify=\"required\" placeholder=\"密码\" type=\"password\" class=\"layui-input\">\r\n <hr class=\"hr15\">\r\n <input value=\"登录\" id=\"login\" style=\"width:100%;\" type=\"button\">\r\n\r\n <hr class=\"hr20\" >\r\n <\/form>\r\n <\/div>\r\n\r\n <script>\r\n $(function () {\r\n layui.use('form', function(){\r\n\r\n var form = layui.form;\r\n\r\n $(\"#login\").click(function(){\r\n name = $('#name').val();\r\n password = $('#password').val();\r\n \r\n $.ajax({\r\n \/\/请求方式\r\n type : \"POST\",\r\n \/\/请求的媒体类型\r\n contentType: 'application\/x-www-form-urlencoded; charset=UTF-8',\r\n \/\/请求地址\r\n url : \"\/admin\/login\/login.html\",\r\n \/\/数据,json字符串\r\n \/\/data : JSON.stringify(list, null, 4),\/\/使用四个空格缩进\r\n data : { \r\n name:name,password:password\r\n },\r\n dataType : \"json\", \r\n \/\/ async:true,\/\/默认为true异步,这时候执行的是两个线程\r\n \r\n \/\/请求成功\r\n success : function(res) {\r\n if(res.status=='1'){\r\n\r\n layer.msg(res.msg,{icon: 6,time: 600}, function(){\r\n \/\/ \/\/ 获得frame索引\r\n\r\n \/\/ var index = parent.layer.getFrameIndex(window.name);\r\n \/\/ \/\/ console.log(index);\r\n \/\/ \/\/关闭当前frame\r\n \/\/ parent.layer.close(index);\r\n\r\n \/\/ xadmin.close();\r\n \/\/ \/\/ 可以对父窗口进行刷新\r\n \/\/ \/\/ xadmin.father_reload();\r\n \/\/ window.location.href = url('admin\/login\/login');\r\n window.location.href = 'syindex';\r\n })\r\n \r\n }else{\r\n layer.msg(res.msg,{icon: 5,time: 600}, function(){\r\n \/\/ location = location;\r\n })\r\n };\r\n }, \r\n \/\/ \/\/请求失败,包含具体的错误信息\r\n \/\/ error : function(e){\r\n \/\/ alert('修改失败');\r\n \/\/ console.log(e.status);\r\n \/\/ console.log(e.responseText);\r\n \/\/ }\r\n })\r\n\r\n\r\n \r\n });\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n });\r\n })\r\n <\/script>\r\n <!-- 底部结束 -->\r\n\r\n<\/body>\r\n<\/html>"