Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
citic-honor
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
222718a3
authored
Oct 23, 2020
by
kubisk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
2038c498
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
62 deletions
+29
-62
Public/static/js/common.js
+29
-62
No files found.
Public/static/js/common.js
View file @
222718a3
...
...
@@ -99,7 +99,7 @@ $(document).ready(function () {
bindUpload
(
this
,
uploadCtx
,
uploadCanvas
,
1
,
function
(
img
,
imgInfo
)
{
$
(
'.btn-upload-block'
).
css
(
'left'
,
'53px'
);
$
(
'.btn-createposter'
).
show
();
$
(
'.upload-before'
).
show
();
$
(
'.upload-before'
).
hide
();
$
(
'.upload-after'
).
show
();
var
mc
=
new
Hammer
(
$
(
'#uploadCanvas'
).
get
(
0
));
bindMc
(
mc
,
uploadCtx
,
uploadCanvas
,
img
,
imgInfo
);
...
...
@@ -142,30 +142,36 @@ function checkInfo() {
my_notify
(
'请填写工号'
);
return
false
;
}
$
.
ajax
({
url
:
'/index/getInfo'
,
type
:
'POST'
,
data
:
{
name
:
name
,
code
:
code
},
success
:
function
(
resp
)
{
if
(
resp
.
status
==
1
)
{
level
=
resp
.
poster
;
username
=
name
;
company
=
resp
.
branch
;
level
=
'1'
;
username
=
'张三'
;
company
=
'北京'
;
toUploadPage
();
$
(
'.username'
).
text
(
username
);
$
(
'.company'
).
html
(
'中信保诚人寿<br/>'
+
company
+
'分公司'
);
setShare
();
}
else
{
$
(
'#notification_area'
).
remove
();
my_notify
(
resp
.
msg
);
return
false
;
}
}
})
// $.ajax({
// url: '/index/getInfo',
// type: 'POST',
// data: {
// name: name,
// code: code
// },
// success: function (resp) {
// if (resp.status == 1) {
// level = resp.poster;
// username = name;
// company = resp.branch;
// toUploadPage();
// $('.username').text(username);
// $('.company').html('中信保诚人寿<br/>' + company + '分公司');
// setShare();
// } else {
// $('#notification_area').remove();
// my_notify(resp.msg);
// return false;
// }
// }
// })
}
function
setShare
()
{
...
...
@@ -239,46 +245,7 @@ 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
createPoster
()
{
$
(
'#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