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
d77a1b70
authored
2020-12-08 09:55:18 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:注册
1 parent
117002d8
Pipeline
#1
for
d77a1b70
failed
in 0 seconds
Changes
2
Pipelines
1
Builds
0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
6 deletions
.gitlab-ci.yml
staticJs/register.js
.gitlab-ci.yml
0 → 100644
View file @
d77a1b7
File mode changed
staticJs/register.js
View file @
d77a1b7
...
...
@@ -30,11 +30,6 @@ $(function () {
],
//我们既支持上述函数式的方式,也支持下述数组的形式
//数组的两个值分别代表:[正则匹配、匹配不符时的提示文字]
pass
:
[
/^
[\S]{6,12}
$/
,
'密码必须6到12位,且不能出现空格'
]
});
form
.
on
(
'select(type)'
,
function
(
data
)
{
...
...
@@ -46,7 +41,28 @@ $(function () {
layer
.
alert
(
JSON
.
stringify
(
data
.
field
),
{
title
:
'最终的提交信息'
})
register
(
data
.
field
)
return
false
;
});
})
})
\ No newline at end of file
})
// 获取受理流程信息
function
register
(
formData
)
{
$
.
ajax
({
url
:
portal
.
api_url
+
"/protal/users/insert"
,
//路径
type
:
"post"
,
dataType
:
"json"
,
data
:
formData
,
//数据,这里使用的是Json格式进行传输
success
:
function
(
result
)
{
//返回数据根据结果进行相应的处理
if
(
result
.
code
==
200
&&
result
.
data
!=
null
)
{
console
.
log
(
result
.
data
)
layui
.
use
(
'layer'
,
function
()
{
layer
.
msg
(
'注册成功!'
);
})
// window.open("../index.html","_self")
}
}
});
}
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment