Commit 4a762f15 authored by 范雪寒's avatar 范雪寒

feat: 微调卡片位置,提高上下两行间距

parent 89460a0f
......@@ -527,10 +527,10 @@ export class PlayComponent implements OnInit, OnDestroy {
const itemSideLength = Math.min(itemWidth, itemHeight);
const disW = 0;
const disH = (this.canvasHeight - itemSideLength * 2 - 120 * this.mapScale) / 2;
const disH = (this.canvasHeight - itemSideLength * 2 - 30 * this.mapScale) / 2;
const offX = this.canvasWidth / 2 - (picArr.length - 1) * (itemSideLength) / 2;
const offY = this.canvasHeight / 2 + 60 * this.mapScale;
const offY = this.canvasHeight / 2 + 30 * this.mapScale;
let dataArrA = [];
......@@ -1176,7 +1176,7 @@ export class PlayComponent implements OnInit, OnDestroy {
title.x = this.canvasWidth / 2;
// title.y = this.canvasHeight / 2 - 270 * this.mapScale;
// title.x = this.mapScale * (30 + title.width / 2);
title.y = this.mapScale * (30 + title.height / 2);
title.y = this.mapScale * (10 + title.height / 2);
this.bgArr.push(title);
}
......@@ -2736,7 +2736,7 @@ export class PlayComponent implements OnInit, OnDestroy {
return new Promise((resolve, reject) => {
const audio = new Audio();
audio.oncanplay = (a) => {
resolve();
resolve(a);
};
audio.onerror = () => {
reject();
......
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 to comment