是否还在为登陆界面用户登陆信息错误后直接跳转首页烦恼么,给大家带来了修复教程,
其实修复这个也只是无意间的一个发现
我在测试官网的时候发现点了登陆然后跳出的地址依然是顶级域名,且后面并没有reg.html
我就想是不是官方并没有用oem模板呢
去掉oem的指向路径之后发现的确是出现了跟官网一样的情况 而且登陆验证神奇般的好了
下面放出我修改的办法
/public_html/wx/view/new/index.html
<meta http-equiv="refresh" content="0.1;url=view/index.php">
去掉/public_html/wx/controller/index.php里面的oem指向信息 也就是最下面的那3个网站 不要填自己的网址,随便填下就行了
if(strpos(strtolower($_SERVER ['HTTP_HOST']),'wceshi.785d.com') !== false){ Response::write(file_get_contents(YYUC_FRAME_PATH.YYUC_PUB.'/view/index.html')); die(); } if(strpos(strtolower($_SERVER ['HTTP_HOST']),'www.lzwxyx.net') !== false){ Response::write(file_get_contents(YYUC_FRAME_PATH.YYUC_PUB.'/view/index.html')); die(); } if(strpos(strtolower($_SERVER ['HTTP_HOST']),'www.lzwxyx.net') !== false){ Response::write(file_get_contents(YYUC_FRAME_PATH.YYUC_PUB.'/view/index.html')); die(); }
去掉/public_html/wx/view/new/index.html内其他不需要的内容 保留js部分 吧上面的重定向的代码放到head内 注:view/index.php是你的模板路径
下面是我的最终代码:
/public_html/wx/view/new/index.html
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="refresh" content="0.1;url=view/index.php"> <title>{$gti}</title> </head> <style type="text/css"> .footer dd p { line-height: 32px; font-family: 宋体; margin: 10px 0; display: block; } #cooper { width: 1400px; margin: 0 auto; height: 100px; } </style> <script type="text/javascript"> function checkEmail(){ var email = Duomeng.getElementById('fun'); var _email=document.getElementById('email_warn_box'); var warn=document.getElementById('email_warn'); var value = email.value; //if (value && value.match(/^[\w\.\-]+@([\w\-]+\.)+[a-z]{2,4}$/ig)){ if (value){ input_correct(email); _email.style.visibility="hidden"; return true; } else { // input_error(email,"input_email_e"); input_error1(email); warn.innerHTML="用户名不能为空"; _email.style.visibility="visible"; return false; } } function checkPwd(){ var pwd = Duomeng.getElementById('fpwd'); var _password=document.getElementById('pw_warn_box'); var warn1=document.getElementById('pw_warn'); //if (pwd.value && pwd.value.length >= 6 && pwd.value.length <= 20){ if (pwd.value){ input_correct(pwd); _password.style.visibility="hidden"; } else { // input_error(pwd,"reinput_password_e"); input_error1(pwd); warn1.innerHTML="密码不能为空"; _password.style.visibility="visible"; return false; } return true; } setTimeout(function(){ Duomeng.getElementById('fun').value && checkEmail(); Duomeng.getElementById('fpwd').value && checkPwd(); },500); function input_error(el,classname){ el.className = classname; } function input_correct(el){ //el.className = "input_correct"; } function change_input_bg(el,id){ var warn=document.getElementById(id); el.className="input_active"; warn.style.visibility="hidden"; } function back_input_bg(el){ el.className=""; } function bgnone(el){ el.className="bgnone"; } function input_error1(el){ el.className="input_error1"; } --> </script>