Commit 2e95503b authored by liujiangnan's avatar liujiangnan

feat

parent 2427e59c
This diff is collapsed.
...@@ -118,7 +118,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -118,7 +118,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 打开文件夹 // 打开文件夹
this.pushRouter(row); this.pushRouter(row);
showLoading(); showLoading();
await this.loadData(row.id); this.rows = await this.loadData(row.id);
await this.drawPage(); await this.drawPage();
cc.find(`Canvas/lefttop/bg_title/title`).getComponent(cc.Label).string = row.name; cc.find(`Canvas/lefttop/bg_title/title`).getComponent(cc.Label).string = row.name;
cc.find(`Canvas/lefttop`).active = true; cc.find(`Canvas/lefttop`).active = true;
...@@ -140,11 +140,11 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -140,11 +140,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
initListener() { initListener() {
const back = cc.find(`Canvas/back`); const back = cc.find(`Canvas/lefttop/back`);
buttonOnClick(back, async () => { buttonOnClick(back, async () => {
showLoading(); showLoading();
const item = this.popRouter(); const item = this.popRouter();
await this.loadData(item.pid); this.rows = await this.loadData(item.pid);
await this.drawPage(); await this.drawPage();
hideLoading(); hideLoading();
......
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