Commit 40e76ee0 authored by limingzhe's avatar limingzhe

fix: debug

parent 305f5729
...@@ -355,6 +355,13 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -355,6 +355,13 @@ export abstract class middleLayerBase extends cc.Component {
} }
// const data = JSON.parse(datastr); // const data = JSON.parse(datastr);
if (typeof data == 'object') {
console.log('data.str 1: ', JSON.stringify(data));
} else {
console.log('data.str 2: ', data);
}
if (data.rows && data.rows.length > 0) { if (data.rows && data.rows.length > 0) {
this.courses = data.rows; this.courses = data.rows;
...@@ -364,6 +371,7 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -364,6 +371,7 @@ export abstract class middleLayerBase extends cc.Component {
this.courseIndex = data.index || 0; this.courseIndex = data.index || 0;
} }
this.courseItem = data.rows[this.courseIndex]; this.courseItem = data.rows[this.courseIndex];
} else { } else {
this.hideWaitingLetters(); this.hideWaitingLetters();
this.showTips(`内容还未制作`); this.showTips(`内容还未制作`);
......
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