Commit 3e68f5f2 by doszhang

dos

parent efde12ed
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<meta name="format-detection" content="telephone=no"> <meta name="format-detection" content="telephone=no">
{:assign var=projectId value=0} {:assign var=projectId value=0}
{:assign var=rem value=false} {:assign var=rem value=false}
{:assign var=version value='5.0.3'} {:assign var=version value='5.0.4'}
{:block name='projectx'}{:/block} {:block name='projectx'}{:/block}
{:if $rem == true} {:if $rem == true}
<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1, user-scalable=no"> <meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1, user-scalable=no">
......
...@@ -295,37 +295,37 @@ function createPoster() { ...@@ -295,37 +295,37 @@ function createPoster() {
posterCtx = canvasinfo[1]; posterCtx = canvasinfo[1];
$('.poster').hide(); $('.poster').hide();
// $('.poster' + level).show(); $('.poster' + level).show();
var photo = new Image(); var photo = new Image();
photo.src = getManBase64(uploadCanvas); photo.src = getManBase64(uploadCanvas);
photo.onload = function () { photo.onload = function () {
posterCtx.drawImage(photo, 0, 0, posterCanvas.width, posterCanvas.height); posterCtx.drawImage(photo, 0, 0, posterCanvas.width, posterCanvas.height);
var posterTopObj = new Image(); // var posterTopObj = new Image();
posterTopObj.src = '/Public/static/image2/poster' + level + '-1.png?version=1.0.0'; // posterTopObj.src = '/Public/static/image2/poster' + level + '-1.png?version=1.0.0';
posterTopObj.onload = function () { // posterTopObj.onload = function () {
txtDraw(posterCtx, username, '#fff', 598 * 2, 347 * 2, 45 * 2, 'bolder'); // txtDraw(posterCtx, username, '#fff', 598 * 2, 347 * 2, 45 * 2, 'bolder');
txtDraw(posterCtx, '中信保诚人寿', '#fff', 598 * 2, 381 * 2, 20 * 2); // txtDraw(posterCtx, '中信保诚人寿', '#fff', 598 * 2, 381 * 2, 20 * 2);
txtDraw(posterCtx, company + '分公司', '#fff', 598 * 2, 407 * 2, 20 * 2); // txtDraw(posterCtx, company + '分公司', '#fff', 598 * 2, 407 * 2, 20 * 2);
setTimeout(function () { // setTimeout(function () {
posterCtx.drawImage(posterTopObj, 0, 0, posterCanvas.width, 153 * 2); // posterCtx.drawImage(posterTopObj, 0, 0, posterCanvas.width, 153 * 2);
var posterBottomObj = new Image(); // var posterBottomObj = new Image();
posterBottomObj.src = '/Public/static/image2/poster' + level + '-2.png?version=1.0.0'; // posterBottomObj.src = '/Public/static/image2/poster' + level + '-2.png?version=1.0.0';
posterBottomObj.onload = function () { // posterBottomObj.onload = function () {
posterCtx.drawImage(posterTopObj, 0, 0, posterCanvas.width, (canvasHeight - 281) * 2); // posterCtx.drawImage(posterTopObj, 0, 0, posterCanvas.width, (canvasHeight - 281) * 2);
$('#notification_area').remove(); // $('#notification_area').remove();
$('.upload-page').hide(); // $('.upload-page').hide();
$('.poster-page').show(); // $('.poster-page').show();
$('.show-img').append('<img class="showimg" />'); // $('.show-img').append('<img class="showimg" />');
$('.showimg').attr('src', getManBase64(uploadCanvas)); // $('.showimg').attr('src', getManBase64(uploadCanvas));
$('.poster-img').append('<img class="posterimg" />'); // $('.poster-img').append('<img class="posterimg" />');
$('.posterimg').attr('src', getManBase64(posterCanvas)); // $('.posterimg').attr('src', getManBase64(posterCanvas));
} // }
}, 500); // }, 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