Commit c20ab650 by doszhang

dos

parent ec422156
...@@ -438,6 +438,7 @@ input[name=signature]::-webkit-input-placeholder { ...@@ -438,6 +438,7 @@ input[name=signature]::-webkit-input-placeholder {
/* poster-page */ /* poster-page */
.poster-page { .poster-page {
z-index: 1; z-index: 1;
overflow: scroll;
} }
.poster-page .poster-list { .poster-page .poster-list {
......

4 KB | W: | H:

4 KB | W: | H:

Public/static/image2/._poster-bottomhalf.png
Public/static/image2/._poster-bottomhalf.png
Public/static/image2/._poster-bottomhalf.png
Public/static/image2/._poster-bottomhalf.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -346,6 +346,7 @@ function createPoster() { ...@@ -346,6 +346,7 @@ function createPoster() {
if (flagListHeight < pxToRem(383)) { if (flagListHeight < pxToRem(383)) {
posterCanvasHeight = topHalfHeight + pxToRem(383) + bottomHalfHeight; posterCanvasHeight = topHalfHeight + pxToRem(383) + bottomHalfHeight;
flagListHeight = pxToRem(383);
} else { } else {
posterCanvasHeight = topHalfHeight + flagListHeight + bottomHalfHeight; posterCanvasHeight = topHalfHeight + flagListHeight + bottomHalfHeight;
} }
...@@ -360,7 +361,22 @@ function createPoster() { ...@@ -360,7 +361,22 @@ function createPoster() {
let topHalf = new Image(); let topHalf = new Image();
topHalf.src = picUrl + "poster-tophalf.png"; topHalf.src = picUrl + "poster-tophalf.png";
topHalf.onload = function () { topHalf.onload = function () {
//画海报上半部分
posterCtx.drawImage(topHalf, pxToRem(45), pxToRem(107), pxToRem(550), pxToRem(382)); posterCtx.drawImage(topHalf, pxToRem(45), pxToRem(107), pxToRem(550), pxToRem(382));
posterCtx.save();
posterCtx.restore();
//画海报中部背景
posterCtx.fillStyle = '#f4f4f4';
posterCtx.fillRect(pxToRem(45), pxToRem(489), pxToRem(640), pxToRem(flagListHeight));
posterCtx.save();
posterCtx.restore();
//画海报底部
let bottomHalf = new Image();
bottomHalf.src = picUrl + "poster-bottomhalf.png";
bottomHalf.onload = function () {
bottomHalfTop = pxToRem(489) + pxToRem(flagListHeight);
posterCtx.drawImage(bottomHalf, pxToRem(45), bottomHalfTop, pxToRem(550), pxToRem(238));
}
} }
} }
......
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