Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
citic-mdrt
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
2e8a5b6f
authored
Apr 21, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
c51a2da1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
40 deletions
+40
-40
Public/static/js/common.js
+40
-40
No files found.
Public/static/js/common.js
View file @
2e8a5b6f
...
...
@@ -226,46 +226,46 @@ function backToHome() {
$
(
'.page1'
).
show
();
}
function
checkInfo
()
{
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
(
!
checkIt
(
'name'
,
8
))
{
$
(
'#notification_area'
).
remove
();
my_notify
(
'姓名最长为4位'
);
createPosterLock
=
false
;
return
false
;
}
if
(
business
==
''
)
{
$
(
'#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
);
}
}
//
function checkInfo() {
//
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 (!checkIt('name', 8)) {
//
$('#notification_area').remove();
//
my_notify('姓名最长为4位');
//
createPosterLock = false;
//
return false;
//
}
//
if (business == '') {
//
$('#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);
//
}
//
}
function
createPoster
(
name
,
business
)
{
$
(
'#notification_area'
).
remove
();
...
...
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