Commit f1a1d594 authored by yu's avatar yu

1

parent 279f0a69
......@@ -113,6 +113,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this._changStr[idx].push(null);
});
});
this.isPlayBgAudio = true;
}
private initDown() {
let g_down = cc.find("g_down", this.node);
......@@ -377,7 +378,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
record_stop.off('click');
record_start.on('click', () => {
this.playLocalAudio('btn');
this.stopBgAudio();
mask.active = true;
// icon_record.getComponent(dragonBones.ArmatureDisplay).timeScale = 1;
......@@ -447,6 +448,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.log('idx:' + idx);
if (window['courseware']) {
this.playBgAudio();
window['courseware'].stopTest((res) => {
this.log('--------录音返回结果 stopTest ------------');
this.log('res' + res);
......@@ -487,6 +489,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
onHomeworkFinish(send);
});
} else {
this.playBgAudio();
if (idx !== -1) {
let g_middle = cc.find("g_middle", this.node);
......
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