Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
YM4-11
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
YM4-11
Commits
d32cc0b4
Commit
d32cc0b4
authored
Sep 14, 2020
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev commit
parent
dd991b1e
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
317 additions
and
13 deletions
+317
-13
custom-hot-zone.component.html
...app/common/custom-hot-zone/custom-hot-zone.component.html
+18
-1
custom-hot-zone.component.ts
src/app/common/custom-hot-zone/custom-hot-zone.component.ts
+2
-2
play.component.ts
src/app/play/play.component.ts
+291
-9
resources.js
src/app/play/resources.js
+6
-1
bg_250_46.png
src/assets/play/bg_250_46.png
+0
-0
bg_title_part.png
src/assets/play/bg_title_part.png
+0
-0
icon_audio_container.png
src/assets/play/icon_audio_container.png
+0
-0
icon_paly.png
src/assets/play/icon_paly.png
+0
-0
icon_pause.png
src/assets/play/icon_pause.png
+0
-0
part_number_bg.png
src/assets/play/part_number_bg.png
+0
-0
No files found.
src/app/common/custom-hot-zone/custom-hot-zone.component.html
View file @
d32cc0b4
...
...
@@ -5,7 +5,24 @@
<div
class=
"img-box clearfix"
style=
"border-bottom: 1px solid #DDD; padding-bottom: 10px;"
>
<div
style=
"float: left;"
>
<h3>
音频素材
</h3>
<app-audio-recorder
id=
"index_audio_1"
[
audioUrl
]="
bgItem
.
audio_url
"
(
audioUploaded
)="
onAudioUploadSuccess
($
event
,
bgItem
,
null
)"
>
</app-audio-recorder>
<app-audio-recorder
id=
"index_audio_1"
[
audioUrl
]="
bgItem
.
audio_url
"
(
audioUploaded
)="
onAudioUploadSuccess
($
event
,
bgItem
,
'
audio_url
')"
>
</app-audio-recorder>
</div>
</div>
</div>
<div
nzAlign=
"middle"
>
<div
class=
"img-box clearfix"
style=
"border-bottom: 1px solid #DDD; padding-bottom: 10px;"
>
<div
style=
"position: relative; margin-bottom: 5px;"
>
<h3>
题号
</h3>
<input
type=
"text"
nz-input
placeholder=
""
[(
ngModel
)]="
bgItem
.
NO
"
(
blur
)="
autoSave
()"
/>
</div>
<div
style=
"position: relative; margin-bottom: 5px;"
>
<h3>
课件标题
</h3>
<input
type=
"text"
nz-input
placeholder=
""
[(
ngModel
)]="
bgItem
.
mainText
"
(
blur
)="
autoSave
()"
/>
</div>
<div
style=
"position: relative; margin-bottom: 5px;"
>
<h3>
标题发音
</h3>
<app-audio-recorder
id=
"index_audio_1"
[
audioUrl
]="
bgItem
.
mainTitleAudio
"
(
audioUploaded
)="
onUploadSuccessByItem
($
event
,
bgItem
.
title
,'
mainTitleAudio
',
'
audio
')"
>
</app-audio-recorder>
</div>
</div>
</div>
...
...
src/app/common/custom-hot-zone/custom-hot-zone.component.ts
View file @
d32cc0b4
...
...
@@ -161,9 +161,9 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
onAudioUploadSuccess
(
e
,
item
,
key
)
{
if
(
key
)
{
item
.
audio_url
=
e
.
url
;
}
else
{
item
[
key
]
=
e
.
url
;
}
else
{
item
.
audio_url
=
e
.
url
;
}
this
.
autoSave
()
...
...
src/app/play/play.component.ts
View file @
d32cc0b4
This diff is collapsed.
Click to expand it.
src/app/play/resources.js
View file @
d32cc0b4
...
...
@@ -28,7 +28,9 @@ const localImages = {
'
_image_none
'
:
'
assets/default/images/image_none.png
'
,
"
defalut_container
"
:
"
assets/play/hotZooCard/defalut_bg.png
"
,
"
part_number_bg
"
:
"
assets/play/part_number_bg.png
"
,
'
bg_70_40
'
:
'
assets/play/bg_70_40.png
'
,
'
bg_250_46
'
:
'
assets/play/bg_250_46.png
'
,
'
line
'
:
'
assets/play/line.png
'
,
'
num-1
'
:
'
assets/play/num-1.png
'
,
'
num-2
'
:
'
assets/play/num-2.png
'
,
...
...
@@ -40,7 +42,10 @@ const localImages = {
'
num-8
'
:
'
assets/play/num-8.png
'
,
'
oval-copy
'
:
'
assets/play/oval-copy.png
'
,
'
select-bg
'
:
'
assets/play/select-bg.png
'
,
'
icon_audio_container
'
:
'
assets/play/icon_audio_container.png
'
,
'
bg_title_part
'
:
'
assets/play/bg_title_part.png
'
,
'
icon_paly
'
:
'
assets/play/icon_paly.png
'
,
'
icon_pause
'
:
'
assets/play/icon_pause.png
'
,
};
...
...
src/assets/play/bg_250_46.png
0 → 100644
View file @
d32cc0b4
1.73 KB
src/assets/play/bg_title_part.png
0 → 100644
View file @
d32cc0b4
1.67 KB
src/assets/play/icon_audio_container.png
0 → 100644
View file @
d32cc0b4
1.75 KB
src/assets/play/icon_paly.png
0 → 100644
View file @
d32cc0b4
5.97 KB
src/assets/play/icon_pause.png
0 → 100644
View file @
d32cc0b4
5.38 KB
src/assets/play/part_number_bg.png
0 → 100644
View file @
d32cc0b4
446 Bytes
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