Commit 06aa71be by dos

init

parent 3aa3afc5
......@@ -329,8 +329,7 @@ function createPoster() {
// txtDraw(posterCtx, username, '#464646', 215 * 2, 360 * 2, 45 * 2, 'bolder');
// txtDraw(posterCtx, '中信保诚人寿', '#464646', 215 * 2, 390 * 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);
......@@ -340,6 +339,9 @@ function createPoster() {
posterBottomObj.src = '/Public/static/image2/poster-' + level + '.png?version=2';
posterBottomObj.onload = function () {
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();
$('.upload-page').hide();
......@@ -353,6 +355,7 @@ function createPoster() {
$('.bottom').hide();
$('.bottom' + level).show();
}, 200)
}
}, 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