Commit be067d83 by doszhang

dos

parent 7f423ee0
......@@ -303,40 +303,30 @@ function createPoster() {
photo.onload = function () {
posterCtx.drawImage(photo, 0, 0, posterCanvas.width, posterCanvas.height);
$('#notification_area').remove();
$('.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));
// var posterTopObj = new Image();
// posterTopObj.src = '/Public/static/image2/poster' + level + '-1.png?version=1.0.0';
// posterTopObj.onload = function () {
// txtDraw(posterCtx, username, '#fff', 598 * 2, 347 * 2, 45 * 2, 'bolder');
// txtDraw(posterCtx, '中信保诚人寿', '#fff', 598 * 2, 381 * 2, 20 * 2);
// txtDraw(posterCtx, company + '分公司', '#fff', 598 * 2, 407 * 2, 20 * 2);
// setTimeout(function () {
// posterCtx.drawImage(posterTopObj, 0, 0, posterCanvas.width, 153 * 2);
// var posterBottomObj = new Image();
// posterBottomObj.src = '/Public/static/image2/poster' + level + '-2.png?version=1.0.0';
// posterBottomObj.onload = function () {
// posterCtx.drawImage(posterTopObj, 0, 0, posterCanvas.width, (canvasHeight - 281) * 2);
// $('#notification_area').remove();
// $('.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);
// }
var posterTopObj = new Image();
posterTopObj.src = '/Public/static/image2/poster' + level + '-1.png?version=1.0.0';
posterTopObj.onload = function () {
txtDraw(posterCtx, username, '#fff', 598 * 2, 347 * 2, 45 * 2, 'bolder');
txtDraw(posterCtx, '中信保诚人寿', '#fff', 598 * 2, 381 * 2, 20 * 2);
txtDraw(posterCtx, company + '分公司', '#fff', 598 * 2, 407 * 2, 20 * 2);
setTimeout(function () {
posterCtx.drawImage(posterTopObj, 0, 0, posterCanvas.width, 153 * 2);
var posterBottomObj = new Image();
posterBottomObj.src = '/Public/static/image2/poster' + level + '-2.png?version=1.0.0';
posterBottomObj.onload = function () {
posterCtx.drawImage(posterTopObj, 0, 0, posterCanvas.width, (canvasHeight - 281) * 2);
$('#notification_area').remove();
$('.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