Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
citic-eagle
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
90f4700e
authored
Oct 27, 2020
by
kubisk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
7ff9ce2b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
Public/static/js/common.js
+13
-6
No files found.
Public/static/js/common.js
View file @
90f4700e
...
...
@@ -73,8 +73,8 @@ preloadimages(preloadImageList, function () {
initPage
();
$
(
'.page1'
).
show
();
$
(
'input[name=name]'
).
attr
(
'placeholder'
,
'请输入姓名'
).
attr
(
'id'
,
'name'
)
.
attr
(
'value'
,
'一'
)
;
$
(
'input[name=job-number]'
).
attr
(
'placeholder'
,
'请输入工号'
).
attr
(
'type'
,
'tel'
)
.
attr
(
'value'
,
'123456'
)
;
$
(
'input[name=name]'
).
attr
(
'placeholder'
,
'请输入姓名'
).
attr
(
'id'
,
'name'
);
$
(
'input[name=job-number]'
).
attr
(
'placeholder'
,
'请输入工号'
).
attr
(
'type'
,
'tel'
);
let
canvasinfo
=
initCanvas
(
'.upload-canvas-block'
,
'uploadCanvas'
,
640
*
2
,
canvasHeight
*
2
);
uploadCanvas
=
canvasinfo
[
0
];
uploadCtx
=
canvasinfo
[
1
];
...
...
@@ -161,7 +161,8 @@ function checkInfo() {
toUploadPage
();
showIcon
();
$
(
'.username'
).
text
(
username
);
$
(
'.company'
).
html
(
'中信保诚人寿<br/>'
+
company
+
'分公司'
);
$
(
'.company'
).
html
(
'中信保诚人寿<br/>'
+
company
);
// $('.company').html('中信保诚人寿<br/>' + company + '分公司');
setShare
();
}
else
{
...
...
@@ -256,6 +257,11 @@ function createPoster() {
posterCanvas
=
canvasinfo
[
0
];
posterCtx
=
canvasinfo
[
1
];
posterCtx
.
fillStyle
=
"#ffffff"
;
posterCtx
.
beginPath
();
posterCtx
.
fillRect
(
0
,
0
,
posterCanvas
.
width
,
posterCanvas
.
height
);
posterCtx
.
closePath
();
showIcon
();
var
photo
=
new
Image
();
...
...
@@ -269,7 +275,8 @@ function createPoster() {
logoObj
.
onload
=
function
()
{
txtDraw
(
posterCtx
,
username
,
'#464646'
,
522
*
2
,
236
*
2
,
45
*
2
,
'bolder'
);
txtDraw
(
posterCtx
,
'中信保诚人寿'
,
'#464646'
,
522
*
2
,
268
*
2
,
20
*
2
);
txtDraw
(
posterCtx
,
company
+
'分公司'
,
'#464646'
,
522
*
2
,
295
*
2
,
20
*
2
);
txtDraw
(
posterCtx
,
company
,
'#464646'
,
522
*
2
,
295
*
2
,
20
*
2
);
// txtDraw(posterCtx, company + '分公司', '#464646', 522 * 2, 295 * 2, 20 * 2);
var
titleObj
=
new
Image
();
var
jobTitle
=
(
level
==
1
||
level
==
2
||
level
==
3
)
?
level
:
false
;
if
(
jobTitle
)
{
...
...
@@ -374,12 +381,12 @@ function bindUpload(that, ctx, myCanvas, index, callback, imgInfo) {
imgInfo
=
{
x
:
0
,
y
:
0
,
scale
:
1
,
scale
:
0.5
,
rotation
:
0
},
oldpoz
=
{
x
:
0
,
y
:
0
,
scale
:
1
,
scale
:
0.5
,
rotation
:
0
}
event
.
preventDefault
();
...
...
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