Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
onionZunyi
beauty_ssm
提交
229bd6e5
B
beauty_ssm
项目概览
onionZunyi
/
beauty_ssm
与 Fork 源项目一致
Fork自
爱吃血肠 / beauty_ssm
通知
6
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
B
beauty_ssm
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
229bd6e5
编写于
3月 04, 2018
作者:
爱吃血肠
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
用户登录
上级
248f96be
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
263 addition
and
16 deletion
+263
-16
beauty_ssm.iml
beauty_ssm.iml
+2
-0
src/main/java/com/yingjun/ssm/web/UserController.java
src/main/java/com/yingjun/ssm/web/UserController.java
+24
-8
src/main/webapp/WEB-INF/jsp/common/home.html
src/main/webapp/WEB-INF/jsp/common/home.html
+233
-0
src/main/webapp/WEB-INF/jsp/user/userLogin.jsp
src/main/webapp/WEB-INF/jsp/user/userLogin.jsp
+2
-6
src/test/java/com/yingjun/ssm/dao/UserDaoTest.java
src/test/java/com/yingjun/ssm/dao/UserDaoTest.java
+2
-2
未找到文件。
beauty_ssm.iml
浏览文件 @
229bd6e5
...
...
@@ -93,5 +93,7 @@
<orderEntry
type=
"library"
name=
"Maven: com.dyuproject.protostuff:protostuff-api:1.0.8"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.dyuproject.protostuff:protostuff-runtime:1.0.8"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.dyuproject.protostuff:protostuff-collectionschema:1.0.8"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.codehaus.jackson:jackson-mapper-asl:1.9.12"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.codehaus.jackson:jackson-core-asl:1.9.12"
level=
"project"
/>
</component>
</module>
\ No newline at end of file
src/main/java/com/yingjun/ssm/web/UserController.java
浏览文件 @
229bd6e5
package
com.yingjun.ssm.web
;
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
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.ModelAttribute
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.*
;
/**
...
...
@@ -21,15 +21,31 @@ public class UserController {
private
final
Logger
LOG
=
LoggerFactory
.
getLogger
(
this
.
getClass
());
/**
* 到达用户登录页面
* @return
*/
@RequestMapping
(
value
=
"/login"
)
public
String
login
()
{
return
"/user/userLogin"
;
}
/**
* 用户登录
* @return
*/
@ResponseBody
@RequestMapping
(
value
=
"/userLogin"
,
produces
=
"text/html;charset=UTF-8"
)
public
String
userLogin
(
@ModelAttribute
User
user
)
{
LOG
.
info
(
"表单提交的用户信息:"
+
user
.
toString
());
return
"登录成功"
;
@RequestMapping
(
value
=
"/userLogin"
,
produces
=
{
"application/json;charset=UTF-8"
})
public
BaseResult
<
Object
>
userLogin
(
User
user
)
{
try
{
System
.
out
.
println
(
"普通用户正在登录"
+
user
);
}
catch
(
BizException
e
)
{
return
new
BaseResult
<>(
false
,
e
.
getMessage
());
}
catch
(
Exception
e
)
{
return
new
BaseResult
<>(
false
,
ResultEnum
.
INVALID_USER
.
getMsg
());
}
return
new
BaseResult
<>(
true
,
"登陆成功"
);
}
/**
...
...
src/main/webapp/WEB-INF/jsp/common/home.html
0 → 100644
浏览文件 @
229bd6e5
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
首页
</title>
<script>
var
pageConfig
=
{
jdfVersion
:
'
2.0.0
'
};
</script>
<!--首页样式表-->
<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"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/buyService.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/proprietorship.css"
/>
<script
src=
"js/jquery.min.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"js/function.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
type=
"text/javascript"
src=
"http://misc.360buyimg.com/jdf/1.0.0/unit/base/1.0.0/base.js"
></script>
</head>
<body>
<!--首页头部-->
<header>
<div
class=
"header-content"
>
<div
class=
"logo"
><span
class=
"logo-img"
>
京东益世集群注册平台
</span></div>
<div
class=
"header-menu"
>
<ul>
<li
class=
"active"
><a
href=
"#"
>
首页
</a></li>
<li><a
href=
"registration.html"
>
工商注册
</a></li>
<li><a
href=
"#"
>
个人中心
</a></li>
<li><a
href=
"enterprise.html"
>
企业中心
</a></li>
<li><a
href=
"#"
>
技术支持
</a></li>
</ul>
</div>
</div>
<div
class=
"toLogin"
>
<div
class=
"toLoginmine"
>
<a
href=
"userLogin.html"
>
<div
class=
"mine-img"
><img
src=
"img/login.png"
/></div>
<div
class=
"mine-describe"
><a
href=
"javascript:void(0)"
>
用户登录
</a></div>
</a>
</div>
<div
class=
"toLoginmine"
>
<a
href=
"secretaryLogin.html"
>
<div
class=
"mine-img"
><img
src=
"img/login.png"
/></div>
<div
class=
"mine-describe"
><a
href=
"javascript:void(0)"
>
秘书公司登录
</a></div>
</a>
</div>
</div>
</header>
<div
class=
"home-content"
>
<!--轮播-->
<div
id=
"sliderBox"
class=
"slider-box"
>
<div
class=
"content"
>
<ul>
<li><img
src=
"img/banner.jpg"
/></li>
<li><img
src=
"img/banner.jpg"
/></li>
</ul>
</div>
</div>
<div
class=
"homeList"
>
<div
class=
"list-content"
>
<div
class=
"homeImg"
>
<img
src=
"img/new.png"
/>
<div
class=
"homeTit"
><span>
标题呀
</span></div>
</div>
<div
class=
"list"
>
<div
class=
"title ubb"
>
<span>
新闻公告
</span>
</div>
<ul>
<li>
<a
href=
"news.html"
>
<span
class=
"list-title"
>
一张图看懂美联加息的影响 要小心
</span>
<span
class=
"date"
>
2017-11-9
</span>
</a>
</li>
<li>
<a
href=
"news.html"
>
<span
class=
"list-title"
>
一张图看懂美联加息的影响 要小心一张图看懂美联加息的影响 要小心一张图看懂美联加息的影响 要小心
</span>
<span
class=
"date"
>
2017-11-9
</span>
</a>
</li>
<li>
<a
href=
"news.html"
>
<span
class=
"list-title"
>
一张图看懂美联加息的影响 要小心
</span>
<span
class=
"date"
>
2017-11-9
</span>
</a>
</li>
<li>
<a
href=
"news.html"
>
<span
class=
"list-title"
>
一张图看懂美联加息的影响 要小心
</span>
<span
class=
"date"
>
2017-11-9
</span>
</a>
</li>
<li>
<a
href=
"news.html"
>
<span
class=
"list-title"
>
一张图看懂美联加息的影响 要小心
</span>
<span
class=
"date"
>
2017-11-9
</span>
</a>
</li>
<li>
<a
href=
"news.html"
>
<span
class=
"list-title"
>
一张图看懂美联加息的影响 要小心
</span>
<span
class=
"date"
>
2017-11-9
</span>
</a>
</li>
<li>
<a
href=
"news.html"
>
<span
class=
"list-title"
>
一张图看懂美联加息的影响 要小心
</span>
<span
class=
"date"
>
2017-11-9
</span>
</a>
</li>
</ul>
</div>
<div
class=
"clear"
></div>
</div>
</div>
<div
class=
"flow"
>
<div
class=
"flowcontent"
>
<div
class=
"title ubb"
>
<span>
工商营业执照申请流程
</span>
</div>
<div
class=
"flowStep"
>
<div
class=
"step"
>
<span
class=
"picture"
><img
src=
"img/realName.png"
/></span>
<span
class=
"step-tit"
>
实名认证
</span>
</div>
<div
class=
"arrow"
><img
src=
"img/arrow.png"
/></div>
<div
class=
"step"
>
<span
class=
"picture"
><img
src=
"img/secretariesCompany.png"
/></span>
<span
class=
"step-tit two"
>
选择秘书公司和服务
</span>
</div>
<div
class=
"arrow"
><img
src=
"img/arrow.png"
/></div>
<div
class=
"step"
>
<span
class=
"picture"
><img
src=
"img/enterpriseName.png"
/></span>
<span
class=
"step-tit two"
>
企业名称自主申报
</span>
</div>
<div
class=
"arrow"
><img
src=
"img/arrow.png"
/></div>
<div
class=
"step"
>
<span
class=
"picture"
><img
src=
"img/pay.png"
/></span>
<span
class=
"step-tit"
>
付款
</span>
</div>
</div>
<div
class=
"flowStep mar-t-10"
>
<div
class=
"arrow-down"
><img
src=
"img/arrow.png"
/></div>
<div
class=
"clear"
></div>
</div>
<div
class=
"flowStep mar-t-10"
>
<div
class=
"step"
>
<span
class=
"picture"
><img
src=
"img/signature.png"
/></span>
<span
class=
"step-tit"
>
用户电子签名
</span>
</div>
<div
class=
"arrow-left"
><img
src=
"img/arrow.png"
/></div>
<div
class=
"step"
>
<span
class=
"picture"
><img
src=
"img/certificate.png"
/></span>
<span
class=
"step-tit"
>
领取数字证书
</span>
</div>
<div
class=
"arrow-left"
><img
src=
"img/arrow.png"
/></div>
<div
class=
"step"
>
<span
class=
"picture"
><img
src=
"img/audit.png"
/></span>
<span
class=
"step-tit"
>
工商审核
</span>
</div>
<div
class=
"arrow-left"
><img
src=
"img/arrow.png"
/></div>
<div
class=
"step"
>
<span
class=
"picture"
><img
src=
"img/writeInfo.png"
/></span>
<span
class=
"step-tit two"
>
企业设立信息填写
</span>
</div>
</div>
<div
class=
"flowStep mar-t-10"
>
<div
class=
"arrow-down-left"
><img
src=
"img/arrow.png"
/></div>
<div
class=
"clear"
></div>
</div>
<div
class=
"flowStep mar-t-10"
>
<div
class=
"step"
>
<span
class=
"picture"
><img
src=
"img/secretariesSign.png"
/></span>
<span
class=
"step-tit"
>
秘书公司附签
</span>
</div>
<div
class=
"arrow"
><img
src=
"img/arrow.png"
/></div>
<div
class=
"step"
>
<span
class=
"picture"
><img
src=
"img/secretarieswork.png"
/></span>
<span
class=
"step-tit"
>
秘书公司办照
</span>
</div>
<div
class=
"arrow"
><img
src=
"img/arrow.png"
/></div>
<div
class=
"step"
>
<span
class=
"picture"
><img
src=
"img/userGet.png"
/></span>
<span
class=
"step-tit"
>
用户接收证照
</span>
</div>
<div
class=
"arrow"
><img
src=
"img/arrow.png"
/></div>
<div
class=
"step"
>
<span
class=
"picture"
><img
src=
"img/over.png"
/></span>
<span
class=
"step-tit"
>
完成
</span>
</div>
</div>
</div>
</div>
</div>
<footer>
<div
class=
"footer-menu"
>
<ul>
<li><a
href=
"contactUs.html"
>
关于我们
</a></li>
<li><a
href=
"registration.html"
>
工商注册
</a></li>
<li><a
href=
"enterprise.html"
>
企业中心
</a></li>
<li><a
href=
"#"
>
个人中心
</a></li>
<li><a
href=
"#"
>
技术支持
</a></li>
<li><a
href=
"#"
>
免费热线
</a></li>
</ul>
<div
class=
"tel"
>
<div
class=
"telphone"
>
400-624-2001
</div>
<div
class=
"time"
>
周一至周日 8:00-22:00
</div>
</div>
</div>
<div
class=
"footer-right"
>
<span>
Copyright © 2004-2016
<strong>
SQYiShi.com
</strong>
ALL Rights Reserved 苏ICP备15048094号-2
</span>
</div>
</footer>
</body>
<script
type=
"text/javascript"
>
seajs
.
use
(
'
jdf/2.0.0/ui/slider/1.0.0/slider
'
,
function
(
slider
){
var
sliderBox
=
$
(
'
#sliderBox
'
).
slider
({
navEl
:
'
.nav li
'
,
contentEl
:
'
.content li
'
,
curCls
:
'
current
'
,
nextEl
:
'
.next
'
,
prevEl
:
'
.prev
'
,
speed
:
600
,
isAutoPlay
:
true
,
visible
:
1
,
evt
:
'
mouseenter
'
,
isLoop
:
true
,
interval
:
3000
});
});
</script>
</html>
src/main/webapp/WEB-INF/jsp/user/userLogin.jsp
浏览文件 @
229bd6e5
...
...
@@ -85,15 +85,11 @@
<script>
//用户登录异步提交表单
$
(
'
#loginBtn
'
).
bind
(
"
click
"
,
function
(){
//$('#userLogin').submit();
var
uploadFormData
=
new
FormData
(
$
(
'
#userLogin
'
)[
0
]);
$
.
ajax
({
type
:
'
POST
'
,
data
:
uploadFormData
,
data
:
$
(
'
#userLogin
'
).
serialize
(),
dataType
:
"
json
"
,
url
:
'
/user/userLogin
'
,
processData
:
false
,
contentType
:
false
,
async
:
false
,
success
:
function
(
data
)
{
console
.
log
(
data
);
}
...
...
src/test/java/com/yingjun/ssm/dao/UserDaoTest.java
浏览文件 @
229bd6e5
...
...
@@ -11,8 +11,8 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
* @author liyunfeng
* 普通用户
*/
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@ContextConfiguration
(
"classpath:spring/spring-dao.xml"
)
//
@RunWith(SpringJUnit4ClassRunner.class)
//
@ContextConfiguration("classpath:spring/spring-dao.xml")
public
class
UserDaoTest
{
// @Autowired
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录