Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cc_mz_003
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
cc_mz_003
Commits
8b95bbdd
Commit
8b95bbdd
authored
Jan 21, 2021
by
Li MingZhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 新增动画图片类型 背景乐
parent
668fb054
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
7 deletions
+25
-7
audio-recorder.component.html
...c/app/common/audio-recorder/audio-recorder.component.html
+2
-1
audio-recorder.component.ts
...src/app/common/audio-recorder/audio-recorder.component.ts
+2
-1
form.component.html
form/src/app/form/form.component.html
+10
-0
form.component.ts
form/src/app/form/form.component.ts
+11
-5
No files found.
form/src/app/common/audio-recorder/audio-recorder.component.html
View file @
8b95bbdd
...
...
@@ -35,7 +35,8 @@
<ng-template
#
truthyTemplate
>
<div
class=
"btn-delete"
(
click
)="
onBtnDeleteAudio
()"
>
<fa-icon
icon=
"close"
></fa-icon>
<!-- <fa-icon icon="close"></fa-icon> -->
<i
nz-icon
nzType=
"close"
nzTheme=
"outline"
></i>
</div>
</ng-template>
...
...
form/src/app/common/audio-recorder/audio-recorder.component.ts
View file @
8b95bbdd
...
...
@@ -26,7 +26,7 @@ export class AudioRecorderComponent implements OnInit, OnChanges, OnDestroy {
uploadData
;
@
Input
()
needRemove
=
fals
e
;
needRemove
=
tru
e
;
@
Input
()
audioItem
:
any
=
null
;
...
...
@@ -157,6 +157,7 @@ export class AudioRecorderComponent implements OnInit, OnChanges, OnDestroy {
onBtnDeleteAudio
()
{
this
.
audioUrl
=
null
;
this
.
audioUploaded
.
emit
({});
this
.
audioRemoved
.
emit
();
}
...
...
form/src/app/form/form.component.html
View file @
8b95bbdd
...
...
@@ -22,6 +22,16 @@
</div>
<div
style=
"display: flex; align-items: center; margin-top: 20px;"
>
<h4>
背景乐添加:
</h4>
<app-audio-recorder
style=
"margin-left: 20px"
[
audioUrl
]="
item
.
bg_audio_url
"
(
audioUploaded
)="
onAudioUploadSuccess
($
event
,
'
bg_audio_url
',
item
)"
>
</app-audio-recorder>
</div>
<div
style=
"margin-top: 30px;"
>
...
...
form/src/app/form/form.component.ts
View file @
8b95bbdd
...
...
@@ -39,11 +39,17 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
text
:
true
,
audio
:
true
,
},
// {
// name: '动画',
// rect: true,
// anima: true
// }
{
name
:
'
图片
'
,
pic
:
true
,
audio
:
true
,
},
{
name
:
'
动画
'
,
rect
:
true
,
anima
:
true
,
audio
:
true
,
}
]
constructor
(
private
appRef
:
ApplicationRef
,
private
changeDetectorRef
:
ChangeDetectorRef
,
private
message
:
NzMessageService
)
{
...
...
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