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
e92cc153
Commit
e92cc153
authored
Oct 22, 2020
by
Li Mingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 自动播放
parent
9e6542b6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
play.component.ts
src/app/play/play.component.ts
+9
-2
2.png
src/assets/play/speaker/2.png
+0
-0
4.png
src/assets/play/speaker/4.png
+0
-0
No files found.
src/app/play/play.component.ts
View file @
e92cc153
...
...
@@ -457,6 +457,8 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
refreshAnswerNum
();
this
.
refreshSpeakerActive
();
}
initTitle
()
{
...
...
@@ -550,6 +552,9 @@ export class PlayComponent implements OnInit, OnDestroy {
showItem
(
this
.
titleLabel
,
0.3
);
this
.
playAudio
(
'
tip
'
,
true
);
setTimeout
(()
=>
{
this
.
clickedSpeaker
();
},
500
);
});
}
else
{
...
...
@@ -755,6 +760,10 @@ export class PlayComponent implements OnInit, OnDestroy {
clickedSpeaker
()
{
if
(
!
this
.
speakerIcon
.
active
)
{
return
;
}
this
.
speakerIcon
.
visible
=
false
;
this
.
speakerAnima
.
visible
=
true
;
this
.
speakerAnima
.
replay
();
...
...
@@ -933,8 +942,6 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
refreshSpeakerActive
();
this
.
canTouch
=
true
;
},
2500
);
}
...
...
src/assets/play/speaker/2.png
View replaced file @
9e6542b6
View file @
e92cc153
8.19 KB
|
W:
|
H:
7.41 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/play/speaker/4.png
View replaced file @
9e6542b6
View file @
e92cc153
7.41 KB
|
W:
|
H:
8.19 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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