Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dg29_museum
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
dg29_museum
Commits
ae5fa172
Commit
ae5fa172
authored
Dec 25, 2023
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改表单
parent
12db9091
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
13 deletions
+20
-13
dg29_museum.ts
assets/dg29_museum/scene/dg29_museum.ts
+12
-6
defaultData_dg29_museum.ts
assets/dg29_museum/script/defaultData_dg29_museum.ts
+1
-1
form.component.html
form/src/app/form/form.component.html
+7
-6
No files found.
assets/dg29_museum/scene/dg29_museum.ts
View file @
ae5fa172
...
...
@@ -34,9 +34,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
initEvent
();
this
.
initVideoPlayer
();
this
.
xiaodi
.
playEnter
(
this
.
data
.
npcAudio
).
then
(()
=>
{
//
this.xiaodi.playEnter(this.data.npcAudio).then(() => {
this
.
initGame
();
})
//
})
// this.initGame();
}
...
...
@@ -123,10 +123,16 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
this
.
_cantouch
=
false
;
if
(
this
.
current
==
0
)
{
this
.
xiaodi
.
playEnter
(
this
.
data
.
startAudio
).
then
(()
=>
{
this
.
_cantouch
=
true
;
})
}
else
{
this
.
xiaodi
.
playQuestionVoice
(
this
.
currentQuestion
.
startAudio
).
then
(()
=>
{
this
.
_cantouch
=
true
;
})
}
}
//按钮触发,使用的方法
...
...
assets/dg29_museum/script/defaultData_dg29_museum.ts
View file @
ae5fa172
export
const
defaultData
=
{
"
npcTitle
"
:
"
exit
"
,
"
npcAudio
"
:
"
http://staging-teach.cdn.ireadabc.com/5f4e4c72671607bb35d1ecd1d291f238_l.mp3
"
,
"
npcAudio
"
:
""
,
"
npcAudioName
"
:
""
,
"
npcAudioEnd
"
:
"
http://staging-teach.cdn.ireadabc.com/85e58ae784dfc381170ddabead16cac6_l.mp3
"
,
"
npcAudioEndName
"
:
""
,
...
...
form/src/app/form/form.component.html
View file @
ae5fa172
...
...
@@ -85,7 +85,7 @@
<div
style=
"padding: 10px;background-color: #fff;"
>
<div
class=
"border-dashed"
style=
"margin: 20px;width: 1300px;"
>
<span
style=
"font-size: 20px;"
>
小迪开始音频:
</span>
<
!-- <
span style="font-size: 20px;">小迪开始音频: </span>
<div style="display:flex ;">
<div>
<app-audio-recorder [audioUrl]="item.npcAudio"
...
...
@@ -95,7 +95,7 @@
<div style="margin: 5px">
<span>{{ item.npcAudioName}}</span>
</div>
</div>
</div>
-->
<span
style=
"font-size: 20px;"
>
小迪结束按钮文字:
</span>
<input
type=
"text"
nz-input
[(
ngModel
)]="
item
.
npcAudioText
"
(
blur
)="
save
()"
>
<span
style=
"font-size: 20px;"
>
小迪结束音频:
</span>
...
...
@@ -110,8 +110,6 @@
</div>
</div>
<span
style=
"font-size: 20px;"
>
视频:
</span>
<app-upload-video
[
videoUrl
]="
item
.
video
"
(
videoUploaded
)="
onVideoUploaded
($
event
)"
></app-upload-video>
</div>
...
...
@@ -124,7 +122,7 @@
</div>
<div
name=
"题目标题"
>
<div
style=
"width:
2
00px"
>
<div
style=
"width:
8
00px"
>
<span
style=
"font-size: 20px;"
>
题目标题
</span>
<input
type=
"text"
nz-input
[(
ngModel
)]="
question
.
title
"
(
blur
)="
save
()"
>
</div>
...
...
@@ -220,7 +218,10 @@
</nz-modal>
</div>
<div
class=
"border-dashed"
style=
"margin: 20px;width: 1300px;"
>
<span
style=
"font-size: 20px;"
>
视频:
</span>
<app-upload-video
[
videoUrl
]="
item
.
video
"
(
videoUploaded
)="
onVideoUploaded
($
event
)"
></app-upload-video>
</div>
</div>
</div>
\ No newline at end of file
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