Commit 8b95bbdd authored by Li MingZhe's avatar Li MingZhe

feat: 新增动画图片类型 背景乐

parent 668fb054
...@@ -35,7 +35,8 @@ ...@@ -35,7 +35,8 @@
<ng-template #truthyTemplate > <ng-template #truthyTemplate >
<div class="btn-delete" (click)="onBtnDeleteAudio()"> <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> </div>
</ng-template> </ng-template>
......
...@@ -26,7 +26,7 @@ export class AudioRecorderComponent implements OnInit, OnChanges, OnDestroy { ...@@ -26,7 +26,7 @@ export class AudioRecorderComponent implements OnInit, OnChanges, OnDestroy {
uploadData; uploadData;
@Input() @Input()
needRemove = false; needRemove = true;
@Input() @Input()
audioItem: any = null; audioItem: any = null;
...@@ -157,6 +157,7 @@ export class AudioRecorderComponent implements OnInit, OnChanges, OnDestroy { ...@@ -157,6 +157,7 @@ export class AudioRecorderComponent implements OnInit, OnChanges, OnDestroy {
onBtnDeleteAudio() { onBtnDeleteAudio() {
this.audioUrl = null; this.audioUrl = null;
this.audioUploaded.emit({});
this.audioRemoved.emit(); this.audioRemoved.emit();
} }
......
...@@ -22,6 +22,16 @@ ...@@ -22,6 +22,16 @@
</div> </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;"> <div style="margin-top: 30px;">
......
...@@ -39,11 +39,17 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -39,11 +39,17 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
text: true, text: true,
audio: true, audio: true,
}, },
// { {
// name: '动画', name: '图片',
// rect: true, pic: true,
// anima: true audio: true,
// } },
{
name: '动画',
rect: true,
anima: true,
audio: true,
}
] ]
constructor(private appRef: ApplicationRef,private changeDetectorRef: ChangeDetectorRef, private message: NzMessageService) { constructor(private appRef: ApplicationRef,private changeDetectorRef: ChangeDetectorRef, private message: NzMessageService) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment