Commit ae5fa172 authored by Tt's avatar Tt

修改表单

parent 12db9091
...@@ -34,9 +34,9 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -34,9 +34,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.initEvent(); this.initEvent();
this.initVideoPlayer(); this.initVideoPlayer();
this.xiaodi.playEnter(this.data.npcAudio).then(() => { // this.xiaodi.playEnter(this.data.npcAudio).then(() => {
this.initGame(); this.initGame();
}) // })
// this.initGame(); // this.initGame();
} }
...@@ -123,10 +123,16 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -123,10 +123,16 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
this._cantouch = false; 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.xiaodi.playQuestionVoice(this.currentQuestion.startAudio).then(() => {
this._cantouch = true; this._cantouch = true;
}) })
}
} }
//按钮触发,使用的方法 //按钮触发,使用的方法
......
export const defaultData = export const defaultData =
{ {
"npcTitle": "exit", "npcTitle": "exit",
"npcAudio": "http://staging-teach.cdn.ireadabc.com/5f4e4c72671607bb35d1ecd1d291f238_l.mp3", "npcAudio": "",
"npcAudioName": "", "npcAudioName": "",
"npcAudioEnd": "http://staging-teach.cdn.ireadabc.com/85e58ae784dfc381170ddabead16cac6_l.mp3", "npcAudioEnd": "http://staging-teach.cdn.ireadabc.com/85e58ae784dfc381170ddabead16cac6_l.mp3",
"npcAudioEndName": "", "npcAudioEndName": "",
......
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
<div style="padding: 10px;background-color: #fff;"> <div style="padding: 10px;background-color: #fff;">
<div class="border-dashed" style="margin: 20px;width: 1300px;"> <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 style="display:flex ;">
<div> <div>
<app-audio-recorder [audioUrl]="item.npcAudio" <app-audio-recorder [audioUrl]="item.npcAudio"
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
<div style="margin: 5px"> <div style="margin: 5px">
<span>{{ item.npcAudioName}}</span> <span>{{ item.npcAudioName}}</span>
</div> </div>
</div> </div> -->
<span style="font-size: 20px;">小迪结束按钮文字: </span> <span style="font-size: 20px;">小迪结束按钮文字: </span>
<input type="text" nz-input [(ngModel)]="item.npcAudioText" (blur)="save()"> <input type="text" nz-input [(ngModel)]="item.npcAudioText" (blur)="save()">
<span style="font-size: 20px;">小迪结束音频: </span> <span style="font-size: 20px;">小迪结束音频: </span>
...@@ -110,8 +110,6 @@ ...@@ -110,8 +110,6 @@
</div> </div>
</div> </div>
<span style="font-size: 20px;">视频: </span>
<app-upload-video [videoUrl]="item.video" (videoUploaded)="onVideoUploaded($event)"></app-upload-video>
</div> </div>
...@@ -124,7 +122,7 @@ ...@@ -124,7 +122,7 @@
</div> </div>
<div name="题目标题"> <div name="题目标题">
<div style="width: 200px"> <div style="width: 800px">
<span style="font-size: 20px;">题目标题</span> <span style="font-size: 20px;">题目标题</span>
<input type="text" nz-input [(ngModel)]="question.title" (blur)="save()"> <input type="text" nz-input [(ngModel)]="question.title" (blur)="save()">
</div> </div>
...@@ -220,7 +218,10 @@ ...@@ -220,7 +218,10 @@
</nz-modal> </nz-modal>
</div> </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>
</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