Commit 1f97ca96 by dos

init

parent 06bff2d5
......@@ -242,8 +242,6 @@ function initPage() {
top: 'auto',
bottom: '0px'
});
username_bottom = 0
company_bottom = 0
} else {
$('.top').css('top', -displacement - 5 + 'px');
$('.bottom').css({
......@@ -342,8 +340,8 @@ function createPoster() {
posterBottomObj.onload = function () {
posterCtx.drawImage(posterBottomObj, 0, (canvasHeight - 536) * 2, posterCanvas.width, 536 * 2);
setTimeout(function () {
txtDraw(posterCtx, username, '#ffffff', 320 * 2, (canvasHeight - username_bottom + 30) * 2, 45 * 2, 'bolder');
txtDraw(posterCtx, '中信保诚人寿 ' + company, '#ffffff', 320 * 2, (canvasHeight - company_bottom + 30) * 2, 20 * 2);
txtDraw(posterCtx, username, '#ffffff', 320 * 2, (canvasHeight - 536 + 182) * 2, 45 * 2, 'bolder');
txtDraw(posterCtx, '中信保诚人寿 ' + company, '#ffffff', 320 * 2, (canvasHeight - 536 + 216) * 2, 20 * 2);
$('#notification_area').remove();
$('.upload-page').hide();
......
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