Commit 0fc02473 authored by 杨一航's avatar 杨一航

fix

parent bc84bf88
......@@ -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("")
......
......@@ -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
......@@ -26,7 +26,6 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
waitingWheel: '',
waitingPiece: '',
waitingTurn: '',
recordTip: '',
};
// 获取存储的数据
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment