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

1

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