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

测试

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