Commit f94a7aa3 by libai

测试

parent cefb68ce
Showing with 10 additions and 34 deletions
...@@ -46,7 +46,6 @@ ...@@ -46,7 +46,6 @@
.layui-layer-shade { .layui-layer-shade {
opacity: 0.7 !important; opacity: 0.7 !important;
} }
.yourclass5 { .yourclass5 {
border-radius: 0rem !important; border-radius: 0rem !important;
background: rgba(0, 0, 0, 0) !important; background: rgba(0, 0, 0, 0) !important;
...@@ -409,6 +408,7 @@ ...@@ -409,6 +408,7 @@
<!-- <link rel="manifest" href="manifest.webmanifest" /> --> <!-- <link rel="manifest" href="manifest.webmanifest" /> -->
<script> <script>
$(function(){ $(function(){
console.log(window.navigator.userAgent.toLowerCase())
if(sessionStorage.pmt==12266||sessionStorage.pmt==12267){ if(sessionStorage.pmt==12266||sessionStorage.pmt==12267){
$(".top-box-ul li").eq(1).hide() $(".top-box-ul li").eq(1).hide()
} }
......
...@@ -1537,13 +1537,16 @@ $(function(){ ...@@ -1537,13 +1537,16 @@ $(function(){
var sendClock=null var sendClock=null
var buyCardOk=false var buyCardOk=false
function TicketRoom(chId,rId){ function TicketRoom(chId,rId){
if(localStorage.token==undefined||localStorage.token=="undefined")var mytoken='footseen'
else var mytoken=localStorage.token
$.ajax({ $.ajax({
url:$ip+'ticketRoom/getTicketRoomInfo', url:$ip+'ticketRoom/getTicketRoomInfo',
data:{ data:{
roomId:sessionStorage.roomId, roomId:sessionStorage.roomId,
channelId:chId, channelId:chId,
roundId:rId, roundId:rId,
pageID:localStorage.canvasCode pageID:localStorage.canvasCode,
token:mytoken
}, },
success:function(data){ success:function(data){
// console.log('获取TicketRoom信息',data) // console.log('获取TicketRoom信息',data)
...@@ -2887,7 +2890,6 @@ $(function(){ ...@@ -2887,7 +2890,6 @@ $(function(){
var list=JSON.parse(obj.content) var list=JSON.parse(obj.content)
if(list.content.status==3){ if(list.content.status==3){
if(TicketStage!=list.content.status&&list.content.isPreSaleTimeEnd==false){ if(TicketStage!=list.content.status&&list.content.isPreSaleTimeEnd==false){
;
clearInterval(ticketTerval) clearInterval(ticketTerval)
turnNumber(1) turnNumber(1)
}else{ }else{
...@@ -2951,10 +2953,6 @@ $(function(){ ...@@ -2951,10 +2953,6 @@ $(function(){
$('.gift'+list.content.uuid+'').attr("data-type","5000") $('.gift'+list.content.uuid+'').attr("data-type","5000")
return; return;
} }
// for(var i=0;i<$(".room-gift-box").children().length;i++){
// // console.log(111)
// }
} }
giftGoId++ giftGoId++
var html=[]; var html=[];
...@@ -2983,10 +2981,6 @@ $(function(){ ...@@ -2983,10 +2981,6 @@ $(function(){
$('.gift'+list.content.uuid+'').attr("data-type","5000") $('.gift'+list.content.uuid+'').attr("data-type","5000")
return; return;
} }
// for(var i=0;i<$(".room-gift-box").children().length;i++){
// // console.log(111)
// }
} }
giftGoId++ giftGoId++
var html=[]; var html=[];
...@@ -3066,20 +3060,9 @@ $(function(){ ...@@ -3066,20 +3060,9 @@ $(function(){
} }
} }
if(localStorage.uid==list.content.uid){ if(localStorage.uid==list.content.uid){
myMsg=true myMsg=true
} }
// var richLv=0
// //vip開通特效
// if(list.content.vipInfo.isVip==true){
// }else{
// }
} }
//发言 //发言
if(list.content.type==2){ if(list.content.type==2){
...@@ -3089,7 +3072,6 @@ $(function(){ ...@@ -3089,7 +3072,6 @@ $(function(){
html+='<div class="user-msg">'; html+='<div class="user-msg">';
if(list.content.vip_lv>0&&list.content.vipInfo.isVip==true){ if(list.content.vip_lv>0&&list.content.vipInfo.isVip==true){
if(list.content.vip_lv>30&&list.content.vip_lv<41)var vipImgNum=2 if(list.content.vip_lv>30&&list.content.vip_lv<41)var vipImgNum=2
if(list.content.vip_lv>40&&list.content.vip_lv<46)var vipImgNum=3 if(list.content.vip_lv>40&&list.content.vip_lv<46)var vipImgNum=3
if(list.content.vip_lv>45&&list.content.vip_lv<51)var vipImgNum=4 if(list.content.vip_lv>45&&list.content.vip_lv<51)var vipImgNum=4
...@@ -3216,11 +3198,8 @@ $(function(){ ...@@ -3216,11 +3198,8 @@ $(function(){
} }
var ua = window.navigator.userAgent.toLowerCase(); var ua = window.navigator.userAgent.toLowerCase();
if (/iphone|ipad|ipod/.test(ua)) { if (/iphone|ipad|ipod/.test(ua)) {
if(myMsg) $(".user-msg-box").scrollTop(0)
if(myMsg){
$(".user-msg-box").scrollTop(0)
// return;
}
if(Math.abs($(".user-msg-box").scrollTop())<130){ if(Math.abs($(".user-msg-box").scrollTop())<130){
$(".user-msg-box").scrollTop(0) $(".user-msg-box").scrollTop(0)
}else{ }else{
...@@ -3228,10 +3207,8 @@ $(function(){ ...@@ -3228,10 +3207,8 @@ $(function(){
} }
} }
else if (/android/.test(ua)) { else if (/android/.test(ua)) {
if(myMsg){ if(myMsg)$(".user-msg-box").scrollTop(Math.abs($(".user-msg-box").height()-$(".user-msg-big").height()))
$(".user-msg-box").scrollTop(Math.abs($(".user-msg-box").height()-$(".user-msg-big").height()))
// return;
}
if($(".user-msg-big").height()-(Math.abs($(".user-msg-box").scrollTop())+$(".user-msg-box").height())<80){ if($(".user-msg-big").height()-(Math.abs($(".user-msg-box").scrollTop())+$(".user-msg-box").height())<80){
$(".user-msg-box").scrollTop(Math.abs($(".user-msg-box").height()-$(".user-msg-big").height())) $(".user-msg-box").scrollTop(Math.abs($(".user-msg-box").height()-$(".user-msg-big").height()))
}else{ }else{
...@@ -3265,7 +3242,6 @@ $(function(){ ...@@ -3265,7 +3242,6 @@ $(function(){
ReconnectionT=setInterval(function() { ReconnectionT=setInterval(function() {
WebSocketGo() WebSocketGo()
Reconnection++ Reconnection++
}, 3000); }, 3000);
}; };
......
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