Commit c067e0bd authored by 章红平's avatar 章红平

提示信息

parent 0f405c38
......@@ -143,7 +143,7 @@ export default class cake_class_1 extends MyCocosSceneComponent {
}
startTalking() {
console.log("startText:", this.data.questions[this.questionIndex].text)
if ((<any>window).courseware) {
if ((<any>window).courseware&&(<any>window).courseware.stopTest) {
(<any>window).courseware.startTest(this.data.questions[this.questionIndex].text);
}
this.talking = true;
......@@ -157,7 +157,7 @@ export default class cake_class_1 extends MyCocosSceneComponent {
this.initRedBtn();
this.moveOutCandle2();
this.nowPanel.showBlock();
if ((<any>window).courseware) {
if ((<any>window).courseware&&(<any>window).courseware.stopTest) {
(<any>window).courseware.stopTest((res) => {
res=JSON.parse(res)
console.log("res=========",res.scores,res.result)
......
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