Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.portalStaticPage
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
2d482f94
authored
2020-12-28 15:53:14 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:填报信息
1 parent
6c4fd95b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
11 deletions
staticJs/onlineApply/houseFill.js
staticJs/onlineApply/houseFill.js
View file @
2d482f9
...
...
@@ -182,7 +182,7 @@ function authorityPerson() {
// form 添加
$
(
'.add_form'
).
click
(
function
()
{
$
(
'#layui-form'
).
append
(
'<div class="layui-form-item">'
+
'<div class="layui-form-item
sqrList
">'
+
'<div class="layui-inline">'
+
'<label class="layui-form-label">姓名</label>'
+
'<div class="layui-input-block">'
+
...
...
@@ -192,7 +192,7 @@ function authorityPerson() {
'<div class="layui-inline idCard">'
+
'<label class="layui-form-label">身份证类型</label>'
+
'<div class="layui-input-block">'
+
'<select lay-filter="typeId">'
+
'<select lay-filter="typeId"
name="sqrzj"
>'
+
'<option value="1">身份证</option>'
+
'<option value="2">军官证</option>'
+
'</select>'
+
...
...
@@ -221,10 +221,10 @@ function authorityPerson() {
console
.
log
(
data
.
value
);
});
})
// 编辑
$
(
document
).
on
(
"click"
,
".layui-icon-reduce-circle"
,
function
(
e
)
{
$
(
this
).
parent
().
remove
()
}
)
})
// 编辑
$
(
document
).
on
(
"click"
,
".layui-icon-reduce-circle"
,
function
(
e
)
{
$
(
this
).
parent
().
remove
(
)
})
}
// 图片上传
...
...
@@ -243,7 +243,7 @@ $('.formRadio').click(function () {
//下一步事件
function
skipClick
()
{
if
(
_saveSQR
())
{
skipNextPage
(
GetQueryString
(
'bsm_slsq'
),
GetQueryString
(
'businessno'
));
//
skipNextPage(GetQueryString('bsm_slsq'), GetQueryString('businessno'));
}
else
{
layer
.
msg
(
'保存信息出错!'
);
}
...
...
@@ -417,13 +417,19 @@ function _uploadSlcl(flieList, bsmCl, fileul, sizeNum) {
function
_saveSQR
()
{
var
isSave
=
false
;
// 申请人信息
var
d
=
{},
sqrList
=
[];
var
d
=
{},
sqrList
=
[]
,
tobj
=
{}
,
tLists
=
[]
;
var
t
=
$
(
'.sqrList'
).
serializeArray
();
$
.
each
(
t
,
function
()
{
d
[
this
.
name
]
=
this
.
value
;
});
d
.
userid
=
getCookie
(
'myCookie'
).
userid
;
sqrList
.
push
(
d
);
t
.
forEach
((
item
,
index
)
=>
{
console
.
log
(
item
)
tobj
[
item
.
name
]
=
item
.
value
;
if
((
index
+
1
)
%
4
==
0
){
tLists
.
push
(
tobj
)
tobj
=
{};
}
});
sqrList
=
sqrList
.
concat
(
tLists
)
for
(
var
i
=
0
;
i
<
sqrList
.
length
;
i
++
)
{
sqrList
[
i
].
sqrlx
=
1
;
}
...
...
Please
register
or
sign in
to post a comment