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
90f6b839
authored
2021-01-15 11:45:48 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:注册
1 parent
3bf4207e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
staticJs/register.js
staticViews/register.html
staticJs/register.js
View file @
90f6b83
$
(
function
()
{
layui
.
use
([
'form'
],
function
()
{
var
form
=
layui
.
form
form
.
on
(
'select(type)'
,
function
(
data
)
{
console
.
log
(
data
);
})
//监听提交
form
.
on
(
'submit(demo1)'
,
function
(
data
)
{
register
(
data
.
field
)
...
...
@@ -12,7 +9,7 @@ $(function () {
})
})
//
获取受理流程信息
//
注册
function
register
(
formData
)
{
$
.
ajax
({
url
:
portal
.
api_url
+
"/protal/users/insert"
,
//路径
...
...
@@ -28,6 +25,8 @@ function register(formData) {
})
window
.
open
(
"../index.html"
,
"_self"
)
window
.
history
.
go
(
-
1
)
}
else
{
layer
.
msg
(
result
.
message
);
}
}
});
...
...
staticViews/register.html
View file @
90f6b83
...
...
@@ -31,7 +31,7 @@
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
证件种类
</label>
<div
class=
"layui-input-block"
>
<select
name=
"
interest
"
lay-filter=
"type"
>
<select
name=
"
zjzl
"
lay-filter=
"type"
>
<option
value=
"0"
>
身份证
</option>
</select>
</div>
...
...
@@ -40,14 +40,14 @@
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
身份证
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
name=
"
idcard
"
placeholder=
"请输入身份证"
class=
"layui-input"
>
<input
type=
"text"
name=
"
zjhm
"
placeholder=
"请输入身份证"
class=
"layui-input"
>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
户籍
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
name=
"h
ousehold
"
disabled=
"disabled"
class=
"layui-input"
>
<input
type=
"text"
name=
"h
jszss
"
disabled=
"disabled"
class=
"layui-input"
>
</div>
</div>
<div
class=
"layui-form-item"
>
...
...
Please
register
or
sign in
to post a comment