Commit 0f32ea83 authored by 华国豪's avatar 华国豪 🙄

1

parent ba7a4656
...@@ -161,11 +161,11 @@ export default { ...@@ -161,11 +161,11 @@ export default {
}) })
} }
this.connectServer() this.connectServer()
let $this = this
this.proxy.on("getChangeMenu", data => { this.proxy.on("getChangeMenu", data => {
console.log(data.data) console.log(data.data)
$this.laoshuData = JSON.parse(data.data) this.laoshuData = JSON.parse(data.data)
}) })
this.initData()
}, },
methods: { methods: {
connectServer() { connectServer() {
...@@ -182,6 +182,11 @@ export default { ...@@ -182,6 +182,11 @@ export default {
}) })
.fail(data => {}); .fail(data => {});
}, },
initData: function () {
this.proxy.invoke("SendBarrage", 'Mouse').done(msg => {
console.log(msg)
});
},
StartGame: function () { StartGame: function () {
this.showCount = true this.showCount = true
this.showPeople = false this.showPeople = false
...@@ -210,7 +215,7 @@ export default { ...@@ -210,7 +215,7 @@ export default {
this.mouseDongData[this.laoshuData[i].location - 1].speed = 600 this.mouseDongData[this.laoshuData[i].location - 1].speed = 600
setTimeout(()=>{ setTimeout(()=>{
console.log(this.laoshuData[i].interval) console.log(this.laoshuData[i].interval)
}, ) }, 10)
} }
}, },
// 30秒倒计时 // 30秒倒计时
......
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