Browse Source

服务人数

master
luyisha 3 years ago
parent
commit
de517e0968
  1. 18
      src/App.vue

18
src/App.vue

@ -59,6 +59,24 @@ export default {
const seconds = ('0' + this.date.getSeconds()).slice(-2); const seconds = ('0' + this.date.getSeconds()).slice(-2);
this.curtime = `${hours}:${minutes}:${seconds}` this.curtime = `${hours}:${minutes}:${seconds}`
this.nowtime = `${year}.${month}.${day} ` + cweeks[wday]; this.nowtime = `${year}.${month}.${day} ` + cweeks[wday];
//
let that = this;
let ws = new WebSocket(publicConfig.WS_URL_ZL);
ws.onopen = function() {};
ws.onclose = function(event) {
console.log('WebSocket连接已关闭');
};
ws.onmessage = (e)=> {
var jstr = JSON.parse(e.data)
if(!jstr){
return;
}
//
that.sumYear_num = jstr.allGroupNum.data.year.noRepeatInNum;
};
}, },
updated(){}, updated(){},
mounted() { mounted() {

Loading…
Cancel
Save