Commit 6040d1f6 by doszhang

dos

parent 8838eb23
...@@ -374,7 +374,7 @@ function createPoster() { ...@@ -374,7 +374,7 @@ function createPoster() {
let flagListHeight = $('.poster-list-page .poster-list').height(); let flagListHeight = $('.poster-list-page .poster-list').height();
flagListHeight = (flagListHeight / fontSize) * 20; flagListHeight = (flagListHeight / fontSize) * 20;
flagListHeight = flagListHeight + 40; flagListHeight = flagListHeight + 20;
let topHalfHeight = 489; let topHalfHeight = 489;
let bottomHalfHeight = 368; let bottomHalfHeight = 368;
let posterCanvasHeight = 0; let posterCanvasHeight = 0;
...@@ -422,8 +422,8 @@ function createPoster() { ...@@ -422,8 +422,8 @@ function createPoster() {
decorate.src = checkedDecorate; decorate.src = checkedDecorate;
decorate.onload = function () { decorate.onload = function () {
posterCtx.drawImage(decorate, pxToRem(170 * 2), pxToRem(305 * 2), pxToRem(300 * 2), pxToRem(150 * 2)); posterCtx.drawImage(decorate, pxToRem(170 * 2), pxToRem(305 * 2), pxToRem(300 * 2), pxToRem(150 * 2));
// flagTextDraw(posterCtx, signature, pxToRem(40 * 2), '#222222', pxToRem(230 * 2), (bottomHalfTop + pxToRem(103)) * 2, 'font'); flagTextDraw(posterCtx, signature, pxToRem(40 * 2), '#222222', pxToRem(230 * 2), (bottomHalfTop + pxToRem(103)) * 2, 'font');
// flagTextDraw(posterCtx, getTime(), pxToRem(20 * 2), '#222222', pxToRem(230 * 2), (bottomHalfTop + pxToRem(136)) * 2); flagTextDraw(posterCtx, getTime(), pxToRem(20 * 2), '#222222', pxToRem(230 * 2), (bottomHalfTop + pxToRem(136)) * 2);
setTimeout(function () { setTimeout(function () {
$('.posterImg').attr('src', getManBase64(posterCanvas)).css('height', pxToRem(posterCanvasHeight)); $('.posterImg').attr('src', getManBase64(posterCanvas)).css('height', pxToRem(posterCanvasHeight));
}, 1000); }, 1000);
......
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