Commit 3b53d0a1 authored by 华国豪's avatar 华国豪 🙄

socket 端口号修改为5002

parent 4ae81766
...@@ -194,7 +194,7 @@ export default { ...@@ -194,7 +194,7 @@ export default {
left: 40, left: 40,
right: 10, right: 10,
top: '40px', top: '40px',
height: '150px' height: '150px',
}, { }, {
left: 40, left: 40,
right: 10, right: 10,
......
...@@ -424,7 +424,8 @@ export default { ...@@ -424,7 +424,8 @@ export default {
ToDayClientLoginNum: 0, ToDayClientLoginNum: 0,
CityHot: [], CityHot: [],
ToDayClientLoginList: [] ToDayClientLoginList: []
} },
ChangeBoard: null
} }
},mounted() { },mounted() {
let Height = window.innerHeight let Height = window.innerHeight
...@@ -434,7 +435,7 @@ export default { ...@@ -434,7 +435,7 @@ export default {
setTimeout(() => { setTimeout(() => {
this.connec(); this.connec();
}, 1000); }, 1000);
setTimeout(() => { this.ChangeBoard = setTimeout(() => {
this.exChangeBoard(); this.exChangeBoard();
}, 300000); }, 300000);
this.getLoginHot() this.getLoginHot()
...@@ -523,6 +524,9 @@ export default { ...@@ -523,6 +524,9 @@ export default {
getIntegerNum(num,n){ getIntegerNum(num,n){
return num.toFixed(n); return num.toFixed(n);
} }
},beforeDestroy(){
clearInterval(this.ChangeBoard);
this.ChangeBoard = null;
} }
} }
</script> </script>
...@@ -424,6 +424,7 @@ export default { ...@@ -424,6 +424,7 @@ export default {
centerMpShow: true, centerMpShow: true,
baiduMapData: [], baiduMapData: [],
newBaiduArr: [], newBaiduArr: [],
ChangeBoard: null
}; };
}, },
mounted() { mounted() {
...@@ -434,7 +435,7 @@ export default { ...@@ -434,7 +435,7 @@ export default {
setTimeout(() => { setTimeout(() => {
this.connec(); this.connec();
}, 1000); }, 1000);
setTimeout(() => { this.ChangeBoard = setTimeout(() => {
this.exChangeBoard(); this.exChangeBoard();
}, 300000); }, 300000);
let _this = this let _this = this
...@@ -654,6 +655,9 @@ export default { ...@@ -654,6 +655,9 @@ export default {
} }
},err => {}); },err => {});
}, },
},beforeDestroy(){
clearInterval(this.ChangeBoard);
this.ChangeBoard = null;
} }
}; };
</script> </script>
\ No newline at end of file
...@@ -235,7 +235,7 @@ export default { ...@@ -235,7 +235,7 @@ export default {
videoErr: function (){ videoErr: function (){
this.movieShow = false this.movieShow = false
this.movieTime = 0 this.movieTime = 0
this.fiveMinutes = 99999 this.fiveMinutes = 9999999
}, },
getMovieTimmer: function () { getMovieTimmer: function () {
if (this.movieTime < this.fiveMinutes) { if (this.movieTime < this.fiveMinutes) {
...@@ -270,7 +270,7 @@ export default { ...@@ -270,7 +270,7 @@ export default {
}, },
connec(){ connec(){
let _this=this let _this=this
let url = 'http://47.96.23.199:5000/data_server' let url = 'http://47.96.23.199:5002/data_server'
// let url = 'http://192.168.2.215:5000/data_server' // let url = 'http://192.168.2.215:5000/data_server'
let userInfo = this.getLocalStorage() let userInfo = this.getLocalStorage()
// if (userInfo) { // if (userInfo) {
...@@ -297,7 +297,7 @@ export default { ...@@ -297,7 +297,7 @@ export default {
}); });
//测试 //测试
this.socket.on('server_response', function (msg) { this.socket.on('server_response', function (msg) {
// console.log(msg) console.log(msg)
}); });
//收客数 //收客数
this.socket.on('guest_num', function (msg) { this.socket.on('guest_num', function (msg) {
...@@ -342,7 +342,7 @@ export default { ...@@ -342,7 +342,7 @@ export default {
init(){ init(){
// this.apipost('') // this.apipost('')
//let url='http://dataapi.oytour.com/api/user/get_init_data' //let url='http://dataapi.oytour.com/api/user/get_init_data'
let url='http://47.96.23.199:5000/api/user/get_init_data' let url='http://47.96.23.199:5002/api/user/get_init_data'
let msg={ let msg={
tdsourcetag:'s_pcqq_aiomsg' tdsourcetag:'s_pcqq_aiomsg'
} }
......
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