10.10UserAccount项目
##一、搭建
1、idea导入UserAccount的所有工程
2. idea添加tomcat,url:http://localhost:8080/v101/cas
3. 选中deployment 标签栏, add --> artifact 添加如下两个application,并修改其contextpath
4、搜索UserAccount目录下所有文件,进行两次替换
https://sso.supermapol.com/v101 替换为 http://sso.supermapol.com/v101
sso.supermapol.com/v101替换为ssodebug.supermapol.com/v101
sso.supermapol.com/v101替换为127.0.0.1
5、配置nginx,使/v101及之后的请求 转发至调试环境
server {
listen 80;
server_name 127.0.0.1;
location /v101 {
proxy_pass http://127.0.0.1:8080;
}
}
6.点击debug启动调试程序
http://127.0.0.1/v101/cas/phoneregister?service=http://127.0.0.1/v101/account/manager/manager.do?manager=accountInfo##二、页面修改
1.手机注册页面
之前:

改后:

启动:http://localhost:8080/v101/cas
http://127.0.0.1/v101/account/manager/manager.do?manager=accountInfo
http://127.0.0.1/v101/cas/phoneregister?service=http://127.0.0.1/v101/account/manager/manager.do?manager=accountInfo
casPhoneRegisterView.jsp 手机页面
viewResource.properties 常量定义
ICloudPhoneRegistration 实体类
casUI.js 常量定义
register.js 事件
user.js 事件1. casPhoneRegisterView.jsp 手机页面修改
2. viewResource.properties 定义多个变量
3. ICloudPhoneRegistration 实体类新增姓名和单位名
4. register.js
注释213,217-220 关掉输入框placeholder的昵称事件
5. user.js
注释508,509 关掉输入框placeholder的密码事件,切换以前设置的js中文,,错误**
注释474 密码失去焦点,移除placeholder的事件三、后端
1210737588@qq.com
111111
17783116571执行流程:
RegistrationViaFormAction 的doPhoneRegister(final RequestContext context,
final ICloudPhoneRegistration registration)
//RequestContext 工作流
//ICloudPhoneRegistration 页面对象>页面
UserService 的registPhoneUser(ICloudPhoneRegistration user)1.UserService
新增了校验空值
StringUtils.isEmpty(user.getUsername()) || StringUtils.isEmpty(user.getCompanyname()四、去掉邮箱注册链接
UserAccount\accounts\src\main\webapp\WEB-INF\web.xml的140-144行
<!-- 注册
<servlet-mapping>
<servlet-name>cas</servlet-name>
<url-pattern>/register</url-pattern>
</servlet-mapping>-->
<!-- 手机号注册 -->五、页面再次修改
1.input common.css 2行
D:\supermap\ideaworkspaces\UserAccount\accounts\src\main\webapp\style\common.css
input{ font-family:microsoft yahei;}
2.输入框扩大5px,里面字体扩大12=>13
register.css 3行
.sso_block input[type="text"],.sso_block input[type="password"]{width: 285px;height:32px;margin-left: 24px;border-radius:2px;font-size: 13px;line-height:24px;}
3. register.css 13行
验证码向右5px
4. register.css 14行
注册按钮扩大5px 向右5px