Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
pingan-promise
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
59e8e9ca
authored
Mar 11, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
742b9a0a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
19 deletions
+28
-19
Public/static/js/common.js
+28
-19
No files found.
Public/static/js/common.js
View file @
59e8e9ca
...
...
@@ -65,6 +65,8 @@ let noInfo = {
height
:
12
}
let
createPosterLock
=
false
;
preloadimages
(
preloadImageList
,
function
()
{
$
(
'.page1'
).
show
();
$
(
'input[name=name]'
).
attr
(
'placeholder'
,
'姓名'
).
attr
(
'id'
,
'name'
);;
...
...
@@ -131,26 +133,32 @@ function backToHome() {
}
function
checkInfo
()
{
let
name
=
$
(
'input[name=name]'
).
val
();
let
business
=
$
(
'input[name=business]'
).
val
();
// name = '张三三';
// business = '1234567890';
if
(
name
.
match
(
/^
\s
*$/
))
{
$
(
'#notification_area'
).
remove
();
my_notify
(
'请填写姓名'
);
return
false
;
}
if
(
!
business
.
match
(
/^
\d{10}
$/
))
{
$
(
'#notification_area'
).
remove
();
my_notify
(
'业务号填写有误'
);
return
false
;
}
if
(
$
(
'input[name=btn-upload]'
).
val
()
==
''
)
{
$
(
'#notification_area'
).
remove
();
my_notify
(
'请上传头像'
);
return
false
;
if
(
!
createPosterLock
)
{
createPosterLock
=
true
;
let
name
=
$
(
'input[name=name]'
).
val
();
let
business
=
$
(
'input[name=business]'
).
val
();
// name = '张三三';
// business = '1234567890';
if
(
name
.
match
(
/^
\s
*$/
))
{
$
(
'#notification_area'
).
remove
();
my_notify
(
'请填写姓名'
);
createPosterLock
=
false
;
return
false
;
}
if
(
!
business
.
match
(
/^
\d{10}
$/
))
{
$
(
'#notification_area'
).
remove
();
my_notify
(
'业务号填写有误'
);
createPosterLock
=
false
;
return
false
;
}
if
(
$
(
'input[name=btn-upload]'
).
val
()
==
''
)
{
$
(
'#notification_area'
).
remove
();
my_notify
(
'请上传头像'
);
createPosterLock
=
false
;
return
false
;
}
createPoster
(
name
,
business
);
}
createPoster
(
name
,
business
);
}
function
createPoster
(
name
,
business
)
{
...
...
@@ -191,6 +199,7 @@ function createPoster(name, business) {
$
(
'.page1'
).
hide
();
$
(
'.poster-page'
).
show
();
$
(
'#notification_area'
).
remove
();
createPosterLock
=
false
;
},
500
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment