Commit 68799f8c authored by limingzhe's avatar limingzhe

fix: 检测是否有下一页

parent c70a62a7
...@@ -389,6 +389,14 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -389,6 +389,14 @@ export abstract class middleLayerBase extends cc.Component {
this.loadPageBundle(); this.loadPageBundle();
} }
hasNextPage() {
if (!this.courses) {
return false;
}
return this.courseIndex < this.courses.length - 1;
}
showTips(str: string) { showTips(str: string) {
const tipsNode = new cc.Node(); const tipsNode = new cc.Node();
tipsNode.parent = cc.find('Canvas'); tipsNode.parent = cc.find('Canvas');
......
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