Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP_03_1
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
OP_03_1
Commits
1356c21e
Commit
1356c21e
authored
Dec 29, 2021
by
Chen Jiping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:增加音频清除按钮;调整开始音频播放逻辑
parent
00107cee
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
3 deletions
+24
-3
form.component.html
form/src/app/form/form.component.html
+15
-0
form.component.ts
form/src/app/form/form.component.ts
+4
-0
OP_03_1.js
play/assets/OP_03_1/scene/OP_03_1.js
+5
-3
No files found.
form/src/app/form/form.component.html
View file @
1356c21e
...
@@ -15,6 +15,11 @@
...
@@ -15,6 +15,11 @@
(
audioUploaded
)="
onAudioUploadSuccess
($
event
,
item
,
'
guideAudioUrl1
')"
>
(
audioUploaded
)="
onAudioUploadSuccess
($
event
,
item
,
'
guideAudioUrl1
')"
>
</app-audio-recorder>
</app-audio-recorder>
</nz-form-control>
</nz-form-control>
<nz-form-control
[
nzSpan
]="
2
"
>
<button
nz-button
nzType=
"danger"
(
click
)="
deleteAudio
(
item
,
'
guideAudioUrl1
')"
>
<i
nz-icon
nzType=
"delete"
nzTheme=
"outline"
></i>
清除
</button>
</nz-form-control>
</nz-form-item>
</nz-form-item>
<nz-form-item>
<nz-form-item>
<nz-form-label
[
nzSpan
]="
2
"
nzFor=
"guideAudioUrl2"
>
待机音频
</nz-form-label>
<nz-form-label
[
nzSpan
]="
2
"
nzFor=
"guideAudioUrl2"
>
待机音频
</nz-form-label>
...
@@ -23,6 +28,11 @@
...
@@ -23,6 +28,11 @@
(
audioUploaded
)="
onAudioUploadSuccess
($
event
,
item
,
'
guideAudioUrl2
')"
>
(
audioUploaded
)="
onAudioUploadSuccess
($
event
,
item
,
'
guideAudioUrl2
')"
>
</app-audio-recorder>
</app-audio-recorder>
</nz-form-control>
</nz-form-control>
<nz-form-control
[
nzSpan
]="
2
"
>
<button
nz-button
nzType=
"danger"
(
click
)="
deleteAudio
(
item
,
'
guideAudioUrl2
')"
>
<i
nz-icon
nzType=
"delete"
nzTheme=
"outline"
></i>
清除
</button>
</nz-form-control>
</nz-form-item>
</nz-form-item>
<nz-form-item>
<nz-form-item>
<nz-form-label
[
nzSpan
]="
2
"
nzFor=
"guideAudioUrl3"
>
结束音频
</nz-form-label>
<nz-form-label
[
nzSpan
]="
2
"
nzFor=
"guideAudioUrl3"
>
结束音频
</nz-form-label>
...
@@ -31,6 +41,11 @@
...
@@ -31,6 +41,11 @@
(
audioUploaded
)="
onAudioUploadSuccess
($
event
,
item
,
'
guideAudioUrl3
')"
>
(
audioUploaded
)="
onAudioUploadSuccess
($
event
,
item
,
'
guideAudioUrl3
')"
>
</app-audio-recorder>
</app-audio-recorder>
</nz-form-control>
</nz-form-control>
<nz-form-control
[
nzSpan
]="
2
"
>
<button
nz-button
nzType=
"danger"
(
click
)="
deleteAudio
(
item
,
'
guideAudioUrl3
')"
>
<i
nz-icon
nzType=
"delete"
nzTheme=
"outline"
></i>
清除
</button>
</nz-form-control>
</nz-form-item>
</nz-form-item>
<nz-form-item>
<nz-form-item>
<nz-form-label
[
nzSpan
]="
2
"
>
图片
</nz-form-label>
<nz-form-label
[
nzSpan
]="
2
"
>
图片
</nz-form-label>
...
...
form/src/app/form/form.component.ts
View file @
1356c21e
...
@@ -99,6 +99,10 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
...
@@ -99,6 +99,10 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
this
.
save
();
this
.
save
();
}
}
deleteAudio
(
item
,
key
){
item
[
key
]
=
null
;
this
.
save
();
}
/**
/**
* 储存数据
* 储存数据
...
...
play/assets/OP_03_1/scene/OP_03_1.js
View file @
1356c21e
...
@@ -237,9 +237,7 @@ cc.Class({
...
@@ -237,9 +237,7 @@ cc.Class({
});
});
}
}
else
{
else
{
this
.
playAni
(
'
begin
'
,
1
,
()
=>
{
begin
();
begin
();
})
}
}
...
@@ -532,6 +530,7 @@ cc.Class({
...
@@ -532,6 +530,7 @@ cc.Class({
const
state
=
dragonDisplay
.
playAnimation
(
name
,
times
);
const
state
=
dragonDisplay
.
playAnimation
(
name
,
times
);
dragonDisplay
.
on
(
dragonBones
.
EventObject
.
COMPLETE
,
()
=>
{
dragonDisplay
.
on
(
dragonBones
.
EventObject
.
COMPLETE
,
()
=>
{
const
tip
=
cc
.
find
(
'
Canvas/tipFrame/tip
'
);
tip
.
active
=
false
;
tip
.
active
=
false
;
if
(
cb
)
{
if
(
cb
)
{
cb
();
cb
();
...
@@ -699,6 +698,9 @@ cc.Class({
...
@@ -699,6 +698,9 @@ cc.Class({
this
.
playAni
(
'
normal
'
,
0
);
this
.
playAni
(
'
normal
'
,
0
);
})
})
}
}
else
{
this
.
_cantouch
=
true
;
}
},
},
_stop
:
null
,
_stop
:
null
,
...
...
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