Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gs_carton
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
gs_carton
Commits
cbc56f5e
Commit
cbc56f5e
authored
Nov 18, 2024
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 支持直接添加热区
parent
2ad9a447
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
4 deletions
+22
-4
form.component.css
src/app/form/form.component.css
+18
-0
form.component.html
src/app/form/form.component.html
+4
-4
No files found.
src/app/form/form.component.css
View file @
cbc56f5e
...
...
@@ -25,6 +25,24 @@
background-color
:
#45a049
;
/* 悬停时的背景色 */
}
.add-page-button
{
background-color
:
#4CAF50
;
/* 绿色背景 */
border
:
none
;
color
:
white
;
/* 白色文字 */
padding
:
5px
20px
;
text-align
:
center
;
text-decoration
:
none
;
display
:
inline-block
;
font-size
:
13px
;
margin
:
10px
20px
;
cursor
:
pointer
;
border-radius
:
5px
;
/* 圆角 */
transition
:
background-color
0.3s
ease
;
/* 背景色过渡效果 */
}
.add-page-button
:hover
{
background-color
:
#45a049
;
/* 悬停时的背景色 */
}
.current-time-display
{
font-size
:
14px
;
color
:
#333
;
/* 深灰色文字 */
...
...
src/app/form/form.component.html
View file @
cbc56f5e
...
...
@@ -10,16 +10,16 @@
(
audioUploaded
)="
onAudioUploadSuccess
($
event
,
'
bg_audio_url
',
item
)"
>
</app-audio-recorder>
<div
class=
"current-time-display"
>
当前播放时间: [
<span
class=
"time-text"
>
{{ currentTime }}
</span>
]毫秒
</div>
<button
(
click
)="
addHotZone
()"
class=
"add-page-button"
>
<i
nz-icon
nzType=
"plus-circle"
nzTheme=
"outline"
></i>
添加页面
</button>
</div>
<div
id=
"waveform"
></div>
<div
*
ngIf=
"item.bg_audio_url"
>
<button
(
click
)="
togglePlayPause
()"
class=
"play-pause-button"
>
{{ isPlaying ? '暂停' : '播放' }}
</button>
<button
(
click
)="
addHotZone
()"
class=
"play-pause-button"
>
<i
nz-icon
nzType=
"plus-circle"
nzTheme=
"outline"
></i>
添加页面
</button>
</div>
</div>
...
...
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