Commit a16b7656 by libai

测试

parent f333479a
...@@ -314,7 +314,6 @@ $(function(){ ...@@ -314,7 +314,6 @@ $(function(){
}else{ }else{
$(".side-nav").hide() $(".side-nav").hide()
} }
}) })
$(".more-live").on("click",function(){ $(".more-live").on("click",function(){
// $(".neck-nav-ul li").removeClass("neck-nav-li-click") // $(".neck-nav-ul li").removeClass("neck-nav-li-click")
......
...@@ -2439,7 +2439,8 @@ $(function () { ...@@ -2439,7 +2439,8 @@ $(function () {
function WebSocketGo() { function WebSocketGo() {
if ("WebSocket" in window) { if ("WebSocket" in window) {
// 打开一个 web socket // 打开一个 web socket
var url = ""+$ws+"ws?uid=" + localStorage.uid + "&token="+localStorage.token+"&roomid=" + sessionStorage.roomId + "&connType=1"; if(localStorage.token==undefined||localStorage.token=='undefined')var url = ""+$ws+"ws?uid=" + localStorage.uid + "&token="+localStorage.canvasCode+"&roomid=" + sessionStorage.roomId + "&connType=2";
else var url = ""+$ws+"ws?uid=" + localStorage.uid + "&token="+localStorage.token+"&roomid=" + sessionStorage.roomId + "&connType=1";
ws = new WebSocket(url); ws = new WebSocket(url);
ws.onopen = function () { ws.onopen = function () {
typeof tHeart!='undefined'&&typeof tHeart!='null'?clearInterval(tHeart):tHeart=null; typeof tHeart!='undefined'&&typeof tHeart!='null'?clearInterval(tHeart):tHeart=null;
......
...@@ -710,32 +710,37 @@ $(function(){ ...@@ -710,32 +710,37 @@ $(function(){
}) })
</script> </script>
<script> <script>
// $.ajax({
// url:$ip+'frontPage/queryTopics', //17
// data:{ // function addUrl(e){
// pageID:localStorage.canvasCode, // $.ajax({
// pageNum:13, // url:$ip+'frontPage/queryTopics',
// type:1, // data:{
// pageSize:500, // pageID:localStorage.canvasCode,
// language:2, // pageNum:e,
// tag:'', // type:1,
// duration:-1, // pageSize:500,
// sort:-1, // language:2,
// period:-1, // tag:'',
// // topicId:localStorage.out // duration:-1,
// }, // sort:-1,
// type: 'post', // period:-1,
// success:function(data){ // // topicId:localStorage.out
// console.log('获取帖子',data) // },
// var html=[]; // type: 'post',
// for(var i=0;i<data.dataList.length;i++){ // success:function(data){
// var list=data.dataList[i]; // console.log('获取帖子',data)
// // var videoList=JSON.parse(list.content) // var html=[];
// html+='https://www.footseen.xyz/room/videoRoom.html?topicId='+list.topicId+'&mark=1<br>' // for(var i=0;i<data.dataList.length;i++){
// } // var list=data.dataList[i];
// $(".more-url").html(html); // // var videoList=JSON.parse(list.content)
// } // html+='https://www.footseen.xyz/room/videoRoom.html?topicId='+list.topicId+'&mark=1<br>'
// }) // }
// $(".more-url").append(html);
// }
// })
// }
</script> </script>
</html> </html>
\ No newline at end of file
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