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

寻找密码...

上级 b3b98250
package com.yingjun.ssm.web;
import com.google.gson.Gson;
import com.yingjun.ssm.dto.BaseResult;
import com.yingjun.ssm.entity.User;
import com.yingjun.ssm.enums.ResultEnum;
import com.yingjun.ssm.exception.BizException;
import com.yingjun.ssm.service.UserService;
import com.yingjun.ssm.util.CodeUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpSession;
/**
* 忘记密码找回密码
* @author liyunfeng
*/
@Controller
@RequestMapping("/find")
public class FindPwdController {
private final Logger LOG = LoggerFactory.getLogger(this.getClass());
@Autowired
private UserService userService;
/**
* 到达用户登录页面
* @return
*/
@RequestMapping(value = "/toFindPwd")
public String toFindPwd() {
return "/user/findPwd";
}
/**
* 找回密码
* @return
*/
@ResponseBody
@RequestMapping(value = "/findPwd",produces = {"application/json;charset=UTF-8"})
public BaseResult<Object> userLogin() {
try {
} catch (BizException e) {
return new BaseResult<>(false, e.getMessage());
} catch (Exception e) {
return new BaseResult<>(false, ResultEnum.INVALID_USER.getMsg());
}
return new BaseResult<>(true, "登陆成功");
}
}
......@@ -4,23 +4,23 @@
<head>
<meta charset="UTF-8">
<title>个人中心-找回密码</title>
<link rel="stylesheet" type="text/css" href="css/safety.css"/>
<link rel="stylesheet" type="text/css" href="/resource/css/safety.css"/>
<!--其他样式-->
<link rel="stylesheet" type="text/css" href="css/enterpriseInfo.css"/>
<link rel="stylesheet" type="text/css" href="css/proprietorship.css"/>
<link rel="stylesheet" type="text/css" href="css/buyService.css"/>
<link rel="stylesheet" type="text/css" href="css/home.css"/>
<link rel="stylesheet" type="text/css" href="css/news.css"/>
<link rel="stylesheet" type="text/css" href="css/registration.css"/>
<script src="js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/findPwd.js" type="text/javascript" charset="utf-8"></script>
<script src="js/function.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="/resource/css/enterpriseInfo.css"/>
<link rel="stylesheet" type="text/css" href="/resource/css/proprietorship.css"/>
<link rel="stylesheet" type="text/css" href="/resource/css/buyService.css"/>
<link rel="stylesheet" type="text/css" href="/resource/css/home.css"/>
<link rel="stylesheet" type="text/css" href="/resource/css/news.css"/>
<link rel="stylesheet" type="text/css" href="/resource/css/registration.css"/>
<script src="/resource/script/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/resource/script/findPwd.js" type="text/javascript" charset="utf-8"></script>
<script src="/resource/script/function.js" type="text/javascript" charset="utf-8"></script>
</head>
<body class="grayBg">
<!--首页头部-->
<header>
<div class="header-content">
<div class="logo"><span class="logo-img">京东益世集群注册平台</span></div>
<div class="logo"><span class="logo-img">益世集群注册平台</span></div>
<div class="header-menu">
<ul>
<li><a href="home.html">首页</a></li>
......@@ -33,7 +33,7 @@
</div>
<div class="mine">
<a href="secretaryLogin.html">
<div class="mine-img"><img src="img/login.png"/></div>
<div class="mine-img"><img src="/resource/img/login.png"/></div>
<div class="mine-describe"><a href="javascript:void(0)">秘书公司登录</a></div>
</a>
</div>
......@@ -47,8 +47,8 @@
<div class="contentInfo">
<ul class="getInfo margin-t-49 margin-l-40">
<li class="margin-b-19">
<label class="infoName1 inputDes" for="tel">登录手机号:</label>
<input class="showInfo" type="text" name="tel" id="tel" readonly="readonly" value="139****2345" placeholder=""/>
<label class="infoName1 inputDes" for="tel">登录邮箱号:</label>
<input class="info2" type="text" name="email" id="tel" value="" placeholder=""/>
</li>
<li class="margin-b-19">
<label class="infoName1 inputDes" for="code">验证码:</label>
......
......@@ -52,7 +52,7 @@
</ul>
<div class="forgatPwd">
<a href="/user/userRegister">新用户注册</a>
<a href="findPwd.html">忘记密码</a>
<a href="/find/toFindPwd">忘记密码</a>
</div>
<div id="loginBtn" class="myBtn mar-t-30" style="">
<a>立即登录</a>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册