Commit 8c715f46 authored by liuchao's avatar liuchao

no message

parent 79ae949f
......@@ -41,13 +41,7 @@ public class UserController extends BaseController<Object>{
@Autowired
private UserService userService;
@Auth(verifyLogin = false, verifyURL = false)
@RequestMapping("/reg")
public ModelAndView index() throws Exception {
ModelAndView t_view = new ModelAndView();
t_view.setViewName("reg");
return t_view;
}
@Auth(verifyLogin = false, verifyURL = false)
@RequestMapping("/login")
......@@ -57,6 +51,14 @@ public class UserController extends BaseController<Object>{
return t_view;
}
@RequestMapping("/user/add")
public ModelAndView index() throws Exception {
ModelAndView t_view = new ModelAndView();
t_view.setViewName("user/saveuser");
return t_view;
}
@Auth(verifyLogin = false, verifyURL = false)
@RequestMapping("/api/user/save")
public ModelAndView saveUser(UserVo userVo, HttpServletResponse response, HttpServletRequest request) throws Exception {
......@@ -169,17 +171,9 @@ public class UserController extends BaseController<Object>{
return view;
}
@RequestMapping("/api/user/list")
@RequestMapping("/user/list")
public ModelAndView userList(UserVo userVo, HttpServletResponse response, HttpServletRequest request) throws Exception {
ModelAndView view = new ModelAndView();
ResourceBundle rb = ResourceBundle.getBundle("system");
String superAdmin = rb.getString("account");
String p = rb.getString("password");
User userSession = SessionUtils.getUser(request);
if (superAdmin.equals(userSession.getMobile()) && MD5.digest(p).equals(userSession.getPwd())) {
IPageList<User> userPage = userService.findByUsers(userVo.getSearchStr(), userVo.getRole(), userVo.getOrder(), userVo.getSort(),
new Hints(getStartRow(request), getPageCount(request)));
......@@ -187,11 +181,7 @@ public class UserController extends BaseController<Object>{
view.getModelMap().addAttribute("pageCount", getPageCount(request));
view.getModelMap().addAttribute("pageNumber", getPageNumber(request));
view.getModelMap().addAttribute("userVo", userVo);
view.setViewName("userList");
} else {
SessionUtils.removeUser(request);
view.setViewName("index");
}
view.setViewName("user/userlist");
return view;
......
......@@ -81,11 +81,11 @@ public class UserDaoImpl extends AbsDao<User, String> implements UserDao {
String param = "%" + searchStr + "%";
IPageList<User> users = new PageListImpl<User>();
if (role != null){
users.setRecords(find(FIND_USER_PAGE + groupHql + sortHQL(order, sort), hints, param, param, role));
users.setRecordTotal(findCount(" select count(*) " + FIND_USER_PAGE + groupHql, param, param, role));
users.setRecords(find(FIND_USER_PAGE + groupHql + sortHQL(order, sort), hints, param, param, param, param, role));
users.setRecordTotal(findCount(" select count(*) " + FIND_USER_PAGE + groupHql, param, param, param, param, role));
} else {
users.setRecords(find(FIND_USER_PAGE + sortHQL(order, sort), hints, param, param));
users.setRecordTotal(findCount(" select count(*) " + FIND_USER_PAGE, param, param));
users.setRecords(find(FIND_USER_PAGE + sortHQL(order, sort), hints, param, param, param, param));
users.setRecordTotal(findCount(" select count(*) " + FIND_USER_PAGE, param, param, param, param));
}
return users;
......
......@@ -33,7 +33,7 @@ public class Activity {
private String name; //活动名称
private String type; //采样编号
private String type; //活动类型
@Lob
private String addr; //地点
......@@ -42,13 +42,13 @@ public class Activity {
private String content; //详细信息
@ManyToOne
private User review; //数据初审者;
private User review; //;
private Date day; //活动时间
private long max; //最大人数;
private String crowd; //适用人群
private String crowd; //适用人群 1,2,3
private boolean available; //活动是否可用
......
......@@ -33,8 +33,8 @@ public class User {
private String userName; //用户名
private String name; //姓名
private String gender; //性别
private String birthdate; //出生年月
private String paperType; //证件类型
private String birthday; //出生年月
private String paperType; //证件类型 1.身份证
private String paperId; //证件号
private String nation; //民族
private String nativePlace; //籍贯
......@@ -48,7 +48,7 @@ public class User {
private String profession; //职业
private String mobile; //本人手机
private String email; //电话
private String email; //邮箱
private String tel; //固定电话
private String qq;
private String weixin; //微信号
......@@ -62,8 +62,8 @@ public class User {
private String pwd; //密码
private String role; //角色 1.管理员 2.志愿者 3.预注册用户
private String role; //角色 1.管理员 2.志愿者
private String status; //状态 0.未采血 1.已采血
private Date createTime = new Date();
......@@ -155,11 +155,12 @@ public class User {
public void setGender(String gender) {
this.gender = gender;
}
public String getBirthdate() {
return birthdate;
public String getBirthday() {
return birthday;
}
public void setBirthdate(String birthdate) {
this.birthdate = birthdate;
public void setBirthday(String birthday) {
this.birthday = birthday;
}
public String getPaperType() {
return paperType;
......@@ -293,6 +294,18 @@ public class User {
public void setReview(Set<Blood> review) {
this.review = review;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public Set<Points> getPoints() {
return points;
}
public void setPoints(Set<Points> points) {
this.points = points;
}
......
......@@ -31,7 +31,13 @@
<link rel="stylesheet" href="<webpath:path/>/resources/assets/css/ace.min.css" />
<link rel="stylesheet" href="<webpath:path/>/resources/assets/css/ace-rtl.min.css"/>
<link rel="stylesheet" href="<webpath:path/>/resources/assets/css/ace-skins.min.css" />
<link rel="stylesheet" href="<webpath:path/>/resources/css/page.css">
<link rel="stylesheet" href="<webpath:path/>/resources/assets/css/datepicker/datepicker.css" />
<link rel="stylesheet" href="<webpath:path/>/resources/assets/css/select2/select2.css" />
<link rel="stylesheet" href="<webpath:path/>/resources/assets/css/hsCheckData/hsCheckData.css" />
<link rel="stylesheet" href="<webpath:path/>/resources/css/page.css"/>
<!--[if lte IE 8] >
<link rel="stylesheet" href="<webpath:path/>/resources/assets/css/ace-ie.min.css"/>
<![endif] -->
......@@ -41,7 +47,7 @@
var webPath="<webpath:path/>";
</script>
<!-- inline styles related to this page -->
<script src="<webpath:path/>/resources/assets/js/jquery-2.0.3.min.js"></script>
<script src="<webpath:path/>/resources/assets/js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="<webpath:path/>/resources/assets/js/bootstrap.min.js"></script>
<script src="<webpath:path/>/resources/assets/js/ace-extra.min.js"></script>
......@@ -56,11 +62,15 @@
<script src="<webpath:path/>/resources/assets/js/jquery.ui.touch-punch.min.js"></script>
<script src="<webpath:path/>/resources/assets/js/jquery.slimscroll.min.js"></script>
<script src="<webpath:path/>/resources/assets/js/jquery.easy-pie-chart.min.js"></script>
<script src="<webpath:path/>/resources/assets/js/jquery.sparkline.min.js"></script>
<script src="<webpath:path/>/resources/assets/js/flot/jquery.flot.min.js"></script>
<script src="<webpath:path/>/resources/assets/js/flot/jquery.flot.pie.min.js"></script>
<script src="<webpath:path/>/resources/assets/js/flot/jquery.flot.resize.min.js"></script>
<script src="<webpath:path/>/resources/assets/js/jquery.dataTables.min.js"></script>
<script src="<webpath:path/>/resources/assets/js/jquery.dataTables.bootstrap.js"></script>
<script src="<webpath:path/>/resources/assets/js/datepicker/bootstrap-datepicker.js"></script>
<script src="<webpath:path/>/resources/assets/js/select2/select2.js"></script>
<script src="<webpath:path/>/resources/assets/js/hsCheckData/hsCheckData.js"></script>
<!-- ace scripts -->
......@@ -70,7 +80,7 @@
<script type="text/javascript" src="<webpath:path/>/resources/js/tools/jquery.validate.js"></script>
<script type="text/javascript" src="<webpath:path/>/resources/assets/js/bootbox.min.js"></script>
<%-- <script type="text/javascript" src="<webpath:path/>/resources/js/tools/jquerysession.js"></script> --%>
<script type="text/javascript" src="<webpath:path/>/resources/js/tools/jquerysession.js"></script>
<script type="text/javascript" src="<webpath:path/>/resources/js/argus.js"></script>
<!--[if lt IE 9] >
<script src="<webpath:path/>/resources/assets/js/html5shiv.js" />
......@@ -78,7 +88,11 @@
<![endif] -->
<%-- <script type="text/javascript" src="<webpath:path/>/resources/js/tools/jquery.min.js"></script>
<script type="text/javascript" src="<webpath:path/>/resources/js/tools/jquery.validate.js"></script>
<script type="text/javascript" src="<webpath:path/>/resources/assets/js/bootbox.min.js"></script>
<script type="text/javascript" src="<webpath:path/>/resources/assets/js/bootstrap.min.js"></script>
<script type="text/javascript" src="<webpath:path/>/resources/js/argus.js"></script> --%>
<decorator:head />
</head>
......@@ -162,8 +176,8 @@
<ul class="nav nav-list">
<li class="active">
<a href="index.html">
<li class="">
<a href="<webpath:path/>/user/list">
<i class="icon-user"></i>
<span class="menu-text"> 用户管理 </span>
</a>
......
This diff is collapsed.
......@@ -26,6 +26,119 @@
</div>
<div class="page-content">
<div class="row">
<div class="col-xs-12">
<div class="widget-toolbox">
<div class="btn-group">
<button class="btn btn-sm btn-success" onclick="window.location.href='<webpath:path/>/user/add'">
<i class="icon-plus-sign-alt bigger-110"></i>
新增
</button>
<button class="btn btn-sm btn-success">
<i class="icon-star-half-full bigger-110"></i>
导入
</button>
<button class="btn btn-sm btn-danger">
<i class="icon-trash bigger-110"></i>
删除
</button>
</div>
</div>
<table id="sample-table-1" class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th class="center">
<label>
<input type="checkbox" class="ace">
<span class="lbl"></span>
</label>
</th>
<th>姓名</th>
<th>性别</th>
<th>出生年月</th>
<th>籍贯</th>
<th>证件</th>
<th>证件号</th>
<th>手机号</th>
<th>角色</th>
<th><i class="icon-time bigger-110 hidden-480"></i>注册时间</th>
<th class="hidden-480">状态</th>
<th width="100">操作</th>
</tr>
</thead>
<tbody>
<tr>
<td class="center" width=10>
<label>
<input type="checkbox" class="ace">
<span class="lbl"></span>
</label>
</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td>
<span class="label label-sm label-warning">未采血</span>
</td>
<td>
<div class="visible-md visible-lg hidden-sm hidden-xs btn-group">
<button class="btn btn-xs btn-info">
<i class="icon-edit bigger-120"></i>
</button>
&nbsp;
<button class="btn btn-xs btn-danger">
<i class="icon-trash bigger-120"></i>
</button>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
......
/*!
* Datepicker for Bootstrap
*
* Copyright 2012 Stefan Petre
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
*/
.datepicker {
top: 0;
left: 0;
padding: 4px;
margin-top: 1px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
/*.dow {
border-top: 1px solid #ddd !important;
}*/
}
.datepicker:before {
content: '';
display: inline-block;
border-left: 7px solid transparent;
border-right: 7px solid transparent;
border-bottom: 7px solid #ccc;
border-bottom-color: rgba(0, 0, 0, 0.2);
position: absolute;
top: -7px;
left: 6px;
}
.datepicker:after {
content: '';
display: inline-block;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-bottom: 6px solid #ffffff;
position: absolute;
top: -6px;
left: 7px;
}
.datepicker > div {
display: none;
}
.datepicker table {
width: 100%;
margin: 0;
}
.datepicker td,
.datepicker th {
text-align: center;
width: 20px;
height: 20px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
.datepicker td.day:hover {
background: #eeeeee;
cursor: pointer;
}
.datepicker td.day.disabled {
color: #eeeeee;
}
.datepicker td.old,
.datepicker td.new {
color: #999999;
}
.datepicker td.active,
.datepicker td.active:hover {
color: #ffffff;
background-color: #006dcc;
background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
background-image: -o-linear-gradient(top, #0088cc, #0044cc);
background-image: linear-gradient(to bottom, #0088cc, #0044cc);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0044cc', GradientType=0);
border-color: #0044cc #0044cc #002a80;
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
*background-color: #0044cc;
/* Darken IE7 buttons by default so they stand out more given they won't have borders */
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
color: #fff;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}
.datepicker td.active:hover,
.datepicker td.active:hover:hover,
.datepicker td.active:focus,
.datepicker td.active:hover:focus,
.datepicker td.active:active,
.datepicker td.active:hover:active,
.datepicker td.active.active,
.datepicker td.active:hover.active,
.datepicker td.active.disabled,
.datepicker td.active:hover.disabled,
.datepicker td.active[disabled],
.datepicker td.active:hover[disabled] {
color: #ffffff;
background-color: #0044cc;
*background-color: #003bb3;
}
.datepicker td.active:active,
.datepicker td.active:hover:active,
.datepicker td.active.active,
.datepicker td.active:hover.active {
background-color: #003399 \9;
}
.datepicker td span {
display: block;
width: 47px;
height: 54px;
line-height: 54px;
float: left;
margin: 2px;
cursor: pointer;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
.datepicker td span:hover {
background: #eeeeee;
}
.datepicker td span.active {
color: #ffffff;
background-color: #006dcc;
background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
background-image: -o-linear-gradient(top, #0088cc, #0044cc);
background-image: linear-gradient(to bottom, #0088cc, #0044cc);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0044cc', GradientType=0);
border-color: #0044cc #0044cc #002a80;
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
*background-color: #0044cc;
/* Darken IE7 buttons by default so they stand out more given they won't have borders */
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
color: #fff;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}
.datepicker td span.active:hover,
.datepicker td span.active:focus,
.datepicker td span.active:active,
.datepicker td span.active.active,
.datepicker td span.active.disabled,
.datepicker td span.active[disabled] {
color: #ffffff;
background-color: #0044cc;
*background-color: #003bb3;
}
.datepicker td span.active:active,
.datepicker td span.active.active {
background-color: #003399 \9;
}
.datepicker td span.old {
color: #999999;
}
.datepicker th.switch {
width: 145px;
}
.datepicker th.next,
.datepicker th.prev {
font-size: 21px;
}
.datepicker thead tr:first-child th {
cursor: pointer;
}
.datepicker thead tr:first-child th:hover {
background: #eeeeee;
}
.input-append.date .add-on i,
.input-prepend.date .add-on i {
display: block;
cursor: pointer;
width: 16px;
height: 16px;
}
\ No newline at end of file
.hsCheckData {
display: inline-block;
height: 28px;
border: 1px solid #ccc;
background-color: #ffffff;
min-width: 188px;
cursor: pointer;
border-radius: 2px;
line-height: 30px;
padding-left: 10px;
background-image: url(img/nc.png);
background-repeat: no-repeat;
background-position: 98% 50%;
}
.hsCjeckData_check {
background-image: url(img/yc.png);
}
.hcd_main_border {
display: inline-block;
border: 1px solid #ccc;
background-color: #ffffff;
border-bottom-left-radius: 2px;
border-bottom-right-radius: 2px;
height: 300px;
padding: 5px;
position: absolute;
border-top: none;
}
.hcd_filter {
width: 100%;
height: 30px;
display: inline-block;
margin-bottom: 5px;
}
.hcd_filter_input {
height: 20px;
border: 1px solid #ccc;
border-radius: 2px;
padding: 4px 6px;
font-size: 14px;
background-image: url(img/filter.png);
background-repeat: no-repeat;
background-position: 98% 50%;
}
.hcd_dataList {
height: 230px;
width: 100%;
display: inline-block;
overflow-y: auto;
overflow-x: hiden;
}
.hcd_dataList > ul {
padding-left: 0 !important;
}
.hcd_dataList > ul li {
list-style-type: none;
cursor: pointer;
}
.hcd_dataList > ul > li {
padding-left: 0px;
}
.hcd_dataList > ul > li > div {
padding-left: 15px;
}
.exsitChild {
background-image: url(img/close.png);
background-repeat: no-repeat;
background-position: 0 0;
display: inline-block;
width: 7px;
height: 8px;
margin-right:5px;
}
.exsitChild_check {
background-image: url(img/open.png);
}
.ec {
min-height: 22px;
font-size: 14px;
line-height: 22px;
}
.ec > div {
padding-left: 3px !important;
}
[name='datali'] > div:hover,
.ec > div:hover {
background-color: #3ab2d0;
color: #ffffff;
}
.hcd_btn_div {
margin-top: 10px;
text-align: right;
background-color: #f5f5f5;
height: 29px;
width: 310px;
margin-left: -5px;
border-top: 1px solid #e3e3e3;
}
.hcd_btn {
margin-right: 5px;
margin-top: 4px;
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
//兼容ie6的fixed代码
//jQuery(function($j){
// $j('#pop').positionFixed()
//})
(function($j){
$j.positionFixed = function(el){
$j(el).each(function(){
new fixed(this)
})
return el;
}
$j.fn.positionFixed = function(){
return $j.positionFixed(this)
}
var fixed = $j.positionFixed.impl = function(el){
var o=this;
o.sts={
target : $j(el).css('position','fixed'),
container : $j(window)
}
o.sts.currentCss = {
top : o.sts.target.css('top'),
right : o.sts.target.css('right'),
bottom : o.sts.target.css('bottom'),
left : o.sts.target.css('left')
}
if(!o.ie6)return;
o.bindEvent();
}
$j.extend(fixed.prototype,{
ie6 : $.browser.msie && $.browser.version < 7.0,
bindEvent : function(){
var o=this;
o.sts.target.css('position','absolute')
o.overRelative().initBasePos();
o.sts.target.css(o.sts.basePos)
o.sts.container.scroll(o.scrollEvent()).resize(o.resizeEvent());
o.setPos();
},
overRelative : function(){
var o=this;
var relative = o.sts.target.parents().filter(function(){
if($j(this).css('position')=='relative')return this;
})
if(relative.size()>0)relative.after(o.sts.target)
return o;
},
initBasePos : function(){
var o=this;
o.sts.basePos = {
top: o.sts.target.offset().top - (o.sts.currentCss.top=='auto'?o.sts.container.scrollTop():0),
left: o.sts.target.offset().left - (o.sts.currentCss.left=='auto'?o.sts.container.scrollLeft():0)
}
return o;
},
setPos : function(){
var o=this;
o.sts.target.css({
top: o.sts.container.scrollTop() + o.sts.basePos.top,
left: o.sts.container.scrollLeft() + o.sts.basePos.left
})
},
scrollEvent : function(){
var o=this;
return function(){
o.setPos();
}
},
resizeEvent : function(){
var o=this;
return function(){
setTimeout(function(){
o.sts.target.css(o.sts.currentCss)
o.initBasePos();
o.setPos()
},1)
}
}
})
})(jQuery)
//jQuery(function($j){
// $j('#footer').positionFixed()
//})
//pop右下角弹窗函数
function popup(title,url,intro){
this.title=title;
this.url=url;
this.intro=intro;
this.apearTime=1000;
this.hideTime=500;
this.delay=100000;
//添加信息
this.addInfo();
//显示
this.showDiv();
//关闭
this.closeDiv();
}
popup.prototype={
addInfo:function(){
$("#popTitle a").attr('href',this.url).html(this.title);
$("#popIntro").html(this.intro);
$("#popMore a").attr('href',this.url);
},
showDiv:function(time){
if (!($.browser.msie && ($.browser.version == "6.0") && !$.support.style)) {
$('#pop').slideDown(this.apearTime);//.delay(this.delay).fadeOut(400);
} else{//调用jquery.fixed.js,解决ie6不能用fixed
$('#pop').show();
jQuery(function($j){
$j('#pop').positionFixed()
})
}
},
closeDiv:function(){
$("#popClose").click(function(){
$('#pop').hide();
}
);
}
};

(function() {
......@@ -484,8 +361,22 @@ function set_tr_class(element, selected) {
}
$(document).ready(function () {
/* checks all the checkboxes within a table */
$("table input[class=checkall]").live("click", function (event) {
$('table th input:checkbox').on('click' , function(){
var that = this;
$(this).closest('table').find('tr > td:first-child input:checkbox')
.each(function(){
this.checked = that.checked;
$(this).closest('tr').toggleClass('selected');
});
});
/* checks all the checkboxes within a table
$("table input[class=checkall]").bind("click", function (event) {
var checked = $(this).attr("checked");
$("table input[type=checkbox]").each(function () {
......@@ -499,14 +390,14 @@ $(document).ready(function () {
});
});
/* sets the class of the table tr when a checkbox within the table is checked */
$("table input[type=checkbox]").live("click", function (event) {
sets the class of the table tr when a checkbox within the table is checked
$("table input[type=checkbox]").bind("click", function (event) {
if ($(this).attr("checked")) {
set_tr_class($(this).parent().parent(), true);
} else {
set_tr_class($(this).parent().parent(), false);
}
});
});*/
handlePortletTools();
});
......
var cityData=[
{"11":"北京"},
{"12":"天津"},
{
"13":"河北",
"childCity":[
{"1301":"石家庄"},
{"1302":"保定"},
{"1303":"邯郸"},
{"1304":"承德"},
{"1305":"张家口"},
{"1306":"唐山"},
{"1307":"秦皇岛"},
{"1308":"廊坊"},
{"1309":"沧州"},
{"1310":"衡水"},
{"1311":"邢台"}
]},
{
"14":"山西",
"childCity":[
{"1401":"太原"},
{"1402":"大同"},
{"1403":"晋中"},
{"1404":"运城"},
{"1405":"长治"},
{"1406":"吕梁"},
{"1407":"临汾"},
{"1408":"忻州"},
{"1409":"朔州"},
{"1410":"晋城"},
{"1411":"阳泉"}
]
},
{
"15":"内蒙古",
"childCity":[
{"1501":"呼和浩特"},
{"1502":"包头"},
{"1503":"乌海"},
{"1504":"赤峰"},
{"1505":"通辽"},
{"1506":"鄂尔多斯"},
{"1507":"呼伦贝尔"},
{"1508":"巴彦淖尔"},
{"1509":"乌兰察布"},
{"1510":"锡林郭勒"},
{"1511":"阿拉善"},
{"1512":"兴安"}
]
},
{
"21":"辽宁",
"childCity":[
{"2101":"沈阳"},
{"2102":"大连"},
{"2103":"鞍山"},
{"2104":"抚顺"},
{"2105":"抚顺"},
{"2106":"丹东"},
{"2107":"锦州"},
{"2108":"营口"},
{"2109":"阜新"},
{"2110":"辽阳"},
{"2111":"盘锦"},
{"2112":"铁岭"},
{"2113":"葫芦岛"}
]
},
{
"22":"吉林",
"childCity":[
{"2201":"长春"},
{"2202":"四平"},
{"2203":"吉林"},
{"2204":"辽源"},
{"2205":"通化"},
{"2206":"白山"},
{"2207":"白城"},
{"2208":"松原"}
]
},
{
"23":"黑龙江",
"childCity":[
{"2301":"哈尔滨"},
{"2302":"齐齐哈尔"},
{"2303":"牡丹江"},
{"2304":"佳木斯"},
{"2305":"大庆"},
{"2306":"伊春"},
{"2307":"鸡西"},
{"2308":"鹤岗"},
{"2309":"双鸭山"},
{"2310":"七台河"},
{"2311":"绥化"},
{"2312":"黑河"}
]
},
{"31":"上海"},
{
"32":"江苏",
"childCity":[
{"3201":"苏州"},
{"3202":"南京"},
{"3203":"无锡"},
{"3204":"常州"},
{"3205":"常熟"},
{"3206":"盐城"},
{"3207":"淮安"},
{"3208":"宿迁"},
{"3209":"扬州"},
{"3210":"连云港"},
{"3211":"徐州"},
{"3212":"镇江"},
{"3213":"泰州"}
]
},
{
"33":"浙江",
"childCity":[
{"3301":"杭州"},
{"3302":"宁波"},
{"3303":"温州"},
{"3304":"金华"},
{"3305":"衢州"},
{"3306":"嘉兴"},
{"3307":"绍兴"},
{"3308":"台州"},
{"3309":"丽水"},
{"3310":"湖州"},
{"3311":"舟山"}
]
},
{
"34":"安徽",
"childCity":[
{"3401":"合肥"},
{"3402":"芜湖"},
{"3403":"蚌埠"},
{"3404":"淮南"},
{"3405":"马鞍山"},
{"3406":"淮北"},
{"3407":"铜陵"},
{"3408":"安庆"},
{"3409":"黄山"},
{"3410":"阜阳"},
{"3411":"宿州"},
{"3412":"滁州"},
{"3413":"六安"},
{"3414":"宣城"},
{"3415":"池州"},
{"3416":"亳州"}
],
},
{
"35":"福建",
"childCity":[
{"3501":"福州"},
{"3502":"厦门"},
{"3503":"泉州"},
{"3504":"龙岩"},
{"3505":"宁德"},
{"3506":"三明"},
{"3507":"南平"},
{"3508":"莆田"},
{"3509":"漳州"}
]
},
{
"36":"江西",
"childCity":[
{"3601":"南昌"},
{"3602":"上饶"},
{"3603":"九江"},
{"3604":"景德镇"},
{"3605":"萍乡"},
{"3606":"新余"},
{"3607":"鹰潭"},
{"3608":"赣州"},
{"3609":"宜春"},
{"3610":"吉安"},
{"3611":"抚州"}
]
},
{
"37":"山东",
"childCity":[
{"3701":"济南"},
{"3702":"青岛"},
{"3703":"淄博"},
{"3704":"烟台"},
{"3705":"枣庄"},
{"3706":"东营"},
{"3707":"潍坊"},
{"3708":"济宁"},
{"3709":"泰安"},
{"3710":"威海"},
{"3711":"日照"},
{"3712":"莱芜"},
{"3713":"临沂"},
{"3714":"德州"},
{"3715":"聊城"},
{"3716":"滨州"},
{"3717":"菏泽"}
]
},
{
"41":"河南",
"childCity":[
{"4101":"郑州"},
{"4102":"新乡"},
{"4103":"洛阳"},
{"4104":"安阳"},
{"4105":"焦作"},
{"4106":"许昌"},
{"4107":"平顶山"},
{"4108":"漯河"},
{"4109":"开封"},
{"4110":"濮阳"},
{"4111":"鹤壁"},
{"4112":"南阳"},
{"4113":"三门峡"},
{"4114":"驻马店"},
{"4115":"商丘"},
{"4116":"信阳"},
{"4117":"周口"}
]
},
{
"42":"湖北",
"childCity":[
{"4201":"武汉"},
{"4202":"十堰"},
{"4203":"襄樊"},
{"4204":"随州"},
{"4205":"荆门"},
{"4206":"孝感"},
{"4207":"宜昌"},
{"4208":"黄冈"},
{"4209":"鄂州"},
{"4210":"荆州"},
{"4211":"黄石"},
{"4212":"咸宁"}
]
},
{
"43":"湖南",
"childCity":[
{"4301":"长沙"},
{"4302":"株洲"},
{"4303":"湘潭"},
{"4304":"衡阳"},
{"4305":"邵阳"},
{"4306":"岳阳"},
{"4307":"张家界"},
{"4308":"益阳"},
{"4309":"常德"},
{"4310":"娄底"},
{"4311":"郴州"},
{"4312":"永州"},
{"4313":"怀化"}
]
},
{
"44":"广东",
"childCity":[
{"4401":"广州"},
{"4402":"深圳"},
{"4403":"东莞"},
{"4404":"佛山"},
{"4405":"珠海"},
{"4406":"汕头"},
{"4407":"韶关"},
{"4408":"湛江"},
{"4409":"肇庆"},
{"4410":"江门"},
{"4411":"茂名"},
{"4412":"惠州"},
{"4413":"梅州"},
{"4414":"汕尾"},
{"4415":"河源"},
{"4416":"阳江"},
{"4417":"清远"},
{"4418":"中山"},
{"4419":"潮州"},
{"4420":"揭阳"},
{"4421":"云浮"}
]
},
{
"45":"广西",
"childCity":[
{"4501":"南宁"},
{"4502":"柳州"},
{"4503":"桂林"},
{"4504":"梧州"},
{"4505":"北海"},
{"4506":"崇左"},
{"4507":"来宾"},
{"4508":"贺州"},
{"4509":"百色"},
{"4510":"玉林"}
]
},
{"46":"海南"},
{
"51":"四川",
"childCity":[
{"5101":"成都"},
{"5102":"自贡"},
{"5103":"攀枝花"},
{"5104":"泸州"},
{"5105":"德阳"},
{"5106":"绵竹"},
{"5107":"绵阳"},
{"5108":"广元"},
{"5109":"遂宁"},
{"5110":"内江"},
{"5111":"乐山"},
{"5112":"南充"},
{"5113":"眉山"},
{"5114":"宜宾"},
{"5115":"广安"},
{"5116":"达州"},
{"5117":"雅安"},
{"5118":"巴中"},
{"5119":"资阳"}
]
},
{
"52":"贵州",
"childCity":[
{"5201":"贵阳"},
{"5202":"六盘水"},
{"5203":"遵义"},
{"5204":"铜仁"},
{"5205":"毕节"},
{"5206":"安顺"}
]
},
{
"53":"云南",
"childCity":[
{"5301":"昆明"},
{"5302":"昭通"},
{"5303":"曲靖"},
{"5304":"玉溪"},
{"5305":"保山"},
{"5306":"普洱"},
{"5307":"丽江"},
{"5308":"临沧"}
]
},
{"54":"西藏"},
{
"61":"陕西",
"childCity":[
{"6101":"西安"},
{"6102":"宝鸡"},
{"6103":"咸阳"},
{"6104":"渭南"},
{"6105":"铜川"},
{"6106":"延安"},
{"6107":"榆林"},
{"6108":"汉中"},
{"6109":"安康"},
{"6110":"商洛"}
]
},
{
"62":"甘肃",
"childCity":[
{"6201":"兰州"},
{"6202":"嘉峪关"},
{"6203":"金昌"},
{"6204":"天水"},
{"6205":"酒泉"}
]
},
{"63":"青海"},
{
"64":"宁夏",
"childCity":[
{"6401":"银川"},
{"6402":"石嘴山"},
{"6403":"吴忠"},
{"6404":"固原"},
{"6405":"中卫"}
]
},
{"65":"新疆"},
{"68":"重庆"},
{"71":"台湾"},
{"72":"香港"},
{"73":"澳门"},
{"6406":"海外"},
];
\ No newline at end of file
$(document).ready(function(){
$('#birthday').datepicker()
$("#nation").select2({
placeholder : "请选择",
allowClear : true
});
$("#nationality").select2({
placeholder : "请选择",
allowClear : true
});
$("#nativePlace").hsCheckData({
isShowCheckBox: false, //默认为false
data: cityData
});
$("#domicilePlace").hsCheckData({
isShowCheckBox: false, //默认为false
data: cityData
});
})
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment