Commit 1e8b7b17 by doszhang

dos

parent d383fcd4
...@@ -352,8 +352,6 @@ function createPoster() { ...@@ -352,8 +352,6 @@ function createPoster() {
} else { } else {
posterCanvasHeight = topHalfHeight + flagListHeight + bottomHalfHeight; posterCanvasHeight = topHalfHeight + flagListHeight + bottomHalfHeight;
} }
console.log('flagListHeight:' + flagListHeight);
console.log('posterCanvasHeight:' + posterCanvasHeight);
...@@ -396,9 +394,10 @@ function drawFlagItem(initialPosition) { ...@@ -396,9 +394,10 @@ function drawFlagItem(initialPosition) {
redline.src = picUrl + 'flag-redline.png'; redline.src = picUrl + 'flag-redline.png';
let nodeList = $('.poster-page .poster-list .flag-item'); let nodeList = $('.poster-page .poster-list .flag-item');
for (let i = 0; i < flagStack.length; i++) { for (let i = 0; i < flagStack.length; i++) {
let offsetTop = $('.poster-page .poster-list .flag-item')[i] console.log($(nodeList[i]));
let top = initialPosition + $(nodeList[i]).offset().top; let top = initialPosition + $(nodeList[i]).offset().top;
console.log('top:' + top); // console.log('top:' + top);
posterCtx.drawImage(noBg, pxToRem(105), top, pxToRem(44), pxToRem(39)); posterCtx.drawImage(noBg, pxToRem(105), top, pxToRem(44), pxToRem(39));
} }
......
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