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

优化用户登录

上级 f8d97b7a
......@@ -119,7 +119,7 @@
<include refid="t_user_Column" />
from t_user
<where>
<if test="email != null "> and t_user.email = #{email}</if>
<if test="name != null "> and t_user.name = #{name}</if>
<if test="password != null "> and t_user.password = #{password}</if>
</where>
</select>
......
......@@ -44,7 +44,7 @@
<div class="detail">
<ul>
<li>
<input class="input telNum" type="text" name="email" id="" value="" placeholder="请输入邮箱"/>
<input class="input telNum" type="text" name="email" id="" value="" placeholder="请输入用户名"/>
</li>
<li>
<input class="input pwd" type="password" name="password" id="pwd" value="" placeholder="请输入密码"/>
......@@ -92,7 +92,6 @@
url: '/user/userLogin',
success: function (data) {
if(data.success){
alert(data.error);
window.location.href = "/user/home";
}else{
alert(data.error);
......
......@@ -39,6 +39,10 @@
<div class="findPwd">
<div class="contentInfo">
<ul class="getInfo margin-t-49 margin-l-40">
<li class="margin-b-19">
<label class="infoName1 inputDes" for="email">用户名:</label>
<input class="info write-n" type="text" name="name" id="name" value="" placeholder="请输入用户名称"/>
</li>
<li class="margin-b-19">
<label class="infoName1 inputDes" for="email">登录邮箱:</label>
<input class="info write-n" type="text" name="email" id="email" value="" placeholder="请输入登录邮箱"/>
......@@ -50,11 +54,11 @@
</li>
<li class="margin-b-19">
<label class="infoName1 inputDes" for="newPwd">设置登录密码:</label>
<input class="info write-n" type="text" name="password" id="newPwd" value="" placeholder="请设置密码"/>
<input class="info write-n" type="password" name="password" id="newPwd" value="" placeholder="请设置密码"/>
</li>
<li class="margin-b-19">
<label class="infoName1 inputDes" for="pwd-a">再次输入密码:</label>
<input class="info write-n" type="text" name="pwd-a" id="pwd-a" value="" placeholder="请再次输入密码"/>
<input class="info write-n" type="password" name="pwd-a" id="pwd-a" value="" placeholder="请再次输入密码"/>
</li>
</ul>
<div class="btn-bounce" onclick="sure()">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册