提交 62646a53 编写于 作者: 爱吃血肠's avatar 爱吃血肠

登录同意改为用户名+密码

上级 fd255c72
...@@ -174,7 +174,7 @@ ...@@ -174,7 +174,7 @@
select select
<include refid="t_opreator_user_Column" /> <include refid="t_opreator_user_Column" />
from t_opreator_user from t_opreator_user
where t_opreator_user.email = #{email} where t_opreator_user.operator_name = #{operatorName}
and t_opreator_user.operator_password = #{operatorPassword} and t_opreator_user.operator_password = #{operatorPassword}
</select> </select>
</mapper> </mapper>
\ No newline at end of file
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<div class="detail"> <div class="detail">
<ul> <ul>
<li> <li>
<input class="input telNum" type="text" name="email" id="email" value="" placeholder="请输入邮箱"/> <input class="input telNum" type="text" name="operatorName" id="operatorName" value="" placeholder="请输入用户名"/>
</li> </li>
<li> <li>
<input class="input pwd" type="password" name="operatorPassword" id="password" value="" placeholder="请输入密码"/> <input class="input pwd" type="password" name="operatorPassword" id="password" value="" placeholder="请输入密码"/>
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
<script> <script>
//用户登录异步提交表单 //用户登录异步提交表单
$('#loginBtn').bind("click", function(){ $('#loginBtn').bind("click", function(){
alert("2123");
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
data: $('#adminLogin').serialize(), data: $('#adminLogin').serialize(),
...@@ -93,7 +93,6 @@ ...@@ -93,7 +93,6 @@
url: '/admin/adminLogin', url: '/admin/adminLogin',
success: function (data) { success: function (data) {
if(data.success){ if(data.success){
alert(data.error);
window.location.href = "/admin/adminLoginSuccess"; window.location.href = "/admin/adminLoginSuccess";
}else{ }else{
alert(data.error); alert(data.error);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册