Commit eaa4f7da authored by 李维's avatar 李维

测试

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