"\r\n\r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n 后台登录<\/title>\r\n <link rel=\"shortcut icon\" type=\"image\/x-icon\" href=\"\/favicon.ico\" media=\"screen\"\/>\r\n <link href=\"\/public\/static\/admin\/css\/login.css\" rel=\"stylesheet\" type=\"text\/css\" \/>\r\n <link href=\"\/public\/static\/admin\/font\/css\/iconfont.css\" rel=\"stylesheet\" type=\"text\/css\" \/>\r\n <link href=\"\/public\/static\/admin\/css\/diy_style.css?v=v1.6.1\" rel=\"stylesheet\" type=\"text\/css\" \/>\r\n <style type=\"text\/css\">\r\n body {background:#6f8489 url('\/public\/static\/admin\/images\/login-bg.jpg') left top no-repeat;}\r\n .SignBox{position: relative;}\r\n .ercodeSignBox{position: relative;}\r\n .chicuele{position:absolute; right: 2px;top: 3px;height: 36px;}\r\n .loading_vertify{\r\n height: 20px;\r\n right: 9px;\r\n top: 12px;\r\n }\r\n .input-item{position: relative;}\r\n .input-item .password-icon{\r\n position: absolute;\r\n top: 13px;\r\n right: 8px;\r\n width: 18px;\r\n height: 18px;\r\n background-color: #ccc;\r\n z-index: 10;\r\n cursor: pointer;\r\n }\r\n .input-item .password-icon.show{\r\n background: url(\/public\/static\/admin\/images\/password_show.png) no-repeat center center;\r\n }\r\n .input-item .password-icon.hide{\r\n background: url(\/public\/static\/admin\/images\/password_hide.png) no-repeat center center;\r\n }\r\n .ercodecon{\r\n text-align: center;\r\n }\r\n .ercodepic img{\r\n width: 172px;\r\n height: 172px;\r\n }\r\n .ercodetie{\r\n font-size: 24px;\r\n color: #1a1a1a;\r\n line-height: 33px;\r\n margin-bottom: 12px;\r\n margin-top: 3px;\r\n }\r\n .ercodinof{\r\n font-size: 14px;\r\n line-height: 22px;\r\n color: #5E5E5E;\r\n }\r\n .swicth-ercode {\r\n display: inline-block;\r\n float: right;\r\n width: 40px;\r\n height: 40px;\r\n background-size: cover;\r\n position: absolute;\r\n top: 6px;\r\n right: 6px;\r\n cursor: pointer;\r\n }\r\n .switch-input {\r\n width: 40px;\r\n height: 40px;\r\n position: absolute;\r\n right: 6px;\r\n top: 6px;\r\n cursor: pointer;\r\n background-size: cover;\r\n }\r\n .swicth-ercode i, .switch-input i{\r\n font-size: 40px;\r\n color: #41a6f7;\r\n }\r\n <\/style>\r\n <script type=\"text\/javascript\" src=\"\/public\/static\/admin\/js\/jquery.js\"><\/script>\r\n <script type=\"text\/javascript\" src=\"\/public\/static\/admin\/js\/jquery.SuperSlide.2.1.2.js\"><\/script>\r\n <script type=\"text\/javascript\" src=\"\/public\/static\/admin\/js\/jquery.validation.min.js\"><\/script>\r\n <script type=\"text\/javascript\" src=\"\/public\/static\/admin\/js\/jquery.cookie.js\"><\/script>\r\n <script type=\"text\/javascript\" src=\"\/public\/plugins\/layer-v3.1.0\/layer.js\"><\/script>\r\n <script type=\"text\/javascript\" src=\"\/public\/static\/admin\/js\/jquery.md5.js\"><\/script>\r\n <!--[if lte IE 8]>\r\n <script type=\"Text\/Javascript\" language=\"JavaScript\">\r\n function detectBrowser()\r\n {\r\n var browser = navigator.appName\r\n if(navigator.userAgent.indexOf(\"MSIE\")>0){ \r\n var b_version = navigator.appVersion\r\n var version = b_version.split(\";\");\r\n var trim_Version = version[1].replace(\/[ ]\/g,\"\");\r\n if ((browser==\"Netscape\"||browser==\"Microsoft Internet Explorer\"))\r\n {\r\n if(trim_Version == 'MSIE8.0' || trim_Version == 'MSIE7.0' || trim_Version == 'MSIE6.0'){\r\n layer.alert('请使用IE9.0版本以上进行访问', {icon: 5, title:false});\r\n return false;\r\n }\r\n }\r\n }\r\n }\r\n detectBrowser();\r\n <\/script>\r\n <![endif]-->\r\n <script type=\"text\/javascript\">\r\n var eyou_basefile = \"\/login.php\";\r\n var layer_shade = [0.7, '#fafafa'];\r\n <\/script>\r\n <\/head>\r\n\r\n <body>\r\n <div id=\"container\">\r\n <div id=\"anitOut\"><\/div>\r\n <\/div>\r\n <div class=\"container\">\r\n <div class=\"logo\">\r\n <img src=\"\/public\/static\/admin\/images\/login-logo_ey.png?v=1721920544\">\r\n <\/div>\r\n <div class=\"box SignBox\" >\r\n <form action=\"\" name='theForm' id=\"theForm\" method=\"post\">\r\n <div class=\"input-item\">\r\n <label for=\"inputEmail\" class=\"sr-only\">用户名<\/label>\r\n <input type=\"text\" name=\"user_name\" autocomplete=\"off\" class=\"form-control\" value=\"\" placeholder=\"用户名\" required autofocus \/>\r\n <\/div>\r\n <div class=\"input-item\">\r\n <label for=\"inputPassword\" class=\"sr-only\">密码<\/label>\r\n <input type=\"password\" name=\"password\" autocomplete=\"off\" class=\"form-control\" value=\"\" placeholder=\"密码\" required \/>\r\n <span class=\"password-icon hide pass-showhide\" data-name=\"password\"><\/span>\r\n <\/div>\r\n <div class=\"input-item formText\">\r\n <i class=\"icon icon-chick\"><\/i>\r\n <input type=\"text\" name=\"vertify\" autocomplete=\"off\" class=\"form-control\" value=\"\" placeholder=\"验证码\" \/>\r\n <img src=\"\/public\/static\/common\/images\/loading.gif?v=v1.6.1\" class=\"chicuele loading_vertify\" id=\"imgVerify\" alt=\"\" onclick=\"fleshVerify();\" style=\"position:absolute;\">\r\n <\/div>\r\n \r\n <!--点选文字验证码 start-->\r\n <!-- weapp_clicap_input -->\r\n <!--点选文字验证码 end-->\r\n\r\n <input type=\"button\" name=\"submit\" class=\"btn btn-lg btn-primary btn-block show-dialog\" value=\"登录\">\r\n <\/form>\r\n <\/div>\r\n <\/div> <!-- \/container -->\r\n <script type=\"text\/javascript\">\r\n var third_login = \"\";\r\n var notifyPolling = null;\r\n var qrcodePolling = null;\r\n $(function () {\r\n var login_type = 1;\r\n if (3 == login_type) {\r\n if ('EyouGzhLogin' == third_login) {\r\n getQrCode();\r\n qrcodePolling = setInterval(function(){getQrCode();}, 5*60*1000);\r\n }\r\n else if ('WechatLogin' == third_login) {\r\n var url = \"http:\/\/www.pcbsz.com\/login.php?m=admin&c=Admin&a=wechat_login&lang=cn\";\r\n var iframes = layer.open({\r\n type: 2,\r\n title: '打开微信扫一扫',\r\n fixed: false, \/\/固定\r\n shadeClose: false,\r\n resize: false,\r\n move: false,\r\n shade: layer_shade,\r\n offset: '200px',\r\n closeBtn: false,\r\n area: ['500px', '460px'],\r\n content: url\r\n });\r\n }\r\n }\r\n })\r\n\r\n $(\".swicth-ercode\").click(function (e) {\r\n e.preventDefault();\r\n if ('EyouGzhLogin' == third_login) {\r\n $(\".SignBox\").hide();\r\n $(\".ercodeSignBox\").show();\r\n getQrCode();\r\n qrcodePolling = setInterval(function(){getQrCode();}, 5*60*1000);\r\n } else {\r\n var url = \"http:\/\/www.pcbsz.com\/login.php?m=admin&c=Admin&a=wechat_login&lang=cn\";\r\n var iframes = layer.open({\r\n type: 2,\r\n title: '打开微信扫一扫',\r\n fixed: true, \/\/不固定\r\n shadeClose: false,\r\n shade: layer_shade,\r\n offset: '200px',\r\n \/\/ maxmin: true, \/\/开启最大化最小化按钮\r\n area: ['500px', '460px'],\r\n content: url\r\n });\r\n }\r\n });\r\n $(\".switch-input\").click(function (e) {\r\n e.preventDefault();\r\n $(\".SignBox\").show();\r\n $(\".ercodeSignBox\").hide();\r\n clearNotify();\r\n clearQrcode();\r\n $('.ercodepic').html('<img src=\"\/public\/static\/common\/images\/loading.gif?v=v1.6.1\" style=\"width: 23px; height: 23px;margin-top: 50px;\">');\r\n });\r\n \r\n function fleshVerify(){\r\n var src = \"\/login.php?m=admin&c=Admin&a=vertify&lang=cn\";\r\n if (src.indexOf('?') > -1) {\r\n src += '&';\r\n } else {\r\n src += '?';\r\n }\r\n src += 't='+Math.floor(Math.random()*10000000);\r\n $('#imgVerify').attr('src', src);\/\/重载验证码\r\n }\r\n\r\n function getQrCode(){\r\n $.ajax({\r\n type: 'POST',\r\n url: '\/login.php?m=admin&c=Admin&a=mp_getqrcode&lang=cn',\r\n data: {op:'login', _ajax:1},\r\n dataType: \"JSON\",\r\n success: function(res){\r\n if (1 == res.code){\r\n $('.ercodepic').html(\"<img src='https:\/\/mp.weixin.qq.com\/cgi-bin\/showqrcode?ticket=\"+res.data.ticket+\"'>\");\r\n getNotify(res.data.uniqid_scene);\r\n }else{\r\n clearQrcode();\r\n layer.alert(res.msg, {icon: 5, title:false}, function(){\r\n window.location.reload();\r\n });\r\n }\r\n },\r\n error: function(e){\r\n clearQrcode();\r\n layer.alert(e.responseText, {icon: 5, title:false}, function(){\r\n window.location.reload();\r\n });\r\n }\r\n });\r\n }\r\n\r\n function getNotify(uniqid_scene){\r\n notifyPolling = setTimeout(function(){\r\n $.ajax({\r\n type: 'POST',\r\n url: \"\/login.php?m=admin&c=Admin&a=mp_bingwxgzhopenid&lang=cn\",\r\n data: {op:'login', uniqid_scene:uniqid_scene, _ajax:1},\r\n dataType: \"JSON\",\r\n success: function(res){\r\n if (1 == res.data.code) {\r\n clearNotify();\r\n layer_loading('准备进入');\r\n window.location.href = res.url;\r\n } else if (0 == res.code) {\r\n clearNotify();\r\n layer.alert(res.msg, {icon: 5, title:false, closeBtn:false}, function(){\r\n window.location.reload();\r\n });\r\n } else if (2 == res.data.code) {\r\n getNotify(uniqid_scene);\r\n }\r\n },\r\n error: function(e){\r\n clearNotify();\r\n layer.alert('扫码检测异常,重新尝试!', {icon: 5, title:false, closeBtn:false}, function(){\r\n window.location.reload();\r\n });\r\n }\r\n });\r\n }, 1800);\r\n }\r\n\r\n function clearNotify(){\r\n if(notifyPolling > 0){\r\n clearTimeout(notifyPolling);\r\n notifyPolling = null;\r\n }\r\n }\r\n\r\n function clearQrcode(){\r\n if(qrcodePolling > 0){\r\n clearInterval(qrcodePolling);\r\n qrcodePolling = null;\r\n }\r\n }\r\n\r\n \/**\r\n * 封装的加载层\r\n *\/\r\n function layer_loading(msg){\r\n var loading = layer.msg(\r\n msg+'...                请勿刷新页面', \r\n {\r\n icon: 1,\r\n time: 3600000, \/\/1小时后后自动关闭\r\n shade: [0.2] \/\/0.1透明度的白色背景\r\n });\r\n \/\/loading层\r\n var index = layer.load(3, {\r\n shade: [0.1,'#fff'] \/\/0.1透明度的白色背景\r\n });\r\n\r\n return loading;\r\n }\r\n \r\n $(function(){\r\n \r\n setTimeout(function(){\r\n $('.loading_vertify').removeClass('loading_vertify').attr('src', '');\r\n fleshVerify();\r\n },800);\r\n\r\n $(\".formText .input-text\").focus(function(){\r\n $(this).parent().addClass(\"focus\");\r\n });\r\n \r\n $(\".formText .input-text\").blur(function(){\r\n $(this).parent().removeClass(\"focus\");\r\n });\r\n \r\n $(\".formText\").blur(function(){\r\n $(this).prev().hide();\r\n });\r\n\r\n $(document).keydown(function(event){\r\n if(event.keyCode ==13){\r\n $('#theForm input[name=submit]').trigger(\"click\");\r\n }\r\n });\r\n\r\n \/**\r\n * 明文密码\r\n *\/\r\n $('.pass-showhide').toggle(function(){\r\n var name = $(this).data('name');\r\n $(\"input[name=\"+name+\"]\").get(0).type=\"text\";\r\n $(this).removeClass('hide').addClass('show');\r\n }, function(){\r\n var name = $(this).data('name');\r\n $(\"input[name=\"+name+\"]\").get(0).type=\"password\";\r\n $(this).removeClass('show').addClass('hide');\r\n });\r\n\r\n $('#theForm input[name=submit]').on('click',function(){\r\n var user_name=true;\r\n var password=true;\r\n var vertify=true;\r\n\r\n if($('#theForm input[name=user_name]').val() == ''){\r\n layer.msg('用户名不能为空!', {time: 1000});\r\n $('#theForm input[name=user_name]').focus();\r\n user_name = false;\r\n return false;\r\n }\r\n\r\n if($('#theForm input[name=password]').val() == ''){\r\n layer.msg('密码不能为空!', {time: 1000});\r\n $('#theForm input[name=password]').focus();\r\n password = false;\r\n return false;\r\n }\r\n\r\n var is_vertify = 1;\r\n if (1 == is_vertify) {\r\n if($('#theForm input[name=vertify]').val() == ''){\r\n layer.msg('验证码不能为空!', {time: 1000});\r\n $('#theForm input[name=vertify]').focus();\r\n vertify = false;\r\n return false;\r\n }\r\n }\r\n\r\n if(vertify && $('#theForm input[name=user_name]').val() != '' && $('#theForm input[name=password]').val() != ''){\r\n var url = \"\/login.php?m=admin&c=Admin&a=login&_ajax=1&lang=cn\";\r\n if (url.indexOf('?') > -1) {\r\n url += '&';\r\n } else {\r\n url += '?';\r\n }\r\n url += 't='+Math.random();\r\n var formData = $('#theForm').serialize();\r\n layer_loading('准备进入');\r\n $.ajax({\r\n async:false,\r\n url: url,\r\n data: formData,\r\n type:'post',\r\n dataType:'json',\r\n success:function(res){\r\n if(1 == res.code){\r\n top.location.href = res.url;\r\n }else{\r\n layer.closeAll();\r\n fleshVerify();\r\n user_name=false;\r\n password=false;\r\n layer.alert(res.msg, {icon: 5, title:false, closeBtn: false});\r\n return false;\r\n }\r\n },\r\n error : function(e) {\r\n layer.closeAll();\r\n layer.alert(e.responseText, {icon: 5, title:false, closeBtn: false});\r\n }\r\n });\r\n }else{\r\n return false;\r\n }\r\n });\r\n\r\n clear_session();\r\n function clear_session()\r\n {\r\n $.ajax({\r\n url: \"\/index.php?m=api&c=Ajax&a=clear_session\",\r\n type: 'post',\r\n dataType: 'JSON',\r\n data: {_ajax: 1},\r\n success: function(res){\r\n }\r\n });\r\n }\r\n });\r\n\r\n \/\/替换指定传入参数的值,paramName为参数,replaceWith为新值\r\n function replaceParamVal(querystr, paramName, replaceWith) {\r\n var re=eval('\/('+ paramName+'=)([^&]*)\/gi');\r\n querystr = querystr.replace(re,paramName+'='+replaceWith);\r\n return querystr;\r\n }\r\n <\/script>\r\n\r\n <br\/>\r\n<div id=\"goTop\">\r\n <a href=\"JavaScript:void(0);\" id=\"btntop\">\r\n <i class=\"fa fa-angle-up\"><\/i>\r\n <\/a>\r\n <a href=\"JavaScript:void(0);\" id=\"btnbottom\">\r\n <i class=\"fa fa-angle-down\"><\/i>\r\n <\/a>\r\n<\/div>\r\n\r\n<script type=\"text\/javascript\">\r\n $(document).ready(function(){\r\n $('#think_page_trace_open').css('z-index', 99999);\r\n });\r\n<\/script>\r\n<\/body>\r\n<\/html>\r\n"