Commit 34f183aa by 李伟康

commit 提交

1 parent 0b2379e7
...@@ -258,7 +258,6 @@ export default { ...@@ -258,7 +258,6 @@ export default {
randomize() { randomize() {
const maxX = uni.getSystemInfoSync().windowWidth - 300 const maxX = uni.getSystemInfoSync().windowWidth - 300
const maxY = uni.getSystemInfoSync().windowHeight - 100 const maxY = uni.getSystemInfoSync().windowHeight - 100
console.log(maxX)
this.x = Math.floor(Math.random() * maxX); this.x = Math.floor(Math.random() * maxX);
this.y = Math.floor(Math.random() * maxY); this.y = Math.floor(Math.random() * maxY);
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!