Commit c210d69c authored by limingzhe's avatar limingzhe

fix: 结算答案文本异常

parent ef65364d
...@@ -372,7 +372,7 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -372,7 +372,7 @@ export class PlayComponent implements OnInit, OnDestroy {
}; };
addOneAudio('click', this.rawAudios.get('click'), 0.8); addOneAudio('click', this.rawAudios.get('click'), 1);
addOneAudio('more', this.rawAudios.get('more'), 0.8); addOneAudio('more', this.rawAudios.get('more'), 0.8);
addOneAudio('submit', this.rawAudios.get('submit'), 0.8); addOneAudio('submit', this.rawAudios.get('submit'), 0.8);
...@@ -778,15 +778,17 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -778,15 +778,17 @@ export class PlayComponent implements OnInit, OnDestroy {
infoBg.addChild(infoLabel); infoBg.addChild(infoLabel);
} else { } else {
const labelAnswer = new RichText(); const labelAnswer = this.getFillLabel();
labelAnswer.fontSize = 48; labelAnswer.fontSize = 48;
labelAnswer.fontColor = '#ffffff' labelAnswer.fontColor = '#ffffff'
labelAnswer.fontName = 'Aileron-Black'; labelAnswer.fontName = 'Aileron-Black';
labelAnswer.text = this.sentenceArr[i].answer; labelAnswer.text = this.sentenceArr[i].answer;
labelAnswer.setScaleXY(1);
labelAnswer.textAlign = 'center'; labelAnswer.textAlign = 'center';
labelAnswer.refreshSize();
labelAnswer.x = colorRect.width / 2; labelAnswer.x = colorRect.width / 2;
labelAnswer.y = -labelAnswer.fontSize / 2; labelAnswer.y = colorRect.height / 2;
colorRect.addChild(labelAnswer); colorRect.addChild(labelAnswer);
} }
...@@ -1645,7 +1647,7 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -1645,7 +1647,7 @@ export class PlayComponent implements OnInit, OnDestroy {
for (let i=0; i<this.templateArr.length; i++) { for (let i=0; i<this.templateArr.length; i++) {
const {name, last_version, play_url} = this.templateArr[i].template; const {name, last_version, play_url} = this.templateArr[i].template;
const playUrl = `http://staging-teach.cdn.ireadabc.com/h5template/${name}/v${last_version}/${play_url}?key=${i+1}` const playUrl = `https://staging-teach.cdn.ireadabc.com/h5template/${name}/v${last_version}/${play_url}?key=${i+1}`
this.templateArr[i].playUrl = this.sanitizer.bypassSecurityTrustResourceUrl(playUrl); this.templateArr[i].playUrl = this.sanitizer.bypassSecurityTrustResourceUrl(playUrl);
console.log('playUrl: ', playUrl); console.log('playUrl: ', playUrl);
} }
......
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