Commit 120d05e7 authored by limingzhe's avatar limingzhe

fix: 是否展示更多按钮

parent 65545a54
......@@ -136,7 +136,7 @@
<div style="z-index: 2; position: relative; height: 9.5vh; top: -9.5vh; display: flex; align-items: center; justify-content: center;">
<label style="margin-left: -0.5vw; font-family: Aileron-Black; font-size: 3.8vh; color:#ffffff">{{'更多练习'}}</label>
</div>
<div *ngIf="isShowMoreBtn && isAnyMore" (click)="moreBtnClick()" style="z-index: 3; position: relative; margin-top: -19vh; margin-left: auto; margin-right: auto; height: 9.5vh; width: 114vh; ">
<div *ngIf="isShowMoreBtnTime && isShowMore" (click)="moreBtnClick()" style="z-index: 3; position: relative; margin-top: -19vh; margin-left: auto; margin-right: auto; height: 9.5vh; width: 114vh; ">
</div>
<!-- 按钮阴影 -->
<div style="z-index: 1; width: 100%; position: absolute; top:0; margin-top: 2.5vh; text-align: center;">
......
......@@ -266,8 +266,8 @@ export class PlayComponent implements OnInit, OnDestroy {
circleHeightBig = 20;
circleHeight;
tweenItem;
isShowMoreBtn;
isAnyMore = true;
isShowMoreBtnTime;
isShowMore = true;
initData() {
......@@ -311,7 +311,7 @@ export class PlayComponent implements OnInit, OnDestroy {
// this.isShowResult = true;
this.isCountDownStart = false;
this.isShowMoreBtn = true;
this.isShowMoreBtnTime = true;
this.answerArr = [];
this.resultSentenceArr = [];
......@@ -539,8 +539,8 @@ export class PlayComponent implements OnInit, OnDestroy {
});
});
c.onEvent('is_any_more', (data) => {
this.isAnyMore = data;
c.onEvent('is_show_more', (data) => {
this.isShowMore = data;
})
}
......@@ -820,7 +820,7 @@ export class PlayComponent implements OnInit, OnDestroy {
sendResult() {
this.isShowMoreBtn = false;
this.isShowMoreBtnTime = false;
const resultDataStr = JSON.stringify(this.resultSentenceArr);
console.log('resultDataStr: ', resultDataStr);
window.parent.postMessage({ action: 'temp_send_result', data: resultDataStr }, '*');
......
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