Commit adb7d5a6 authored by 范雪寒's avatar 范雪寒

fix: length

parent adb58335
...@@ -95,12 +95,6 @@ cc.Class({ ...@@ -95,12 +95,6 @@ cc.Class({
this.bundleInfoList = bundleInfoList; this.bundleInfoList = bundleInfoList;
if (this.bundleInfoList.length < 2) {
const btnLeft = this.node.getChildByName('BtnLeft');
const btnRight = this.node.getChildByName('BtnRight');
btnLeft.active = false;
btnRight.active = false;
}
await this.asyncDelayLog('汪汪汪34'); await this.asyncDelayLog('汪汪汪34');
this.jumpToBundleByIndex(defaultBundleIdx); this.jumpToBundleByIndex(defaultBundleIdx);
...@@ -220,13 +214,6 @@ cc.Class({ ...@@ -220,13 +214,6 @@ cc.Class({
} }
this.jumpToBundleByIndex(this.currentBundleIndex + 1); this.jumpToBundleByIndex(this.currentBundleIndex + 1);
}); });
if (this.currentBundleIndex == 0) {
btnLeft.active = false;
}
if (this.currentBundleIndex == this.bundleInfoList.length - 1) {
btnRight.active = false;
}
}, },
callNativeFunction(param) { callNativeFunction(param) {
......
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