diff --git a/src/app/play/play.component.ts b/src/app/play/play.component.ts index 37a4c7e3c00cf0a7a978fe8d67d7796ecb194593..4bcb6cd2673d7205b1ddd25355778777a1aec415 100644 --- a/src/app/play/play.component.ts +++ b/src/app/play/play.component.ts @@ -1055,6 +1055,17 @@ export class PlayComponent implements OnInit, OnDestroy { */ clickCard(card) { + //å¦‚æžœä¸æ˜¯ç¬¬ä¸€å¼ å¡ç‰‡ï¼Œåˆšåˆ¤æ–å‰ä¸€å¼ 是å¦å·²ç»ç¿»è¿‡æ¥äº† + if(card.index != 0){ + + let tCard = this.exercisesArr[card.index - 1]; + + //未翻过æ¥ï¼Œåˆ™è¿”回 + if(tCard.curShow == '0'){ + return; + } + } + //åœæ¢é—ªçƒ card.lightShow = false; card.light.alpha = 0; @@ -1746,9 +1757,7 @@ export class PlayComponent implements OnInit, OnDestroy { const randomX = startX + Math.random() * this.bigLight.sprite.getBoundingBox().width; petal.x = randomX; - const randomY = startY + Math.random() * this.bigLight.sprite.getBoundingBox().height; - - petal.y = randomY - petal.height / 2 * petal.scaleY; + petal.y = startY - petal.height / 2 * petal.scaleY; const randomT = 2 + Math.random() * 5; petal['time'] = randomT;