Commit bd635736 by doszhang

dos

parent 87a85466
...@@ -154,11 +154,11 @@ const colorList = { ...@@ -154,11 +154,11 @@ const colorList = {
}; };
//小装饰图片地址 //小装饰图片地址
let decorateList = [ let decorateList = [
picUrl + 'decorate1.png', '/Public/static/image2/decorate1.png',
picUrl + 'decorate2.png', '/Public/static/image2/decorate2.png',
picUrl + 'decorate3.png', '/Public/static/image2/decorate3.png',
picUrl + 'decorate4.png', '/Public/static/image2/decorate4.png',
picUrl + 'decorate5.png', '/Public/static/image2/decorate5.png',
]; ];
//用户选择的flag列表 //用户选择的flag列表
...@@ -459,7 +459,7 @@ function createPoster() { ...@@ -459,7 +459,7 @@ function createPoster() {
posterCtx.fillRect(0, 0, posterCanvas.width, posterCanvas.height); posterCtx.fillRect(0, 0, posterCanvas.width, posterCanvas.height);
//45 107 //45 107
let topHalf = new Image(); let topHalf = new Image();
topHalf.src = picUrl + "poster-tophalf.png"; topHalf.src = "/Public/static/image2/poster-tophalf.png";
topHalf.onload = function () { topHalf.onload = function () {
//画海报上半部分 //画海报上半部分
posterCtx.drawImage(topHalf, pxToRem(45 * 2), pxToRem(107 * 2), pxToRem(550 * 2), pxToRem(382 * 2)); posterCtx.drawImage(topHalf, pxToRem(45 * 2), pxToRem(107 * 2), pxToRem(550 * 2), pxToRem(382 * 2));
...@@ -472,7 +472,7 @@ function createPoster() { ...@@ -472,7 +472,7 @@ function createPoster() {
posterCtx.restore(); posterCtx.restore();
//画海报底部 //画海报底部
let bottomHalf = new Image(); let bottomHalf = new Image();
bottomHalf.src = picUrl + "poster-bottomhalf.png"; bottomHalf.src = "/Public/static/image2/poster-bottomhalf.png";
bottomHalf.onload = function () { bottomHalf.onload = function () {
bottomHalfTop = pxToRem(487) + pxToRem(flagListHeight); bottomHalfTop = pxToRem(487) + pxToRem(flagListHeight);
$('.poster-tip').css('top', bottomHalfTop + pxToRem(181)); $('.poster-tip').css('top', bottomHalfTop + pxToRem(181));
...@@ -497,10 +497,10 @@ function createPoster() { ...@@ -497,10 +497,10 @@ function createPoster() {
function drawFlagItem(initialPosition) { function drawFlagItem(initialPosition) {
// initialPosition = initialPosition + parseFloat(getTranslateDistance()); // initialPosition = initialPosition + parseFloat(getTranslateDistance());
let noBg = new Image(); let noBg = new Image();
noBg.src = picUrl + 'flag-no.png'; noBg.src = '/Public/static/image2/flag-no.png';
noBg.onload = function () { noBg.onload = function () {
let redline = new Image(); let redline = new Image();
redline.src = picUrl + 'flag-redline.png'; redline.src = '/Public/static/image2/flag-redline.png';
redline.onload = function () { redline.onload = function () {
let nodeList = $('.poster-list-page .poster-list .flag-item'); let nodeList = $('.poster-list-page .poster-list .flag-item');
for (let i = 0; i < flagStack.length; i++) { for (let i = 0; i < flagStack.length; i++) {
......
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