Commit be067d83 by doszhang

dos

parent 7f423ee0
...@@ -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);
// }
} }
......
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