Commit 52ebafda authored by jeff's avatar jeff

修改布局

parent 5579fc40
This diff is collapsed.
...@@ -77,7 +77,7 @@ cc.Class({ ...@@ -77,7 +77,7 @@ cc.Class({
getData((data) => { getData((data) => {
console.log('data:', data); console.log('data:', data);
this.data = data.length ? data : this.getDefaultData(); this.data = (data && data.length) ? data : this.getDefaultData();
this.data = JSON.parse(JSON.stringify(this.data)) this.data = JSON.parse(JSON.stringify(this.data))
this.preloadItem() this.preloadItem()
}) })
...@@ -156,6 +156,7 @@ cc.Class({ ...@@ -156,6 +156,7 @@ cc.Class({
initBg() { initBg() {
const bgNode = cc.find('Canvas/bg'); const bgNode = cc.find('Canvas/bg');
bgNode.scale = this._mapScaleMax; bgNode.scale = this._mapScaleMax;
// cc.find('Canvas/bottomPart').scale = this._mapScaleMin
}, },
initPic() { initPic() {
...@@ -260,7 +261,7 @@ cc.Class({ ...@@ -260,7 +261,7 @@ cc.Class({
}) })
.start(); .start();
}, },
stopAudio(){ stopAudio() {
cc.systemEvent.emit('stopMusic') cc.systemEvent.emit('stopMusic')
}, },
......
{ {
"last-module-event-record-time": 1600677246969, "last-module-event-record-time": 1620757263933,
"migrate-history": [ "migrate-history": [
"cloud-function" "cloud-function"
] ]
......
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