Commit 06aa71be by dos

init

parent 3aa3afc5
...@@ -329,8 +329,7 @@ function createPoster() { ...@@ -329,8 +329,7 @@ function createPoster() {
// txtDraw(posterCtx, username, '#464646', 215 * 2, 360 * 2, 45 * 2, 'bolder'); // txtDraw(posterCtx, username, '#464646', 215 * 2, 360 * 2, 45 * 2, 'bolder');
// txtDraw(posterCtx, '中信保诚人寿', '#464646', 215 * 2, 390 * 2, 20 * 2); // txtDraw(posterCtx, '中信保诚人寿', '#464646', 215 * 2, 390 * 2, 20 * 2);
// txtDraw(posterCtx, company + '', '#464646', 215 * 2, 413 * 2, 20 * 2); // txtDraw(posterCtx, company + '', '#464646', 215 * 2, 413 * 2, 20 * 2);
txtDraw(posterCtx, username, '#ffffff', 350 * 2, (canvasHeight - username_bottom) * 2, 45 * 2, 'bolder');
txtDraw(posterCtx, '中信保诚人寿 ' + company, '#ffffff', 350 * 2, (canvasHeight - company_bottom) * 2, 20 * 2);
// txtDraw(posterCtx, company + '', '#ffffff', 215 * 2, 308 * 2, 20 * 2); // txtDraw(posterCtx, company + '', '#ffffff', 215 * 2, 308 * 2, 20 * 2);
...@@ -340,19 +339,23 @@ function createPoster() { ...@@ -340,19 +339,23 @@ function createPoster() {
posterBottomObj.src = '/Public/static/image2/poster-' + level + '.png?version=2'; posterBottomObj.src = '/Public/static/image2/poster-' + level + '.png?version=2';
posterBottomObj.onload = function () { posterBottomObj.onload = function () {
posterCtx.drawImage(posterBottomObj, 0, (canvasHeight - 536) * 2, posterCanvas.width, 536 * 2); posterCtx.drawImage(posterBottomObj, 0, (canvasHeight - 536) * 2, posterCanvas.width, 536 * 2);
setTimeout(function () {
txtDraw(posterCtx, username, '#ffffff', 350 * 2, (canvasHeight - username_bottom) * 2, 45 * 2, 'bolder');
txtDraw(posterCtx, '中信保诚人寿 ' + company, '#ffffff', 350 * 2, (canvasHeight - company_bottom) * 2, 20 * 2);
$('#notification_area').remove(); $('#notification_area').remove();
$('.upload-page').hide(); $('.upload-page').hide();
$('.poster-page').show(); $('.poster-page').show();
$('.show-img').append('<img class="showimg" />'); $('.show-img').append('<img class="showimg" />');
$('.showimg').attr('src', getManBase64(uploadCanvas)); $('.showimg').attr('src', getManBase64(uploadCanvas));
$('.poster-img').append('<img class="posterimg" />'); $('.poster-img').append('<img class="posterimg" />');
$('.posterimg').attr('src', getManBase64(posterCanvas)); $('.posterimg').attr('src', getManBase64(posterCanvas));
$('.bottom').hide(); $('.bottom').hide();
$('.bottom' + level).show(); $('.bottom' + level).show();
}, 200)
} }
}, 500); }, 500);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment