Commit ae5fa172 authored by Tt's avatar Tt

修改表单

parent 12db9091
......@@ -34,9 +34,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.initEvent();
this.initVideoPlayer();
this.xiaodi.playEnter(this.data.npcAudio).then(() => {
this.initGame();
})
// this.xiaodi.playEnter(this.data.npcAudio).then(() => {
this.initGame();
// })
// this.initGame();
}
......@@ -123,10 +123,16 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
this._cantouch = false;
this.xiaodi.playQuestionVoice(this.currentQuestion.startAudio).then(() => {
this._cantouch = true;
})
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;
})
}
}
//按钮触发,使用的方法
......
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": "",
......
......@@ -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: 200px">
<div style="width: 800px">
<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
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