Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dfzx_mb_09
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
dfzx_mb_09
Commits
9e6542b6
Commit
9e6542b6
authored
Oct 16, 2020
by
Li Mingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 喇叭消失 显示
parent
7e8eb8a3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
4 deletions
+20
-4
play.component.ts
src/app/play/play.component.ts
+20
-4
No files found.
src/app/play/play.component.ts
View file @
9e6542b6
...
@@ -735,10 +735,13 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -735,10 +735,13 @@ export class PlayComponent implements OnInit, OnDestroy {
}
}
}
}
if
(
this
.
speakerIcon
.
active
)
{
if
(
this
.
checkClickTarget
(
this
.
speakerIcon
))
{
if
(
this
.
checkClickTarget
(
this
.
speakerIcon
))
{
this
.
clickedSpeaker
();
this
.
clickedSpeaker
();
return
;
return
;
}
}
}
this
.
clickWrong
();
this
.
clickWrong
();
}
}
...
@@ -882,6 +885,17 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -882,6 +885,17 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
shadowArr
.
push
(
shadow
);
this
.
shadowArr
.
push
(
shadow
);
}
}
refreshSpeakerActive
()
{
const
data
=
this
.
picArr
[
this
.
curPageIndex
];
if
(
data
.
audio_url
)
{
this
.
speakerIcon
.
active
=
true
;
this
.
speakerIcon
.
visible
=
true
;
}
else
{
this
.
speakerIcon
.
active
=
false
;
this
.
speakerIcon
.
visible
=
false
;
}
}
checkGameEnd
()
{
checkGameEnd
()
{
...
@@ -897,7 +911,6 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -897,7 +911,6 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
refreshPageLabel
();
this
.
refreshPageLabel
();
if
(
this
.
curPageIndex
>=
this
.
picArr
.
length
)
{
if
(
this
.
curPageIndex
>=
this
.
picArr
.
length
)
{
this
.
gameEnd
();
this
.
gameEnd
();
return
;
return
;
...
@@ -918,6 +931,9 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -918,6 +931,9 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
refreshTitleLabel
(
true
);
this
.
refreshTitleLabel
(
true
);
this
.
refreshAnswerNum
();
this
.
refreshAnswerNum
();
this
.
refreshSpeakerActive
();
this
.
canTouch
=
true
;
this
.
canTouch
=
true
;
},
2500
);
},
2500
);
...
...
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