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

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

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