Commit 27bc0877 authored by limingzhe's avatar limingzhe

fix: debug

parent 9b218497
No preview for this file type
...@@ -35,6 +35,10 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -35,6 +35,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
onLoadEnd() { onLoadEnd() {
// TODO 加载完成后的逻辑写在这里, 下面的代码仅供参考 // TODO 加载完成后的逻辑写在这里, 下面的代码仅供参考
console.log("onLoadEnd ...");
return;
this.initData(); this.initData();
this.initView(); this.initView();
this.initEvent(); this.initEvent();
...@@ -93,6 +97,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -93,6 +97,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
private page: number; private page: number;
initData() { initData() {
this.log(`initData:${JSON.stringify(this.data)}`) this.log(`initData:${JSON.stringify(this.data)}`)
this.autoPlay = 0; this.autoPlay = 0;
this.page = 0; this.page = 0;
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
"premultiplyAlpha": false, "premultiplyAlpha": false,
"genMipmaps": false, "genMipmaps": false,
"packable": true, "packable": true,
"width": 244, "width": 139,
"height": 174, "height": 97,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"btn_return": { "btn_return": {
......
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