Commit eaa4f7da authored by 李维's avatar 李维

测试

parent 401887ff
......@@ -530,10 +530,9 @@ cc.Class({
this.initMask();
this.showProgressBar();
this.getState(() => {
this.initView();
this.initListener();
callMiddleLayerFunction("PSQS_hide_rabbit", {}, () => {});
cb();
});
},
......@@ -543,22 +542,22 @@ cc.Class({
playTimes: null,
jumpData: null,
getState(cb) {
this.isFirst = this.checkIsFirst(); // data.first; //this.checkIsFirst();
this.isLast = this.checkIsLast(); // data.last // this.checkIsLast();
this.playTimes = this.checkPlayTimes(); // data.playTime// this.checkPlayTimes();
this.jumpData = this.getJumpData(); //data.saveData // this.getJumpData();
cb();
return;
// this.isFirst = this.checkIsFirst(); // data.first; //this.checkIsFirst();
// this.isLast = this.checkIsLast(); // data.last // this.checkIsLast();
// this.playTimes = this.checkPlayTimes(); // data.playTime// this.checkPlayTimes();
// this.jumpData = this.getJumpData(); //data.saveData // this.getJumpData();
// cb();
// return;
console.log(" in getState 1");
callMiddleLayerFunction("PSQS_get_course_info", {}, (data) => {
console.log(" in getState 2");
console.log("PSQS_get_course_info",data.first, data.last, data.playTime, data.saveData);
this.isFirst = this.checkIsFirst(); // data.first; //this.checkIsFirst();
this.isLast = this.checkIsLast(); // data.last // this.checkIsLast();
this.playTimes = this.checkPlayTimes(); // data.playTime// this.checkPlayTimes();
this.jumpData = this.getJumpData(); //data.saveData // this.getJumpData();
this.isFirst = data.first; //this.checkIsFirst();
this.isLast = data.last // this.checkIsLast();
this.playTimes = data.playTime// this.checkPlayTimes();
this.jumpData = data.saveData // this.getJumpData();
if (this.data.isDebug) {
this.playTimes += 1;
......
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