Commit 0cefed3a authored by liujiangnan's avatar liujiangnan

feat

parent 422f3103
...@@ -10,11 +10,11 @@ ...@@ -10,11 +10,11 @@
background-color: #4CAF50; /* 绿色背景 */ background-color: #4CAF50; /* 绿色背景 */
border: none; border: none;
color: white; /* 白色文字 */ color: white; /* 白色文字 */
padding: 10px 20px; padding: 5px 20px;
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
display: inline-block; display: inline-block;
font-size: 16px; font-size: 13px;
margin: 10px 20px; margin: 10px 20px;
cursor: pointer; cursor: pointer;
border-radius: 5px; /* 圆角 */ border-radius: 5px; /* 圆角 */
......
<div class="model-content"> <div class="model-content">
<div style="position: fixed; top: 20px; left: 20px; right: 20px; z-index: 1000; background-color: #fff; padding: 20px; border-radius: 10px;"> <div style="position: fixed; top: 0px; left: 0px; right: 0px; z-index: 1000; background-color: #F2F6FC; padding: 20px;">
<div style="display: flex; align-items: center;"> <div style="display: flex; align-items: center;">
<h4> 音频添加: </h4> <h4> 音频添加: </h4>
<app-audio-recorder <app-audio-recorder
...@@ -9,6 +9,11 @@ ...@@ -9,6 +9,11 @@
[audioUrl]="item.bg_audio_url" [audioUrl]="item.bg_audio_url"
(audioUploaded)="onAudioUploadSuccess($event, 'bg_audio_url', item)"> (audioUploaded)="onAudioUploadSuccess($event, 'bg_audio_url', item)">
</app-audio-recorder> </app-audio-recorder>
<div *ngIf="item.bg_audio_url">
<button (click)="togglePlayPause()" class="play-pause-button">
{{ isPlaying ? '暂停' : '播放' }}
</button>
</div>
<div class="current-time-display">当前播放时间: [<span class="time-text">{{ currentTime }}</span>]毫秒</div> <div class="current-time-display">当前播放时间: [<span class="time-text">{{ currentTime }}</span>]毫秒</div>
<button (click)="addHotZone()" class="add-page-button"> <button (click)="addHotZone()" class="add-page-button">
<i nz-icon nzType="plus-circle" nzTheme="outline"></i> <i nz-icon nzType="plus-circle" nzTheme="outline"></i>
...@@ -24,11 +29,6 @@ ...@@ -24,11 +29,6 @@
<i nz-icon nzType="zoom-out" nzTheme="outline"></i> <i nz-icon nzType="zoom-out" nzTheme="outline"></i>
</button> </button>
</div> </div>
<div *ngIf="item.bg_audio_url">
<button (click)="togglePlayPause()" class="play-pause-button">
{{ isPlaying ? '暂停' : '播放' }}
</button>
</div>
</div> </div>
<div style="height: 300px;">&nbsp;</div> <div style="height: 300px;">&nbsp;</div>
......
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