Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jj15_zww
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
jj15_zww
Commits
318f3912
Commit
318f3912
authored
May 22, 2024
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加音频部分
parent
a349a239
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
4 deletions
+20
-4
defaultData_jj15_zww.ts
assets/jj15_zww/script/defaultData_jj15_zww.ts
+6
-3
form.component.html
form/src/app/form/form.component.html
+11
-0
form.component.ts
form/src/app/form/form.component.ts
+3
-1
No files found.
assets/jj15_zww/script/defaultData_jj15_zww.ts
View file @
318f3912
...
...
@@ -7,17 +7,20 @@ export const defaultData = {
{
"
type
"
:
"
txt
"
,
"
image
"
:
""
,
"
text
"
:
"
bird
"
"
text
"
:
"
bird
"
,
"
audio
"
:
'
http://staging-teach.cdn.ireadabc.com/981ebff00a4717b1327b9dcd32b9ad2f_l.mp3
'
},
{
"
type
"
:
"
img
"
,
"
image
"
:
"
http://staging-teach.cdn.ireadabc.com/c62b5960641fd7cf29613cc45fb00cd6.png
"
,
"
text
"
:
""
"
text
"
:
""
,
"
audio
"
:
'
http://staging-teach.cdn.ireadabc.com/981ebff00a4717b1327b9dcd32b9ad2f_l.mp3
'
},
{
"
type
"
:
"
img_txt
"
,
"
image
"
:
"
http://staging-teach.cdn.ireadabc.com/a71f2b71e45ff2525714494f6edd624b.jpg
"
,
"
text
"
:
"
wind
"
"
text
"
:
"
wind
"
,
"
audio
"
:
'
http://staging-teach.cdn.ireadabc.com/981ebff00a4717b1327b9dcd32b9ad2f_l.mp3
'
},
// {
// "type": "txt",
...
...
form/src/app/form/form.component.html
View file @
318f3912
...
...
@@ -180,6 +180,17 @@
<input
type=
"text"
class=
"input-place-red"
nz-input
[(
ngModel
)]="
option
.
text
"
placeholder=
""
(
blur
)="
save
()"
>
</div>
<span
style=
"font-size: 20px;"
>
音频:
</span>
<div
style=
"display:flex ;"
>
<div>
<app-audio-recorder
[
audioUrl
]="
option
.
audio
"
(
audioUploaded
)="
onAudioUploadSuccess
($
event
,
'
audio
',
option
,'
audioName
')"
>
</app-audio-recorder>
</div>
<div
style=
"margin: 5px"
>
<span>
{{ option.audioName }}
</span>
</div>
</div>
</div>
...
...
form/src/app/form/form.component.ts
View file @
318f3912
...
...
@@ -55,7 +55,9 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
this
.
item
.
questions
[
i
].
options
.
push
({
type
:
'
img
'
,
image
:
''
,
text
:
''
text
:
''
,
audio
:
''
,
audioName
:
''
,
})
this
.
save
();
}
...
...
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