Commit 0a2f9770 by libai

ft活动上线

parent f45e0aaa
...@@ -60,12 +60,12 @@ $(function(){ ...@@ -60,12 +60,12 @@ $(function(){
$(".en-t3").html("rank") $(".en-t3").html("rank")
} }
setTimeout(function() { // setTimeout(function() {
wsTimer=setInterval(function(){ // wsTimer=setInterval(function(){
view() // view()
},60000) // },60000)
view() // view()
}, 2000); // }, 2000);
function view(){ function view(){
$.ajax({ $.ajax({
url:$ip+'/actRaisingBeautifulGril/getRoomPartData.html', url:$ip+'/actRaisingBeautifulGril/getRoomPartData.html',
...@@ -86,7 +86,7 @@ $(function(){ ...@@ -86,7 +86,7 @@ $(function(){
} }
}) })
} }
// getData() getData()
$(".room-bg1").on("click",function(){ $(".room-bg1").on("click",function(){
var obj = { var obj = {
"cid": 12, "cid": 12,
...@@ -102,6 +102,7 @@ $(function(){ ...@@ -102,6 +102,7 @@ $(function(){
}) })
function getData(roomid) { function getData(roomid) {
var opts = { var opts = {
reconnectionDelay: 5000,
query: { query: {
'uid': sessionStorage.uid, 'uid': sessionStorage.uid,
'token': sessionStorage.token, 'token': sessionStorage.token,
......
...@@ -52,12 +52,12 @@ $(function(){ ...@@ -52,12 +52,12 @@ $(function(){
$(".en-t2").html("PROG") $(".en-t2").html("PROG")
$(".en-t3").html("rank") $(".en-t3").html("rank")
} }
setTimeout(function() { // setTimeout(function() {
RoomView() // RoomView()
wsTimer=setInterval(function(){ // wsTimer=setInterval(function(){
RoomView() // RoomView()
},60000) // },60000)
}, 2000); // }, 2000);
function RoomView(){ function RoomView(){
$.ajax({ $.ajax({
url:$ip+'/actRaisingBeautifulGril/getRoomPartData.html', url:$ip+'/actRaisingBeautifulGril/getRoomPartData.html',
...@@ -78,7 +78,7 @@ $(function(){ ...@@ -78,7 +78,7 @@ $(function(){
}) })
} }
// getData() getData()
setTimeout(function(){ setTimeout(function(){
$.ajax({ $.ajax({
url:$ip+'/actRaisingBeautifulGril/sustainLogin.html', url:$ip+'/actRaisingBeautifulGril/sustainLogin.html',
...@@ -123,6 +123,7 @@ $(function(){ ...@@ -123,6 +123,7 @@ $(function(){
}) })
function getData(roomid) { function getData(roomid) {
var opts = { var opts = {
reconnectionDelay: 5000,
query: { query: {
'uid': sessionStorage.uid, 'uid': sessionStorage.uid,
'token': sessionStorage.token, 'token': sessionStorage.token,
......
...@@ -87,12 +87,12 @@ $(function(){ ...@@ -87,12 +87,12 @@ $(function(){
$(".en-t3").html("rank") $(".en-t3").html("rank")
} }
setTimeout(function() { // setTimeout(function() {
RoomView() // RoomView()
wsTimer=setInterval(function(){ // wsTimer=setInterval(function(){
RoomView() // RoomView()
},60000) // },60000)
}, 2000); // }, 2000);
function RoomView(){ function RoomView(){
$.ajax({ $.ajax({
url:$ip+'/actRaisingBeautifulGril/getRoomPartData.html', url:$ip+'/actRaisingBeautifulGril/getRoomPartData.html',
...@@ -113,10 +113,11 @@ $(function(){ ...@@ -113,10 +113,11 @@ $(function(){
} }
}) })
} }
// getData() getData()
function getData() { function getData() {
var opts = { var opts = {
reconnectionDelay: 5000,
query: { query: {
'uid': sessionStorage.uid, 'uid': sessionStorage.uid,
'token': sessionStorage.token, 'token': sessionStorage.token,
......
...@@ -84,12 +84,12 @@ $(function(){ ...@@ -84,12 +84,12 @@ $(function(){
$(".en-t2").html("PROG") $(".en-t2").html("PROG")
$(".en-t3").html("rank") $(".en-t3").html("rank")
} }
setTimeout(function() { // setTimeout(function() {
RoomView() // RoomView()
wsTimer=setInterval(function(){ // wsTimer=setInterval(function(){
RoomView() // RoomView()
},60000) // },60000)
}, 2000); // }, 2000);
function RoomView(){ function RoomView(){
$.ajax({ $.ajax({
url:$ip+'/actRaisingBeautifulGril/getRoomPartData.html', url:$ip+'/actRaisingBeautifulGril/getRoomPartData.html',
...@@ -110,7 +110,7 @@ $(function(){ ...@@ -110,7 +110,7 @@ $(function(){
} }
}) })
} }
// getData() getData()
$(".act-room-bg1").on("click",function(){ $(".act-room-bg1").on("click",function(){
var obj = { var obj = {
"cid": 12, "cid": 12,
...@@ -126,6 +126,7 @@ $(function(){ ...@@ -126,6 +126,7 @@ $(function(){
}) })
function getData() { function getData() {
var opts = { var opts = {
reconnectionDelay: 5000,
query: { query: {
'uid': sessionStorage.uid, 'uid': sessionStorage.uid,
'token': sessionStorage.token, 'token': sessionStorage.token,
......
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