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
be067d83
authored
Apr 27, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
7f423ee0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
34 deletions
+24
-34
Public/static/js/common.js
+24
-34
No files found.
Public/static/js/common.js
View file @
be067d83
...
@@ -303,40 +303,30 @@ function createPoster() {
...
@@ -303,40 +303,30 @@ function createPoster() {
photo
.
onload
=
function
()
{
photo
.
onload
=
function
()
{
posterCtx
.
drawImage
(
photo
,
0
,
0
,
posterCanvas
.
width
,
posterCanvas
.
height
);
posterCtx
.
drawImage
(
photo
,
0
,
0
,
posterCanvas
.
width
,
posterCanvas
.
height
);
$
(
'#notification_area'
).
remove
();
var
posterTopObj
=
new
Image
();
$
(
'.upload-page'
).
hide
();
posterTopObj
.
src
=
'/Public/static/image2/poster'
+
level
+
'-1.png?version=1.0.0'
;
$
(
'.poster-page'
).
show
();
posterTopObj
.
onload
=
function
()
{
txtDraw
(
posterCtx
,
username
,
'#fff'
,
598
*
2
,
347
*
2
,
45
*
2
,
'bolder'
);
$
(
'.show-img'
).
append
(
'<img class="showimg" />'
);
txtDraw
(
posterCtx
,
'中信保诚人寿'
,
'#fff'
,
598
*
2
,
381
*
2
,
20
*
2
);
$
(
'.showimg'
).
attr
(
'src'
,
getManBase64
(
uploadCanvas
));
txtDraw
(
posterCtx
,
company
+
'分公司'
,
'#fff'
,
598
*
2
,
407
*
2
,
20
*
2
);
setTimeout
(
function
()
{
$
(
'.poster-img'
).
append
(
'<img class="posterimg" />'
);
posterCtx
.
drawImage
(
posterTopObj
,
0
,
0
,
posterCanvas
.
width
,
153
*
2
);
$
(
'.posterimg'
).
attr
(
'src'
,
getManBase64
(
posterCanvas
));
var
posterBottomObj
=
new
Image
();
posterBottomObj
.
src
=
'/Public/static/image2/poster'
+
level
+
'-2.png?version=1.0.0'
;
// var posterTopObj = new Image();
posterBottomObj
.
onload
=
function
()
{
// posterTopObj.src = '/Public/static/image2/poster' + level + '-1.png?version=1.0.0';
posterCtx
.
drawImage
(
posterTopObj
,
0
,
0
,
posterCanvas
.
width
,
(
canvasHeight
-
281
)
*
2
);
// posterTopObj.onload = function () {
$
(
'#notification_area'
).
remove
();
// txtDraw(posterCtx, username, '#fff', 598 * 2, 347 * 2, 45 * 2, 'bolder');
$
(
'.upload-page'
).
hide
();
// txtDraw(posterCtx, '中信保诚人寿', '#fff', 598 * 2, 381 * 2, 20 * 2);
$
(
'.poster-page'
).
show
();
// txtDraw(posterCtx, company + '分公司', '#fff', 598 * 2, 407 * 2, 20 * 2);
// setTimeout(function () {
$
(
'.show-img'
).
append
(
'<img class="showimg" />'
);
// posterCtx.drawImage(posterTopObj, 0, 0, posterCanvas.width, 153 * 2);
$
(
'.showimg'
).
attr
(
'src'
,
getManBase64
(
uploadCanvas
));
// var posterBottomObj = new Image();
// posterBottomObj.src = '/Public/static/image2/poster' + level + '-2.png?version=1.0.0';
$
(
'.poster-img'
).
append
(
'<img class="posterimg" />'
);
// posterBottomObj.onload = function () {
$
(
'.posterimg'
).
attr
(
'src'
,
getManBase64
(
posterCanvas
));
// posterCtx.drawImage(posterTopObj, 0, 0, posterCanvas.width, (canvasHeight - 281) * 2);
}
// $('#notification_area').remove();
},
500
);
// $('.upload-page').hide();
}
// $('.poster-page').show();
// $('.show-img').append('<img class="showimg" />');
// $('.showimg').attr('src', getManBase64(uploadCanvas));
// $('.poster-img').append('<img class="posterimg" />');
// $('.posterimg').attr('src', getManBase64(posterCanvas));
// }
// }, 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