Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
boardgame_yyh
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
boardgame_yyh
Commits
0fc02473
Commit
0fc02473
authored
Sep 09, 2022
by
杨一航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
bc84bf88
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
9 deletions
+2
-9
boardgame_yyh.ts
assets/boardgame_yyh/scene/boardgame_yyh.ts
+2
-2
form.component.html
form_angular/src/app/form/form.component.html
+0
-6
form.component.ts
form_angular/src/app/form/form.component.ts
+0
-1
No files found.
assets/boardgame_yyh/scene/boardgame_yyh.ts
View file @
0fc02473
...
...
@@ -492,11 +492,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
let
total
=
1
;
probar
.
getComponent
(
cc
.
ProgressBar
).
progress
=
total
;
if
(
!
this
.
_recordBefore
&&
this
.
data
.
recordTip
)
{
//
if
(
!
this
.
_recordBefore
&&
this
.
data
.
waitingTurn
)
{
//
this
.
_recordBefore
=
true
;
await
new
Promise
((
resolve
)
=>
{
this
.
recordCat
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
normal
"
,
0
);
this
.
playAudioByUrl
(
this
.
data
.
recordTip
,
()
=>
{
this
.
playAudioByUrl
(
this
.
data
.
waitingTurn
,
()
=>
{
this
.
recordCat
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
record
"
,
0
);
console
.
log
(
"
record audio done==============
"
);
resolve
(
""
)
...
...
form_angular/src/app/form/form.component.html
View file @
0fc02473
...
...
@@ -31,11 +31,5 @@
<app-audio-recorder
[
audioUrl
]="
item
.
waitingTurn
"
(
audioUploaded
)="
onAudioUploadSuccess
($
event
,
'
waitingTurn
')"
>
</app-audio-recorder>
</div>
<div
style=
"margin-bottom: 20px;"
>
<span
style=
"font-size: 20px;"
><b>
录音提示音频
</b>
:
</span>
<app-audio-recorder
[
audioUrl
]="
item
.
recordTip
"
(
audioUploaded
)="
onAudioUploadSuccess
($
event
,
'
recordTip
')"
>
</app-audio-recorder>
</div>
</div>
</div>
\ No newline at end of file
form_angular/src/app/form/form.component.ts
View file @
0fc02473
...
...
@@ -26,7 +26,6 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
waitingWheel
:
''
,
waitingPiece
:
''
,
waitingTurn
:
''
,
recordTip
:
''
,
};
// 获取存储的数据
...
...
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