Commit 7f5498a9 authored by 李维's avatar 李维

测试

parent a39eafaa
......@@ -544,12 +544,19 @@ cc.Class({
// this.isLast = this.checkIsLast(); // data.last // this.checkIsLast();
// this.playTimes = this.checkPlayTimes(); // data.playTime// this.checkPlayTimes();
// this.jumpData = this.getJumpData(); //data.saveData // this.getJumpData();
// let saveData = this.getJumpData()
// if(saveData == null) {
// this.jumpData = {step: 0}
// } else {
// saveData.step++;
// this.jumpData = saveData;
// }
// console.log("PSQS_get_course_info",this.isFirst, this.isLast, this.playTimes, this.jumpData);
// cb();
// return;
console.log(" in getState 1");
callMiddleLayerFunction("PSQS_get_course_info", {}, (data) => {
console.log("PSQS_get_course_info",data.first, data.last, data.playTime, JSON.stringify(data.saveData));
this.isFirst = data.first; //this.checkIsFirst();
this.isLast = data.last // this.checkIsLast();
this.playTimes = data.playTime// this.checkPlayTimes();
......@@ -564,6 +571,8 @@ cc.Class({
this.playTimes += 1;
}
console.log("PSQS_get_course_info",this.isFirst, this.isLast, this.playTimes, this.jumpData);
cb && cb();
});
},
......@@ -581,7 +590,7 @@ cc.Class({
},
getJumpData() {
return {step: 7};
return {"step":5};
},
maskSpr: null,
......@@ -655,7 +664,7 @@ cc.Class({
const endTime = this.data.quesArr[i].ques_end;
if (Number(jumpTime) >= Number(startTime) && Number(jumpTime) < Number(endTime)) {
this.quesIndex = i;
// console.log("重定位题号:",this.quesIndex)
console.log("重定位题号:",this.quesIndex)
}
}
},
......@@ -690,6 +699,7 @@ cc.Class({
addServerListener() {
console.log(" in addServerListener");
// this.loadEnd(()=>{});
const c = window.courseware;
if (!c) {
......@@ -1048,6 +1058,7 @@ cc.Class({
},
startQuesVideo(currentTime = null) {
// currentTime = "110";
console.log("in startQuesVideo", currentTime);
this.wrongTimes = 0;
......
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