Commit 3e68f5f2 by doszhang

dos

parent efde12ed
......@@ -9,7 +9,7 @@
<meta name="format-detection" content="telephone=no">
{:assign var=projectId value=0}
{:assign var=rem value=false}
{:assign var=version value='5.0.3'}
{:assign var=version value='5.0.4'}
{:block name='projectx'}{:/block}
{:if $rem == true}
<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1, user-scalable=no">
......
......@@ -295,37 +295,37 @@ function createPoster() {
posterCtx = canvasinfo[1];
$('.poster').hide();
// $('.poster' + level).show();
$('.poster' + level).show();
var photo = new Image();
photo.src = getManBase64(uploadCanvas);
photo.onload = function () {
posterCtx.drawImage(photo, 0, 0, posterCanvas.width, posterCanvas.height);
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