Commit 9fbd2934 by libai

ft活动上线

parent d68dde45
Showing with 4 additions and 1 deletions
......@@ -72,6 +72,7 @@
<script type="text/javascript" src="https://app.ixiulive.com/static/js/socket.io.js"></script>
<script>
$(function(){
var socketOk=null
//活動
if(sessionStorage.lang!=2){
$(".en-t1").text("hot pop")
......@@ -103,6 +104,7 @@ $(function(){
socket = io.connect(_url3 + '/default', opts);
socket.on('connect', function () {
clearInterval(socketOk)
console.log("连接成功");
});
......@@ -119,7 +121,8 @@ $(function(){
});
socket.on('disconnect', function () {
setTimeout(function(){
clearInterval(socketOk)
socketOk=setInterval(function(){
getData()
},3000)
console.log("已下线!");
......
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 sign in to comment