Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP32_PLUS
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
OP32_PLUS
Commits
deb4313b
Commit
deb4313b
authored
Apr 22, 2022
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整表单配置
parent
b941090d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
84 additions
and
6 deletions
+84
-6
OP32_PLUS.fire
assets/OP32_PLUS/scene/OP32_PLUS.fire
+4
-4
form.component.html
form/src/app/form/form.component.html
+64
-0
form.component.ts
form/src/app/form/form.component.ts
+16
-2
No files found.
assets/OP32_PLUS/scene/OP32_PLUS.fire
View file @
deb4313b
...
@@ -1190,8 +1190,8 @@
...
@@ -1190,8 +1190,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
6
00,
"width":
9
00,
"height":
4
00
"height":
7
00
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -1342,8 +1342,8 @@
...
@@ -1342,8 +1342,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
6
00,
"width":
9
00,
"height":
4
00
"height":
7
00
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
...
form/src/app/form/form.component.html
View file @
deb4313b
...
@@ -7,6 +7,18 @@
...
@@ -7,6 +7,18 @@
</div>
</div>
<div
style=
"padding: 10px;"
>
<div
style=
"padding: 10px;"
>
<div
style=
"width: 500px; margin-top: 20px; border: 1px solid #ccc; border-radius: 5px; padding: 15px;"
>
开始读条音频:
<app-audio-recorder
style=
"margin-left: 10px; "
[
audioUrl
]="
item
.
startLoadingAudio
"
(
audioUploaded
)="
onAudioUploadSuccess
($
event
,
'
startLoadingAudio
',
item
)"
></app-audio-recorder>
</div>
<div
style=
"width: 500px; margin-top: 20px; border: 1px solid #ccc; border-radius: 5px; padding: 15px;"
>
<div
style=
"width: 500px; margin-top: 20px; border: 1px solid #ccc; border-radius: 5px; padding: 15px;"
>
猫咪开头音频:
猫咪开头音频:
<app-audio-recorder
<app-audio-recorder
...
@@ -25,6 +37,58 @@
...
@@ -25,6 +37,58 @@
></app-audio-recorder>
></app-audio-recorder>
</div>
</div>
</div>
</div>
<div
style=
"padding: 10px;"
>
<div
style=
"width: 500px; margin-top: 20px; border: 1px solid #ccc; border-radius: 5px; padding: 15px;"
>
猫咪第一音频:
<app-audio-recorder
style=
"margin-left: 10px; "
[
audioUrl
]="
item
.
finishAudioList
[
0
]"
(
audioUploaded
)="
onFinishAudioUploadSuccess
($
event
,
0
)"
></app-audio-recorder>
</div>
</div>
<div
style=
"padding: 10px;"
>
<div
style=
"width: 500px; margin-top: 20px; border: 1px solid #ccc; border-radius: 5px; padding: 15px;"
>
猫咪第二音频:
<app-audio-recorder
style=
"margin-left: 10px; "
[
audioUrl
]="
item
.
finishAudioList
[
1
]"
(
audioUploaded
)="
onFinishAudioUploadSuccess
($
event
,
1
)"
></app-audio-recorder>
</div>
</div>
<div
style=
"padding: 10px;"
>
<div
style=
"width: 500px; margin-top: 20px; border: 1px solid #ccc; border-radius: 5px; padding: 15px;"
>
猫咪第三音频:
<app-audio-recorder
style=
"margin-left: 10px; "
[
audioUrl
]="
item
.
finishAudioList
[
2
]"
(
audioUploaded
)="
onFinishAudioUploadSuccess
($
event
,
2
)"
></app-audio-recorder>
</div>
</div>
<div
style=
"padding: 10px;"
>
<div
style=
"width: 500px; margin-top: 20px; border: 1px solid #ccc; border-radius: 5px; padding: 15px;"
>
猫咪第四音频:
<app-audio-recorder
style=
"margin-left: 10px; "
[
audioUrl
]="
item
.
finishAudioList
[
3
]"
(
audioUploaded
)="
onFinishAudioUploadSuccess
($
event
,
3
)"
></app-audio-recorder>
</div>
</div>
<div
style=
"padding: 10px;"
>
<div
style=
"width: 500px; margin-top: 20px; border: 1px solid #ccc; border-radius: 5px; padding: 15px;"
>
猫咪第五音频:
<app-audio-recorder
style=
"margin-left: 10px; "
[
audioUrl
]="
item
.
finishAudioList
[
4
]"
(
audioUploaded
)="
onFinishAudioUploadSuccess
($
event
,
4
)"
></app-audio-recorder>
</div>
</div>
<div
style=
"padding: 10px;"
>
<div
style=
"padding: 10px;"
>
...
...
form/src/app/form/form.component.ts
View file @
deb4313b
...
@@ -26,6 +26,8 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
...
@@ -26,6 +26,8 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
maxWrongNumber
:
4
,
maxWrongNumber
:
4
,
startAudio
:
''
,
startAudio
:
''
,
endAudio
:
''
,
endAudio
:
''
,
startLoadingAudio
:
''
,
finishAudioList
:
[],
question_arr
:
[]
question_arr
:
[]
};
};
...
@@ -56,16 +58,28 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
...
@@ -56,16 +58,28 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
if
(
!
this
.
item
.
question_arr
)
{
if
(
!
this
.
item
.
question_arr
)
{
this
.
item
.
question_arr
=
[];
this
.
item
.
question_arr
=
[];
}
}
if
(
!
this
.
item
.
finishAudioList
)
{
this
.
item
.
finishAudioList
=
[];
}
if
(
!
this
.
item
.
startLoadingAudio
)
{
this
.
item
.
startLoadingAudio
=
''
;
}
this
.
questionArr
=
this
.
item
.
question_arr
;
this
.
questionArr
=
this
.
item
.
question_arr
;
}
}
onFinishAudioUploadSuccess
(
e
,
idx
)
{
this
.
item
.
finishAudioList
[
idx
]
=
e
.
url
;
this
.
save
();
}
addQuestionBtnClick
()
{
addQuestionBtnClick
()
{
this
.
questionArr
.
push
({
this
.
questionArr
.
push
({
question_audio_url
:
''
,
question_audio_url
:
''
,
option_arr
:
[
//选项 (多选)
option_arr
:
[
//选项 (多选)
],
]
audio_url
:
''
,
})
})
this
.
save
();
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