Commit bd635736 by doszhang

dos

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