Commit 0f68c0bc authored by 范雪寒's avatar 范雪寒
parents f1840487 88db8a28
...@@ -126,11 +126,13 @@ export function initAir(_this) { ...@@ -126,11 +126,13 @@ export function initAir(_this) {
_this.log(`===成功调用stopTest===`); _this.log(`===成功调用stopTest===`);
if (!callback) { if (!callback) {
// 不传回调函数就表示取消评测 // 不传回调函数就表示取消评测
_this.log(`===成功取消录音评测===`);
window.courseware.callOcMethod("stopTest", { isBreak: 1 }); window.courseware.callOcMethod("stopTest", { isBreak: 1 });
return; return;
} }
// 结束录音 // 结束录音
window.air.testCallBack = (res) => { window.air.testCallBack = (res) => {
_this.log(`===成功调用testCallBack=== res == ${JSON.stringify(res)}`);
callback && callback(JSON.stringify(res)); callback && callback(JSON.stringify(res));
window.air.testCallBack = null; window.air.testCallBack = null;
}; };
......
...@@ -325,7 +325,7 @@ cc.Class({ ...@@ -325,7 +325,7 @@ cc.Class({
if (this.courseIndex == 0) { if (this.courseIndex == 0) {
cc.find('middleLayer/BtnLeft').active = false; cc.find('middleLayer/BtnLeft').active = false;
} else { } else {
cc.find('middleLayer/BtnLeft').active = true; cc.find('middleLayer/BtnLeft').active = false;
} }
if (this.courseIndex == this.courses.length - 1) { if (this.courseIndex == this.courses.length - 1) {
cc.find('middleLayer/BtnRight').active = false; cc.find('middleLayer/BtnRight').active = false;
...@@ -387,7 +387,7 @@ cc.Class({ ...@@ -387,7 +387,7 @@ cc.Class({
cc.find('middleLayer/BtnRight').active = true; cc.find('middleLayer/BtnRight').active = true;
} }
if (this.courseIndex > 0) { if (this.courseIndex > 0) {
cc.find('middleLayer/BtnLeft').active = true; cc.find('middleLayer/BtnLeft').active = false;
} }
this.reWriteAir(); this.reWriteAir();
this.loadPageBundle(); this.loadPageBundle();
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
"premultiplyAlpha": false, "premultiplyAlpha": false,
"genMipmaps": false, "genMipmaps": false,
"packable": true, "packable": true,
"width": 84, "width": 171,
"height": 64, "height": 146,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"Btn": { "Btn": {
......
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