Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JM_4-2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
JM_4-2
Commits
120d05e7
Commit
120d05e7
authored
Aug 03, 2021
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 是否展示更多按钮
parent
65545a54
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
play.component.html
src/app/play/play.component.html
+1
-1
play.component.ts
src/app/play/play.component.ts
+6
-6
No files found.
src/app/play/play.component.html
View file @
120d05e7
...
@@ -136,7 +136,7 @@
...
@@ -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;"
>
<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>
<label
style=
"margin-left: -0.5vw; font-family: Aileron-Black; font-size: 3.8vh; color:#ffffff"
>
{{'更多练习'}}
</label>
</div>
</div>
<div
*
ngIf=
"isShowMoreBtn
&& isAny
More"
(
click
)="
moreBtnClick
()"
style=
"z-index: 3; position: relative; margin-top: -19vh; margin-left: auto; margin-right: auto; height: 9.5vh; width: 114vh; "
>
<div
*
ngIf=
"isShowMoreBtn
Time && isShow
More"
(
click
)="
moreBtnClick
()"
style=
"z-index: 3; position: relative; margin-top: -19vh; margin-left: auto; margin-right: auto; height: 9.5vh; width: 114vh; "
>
</div>
</div>
<!-- 按钮阴影 -->
<!-- 按钮阴影 -->
<div
style=
"z-index: 1; width: 100%; position: absolute; top:0; margin-top: 2.5vh; text-align: center;"
>
<div
style=
"z-index: 1; width: 100%; position: absolute; top:0; margin-top: 2.5vh; text-align: center;"
>
...
...
src/app/play/play.component.ts
View file @
120d05e7
...
@@ -266,8 +266,8 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -266,8 +266,8 @@ export class PlayComponent implements OnInit, OnDestroy {
circleHeightBig
=
20
;
circleHeightBig
=
20
;
circleHeight
;
circleHeight
;
tweenItem
;
tweenItem
;
isShowMoreBtn
;
isShowMoreBtn
Time
;
is
Any
More
=
true
;
is
Show
More
=
true
;
initData
()
{
initData
()
{
...
@@ -311,7 +311,7 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -311,7 +311,7 @@ export class PlayComponent implements OnInit, OnDestroy {
// this.isShowResult = true;
// this.isShowResult = true;
this
.
isCountDownStart
=
false
;
this
.
isCountDownStart
=
false
;
this
.
isShowMoreBtn
=
true
;
this
.
isShowMoreBtn
Time
=
true
;
this
.
answerArr
=
[];
this
.
answerArr
=
[];
this
.
resultSentenceArr
=
[];
this
.
resultSentenceArr
=
[];
...
@@ -539,8 +539,8 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -539,8 +539,8 @@ export class PlayComponent implements OnInit, OnDestroy {
});
});
});
});
c
.
onEvent
(
'
is_
any
_more
'
,
(
data
)
=>
{
c
.
onEvent
(
'
is_
show
_more
'
,
(
data
)
=>
{
this
.
is
Any
More
=
data
;
this
.
is
Show
More
=
data
;
})
})
}
}
...
@@ -820,7 +820,7 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -820,7 +820,7 @@ export class PlayComponent implements OnInit, OnDestroy {
sendResult
()
{
sendResult
()
{
this
.
isShowMoreBtn
=
false
;
this
.
isShowMoreBtn
Time
=
false
;
const
resultDataStr
=
JSON
.
stringify
(
this
.
resultSentenceArr
);
const
resultDataStr
=
JSON
.
stringify
(
this
.
resultSentenceArr
);
console
.
log
(
'
resultDataStr:
'
,
resultDataStr
);
console
.
log
(
'
resultDataStr:
'
,
resultDataStr
);
window
.
parent
.
postMessage
({
action
:
'
temp_send_result
'
,
data
:
resultDataStr
},
'
*
'
);
window
.
parent
.
postMessage
({
action
:
'
temp_send_result
'
,
data
:
resultDataStr
},
'
*
'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment