Commit 52ebafda authored by jeff's avatar jeff

修改布局

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