Commit 737b1a1d by libai

测试

parent b7aa8c7f
Showing with 37 additions and 9 deletions
......@@ -3030,6 +3030,7 @@ $(function(){
if(list.content.type==1){
var html=[];
if(list.content.isrobot==true&&list.content.nickname.indexOf("遊客")==-1)return;
//vip用戶
if(list.content.lv>0&&list.content.vipInfo.isVip==true){
if(list.content.lv>30&&list.content.lv<41)var vipImgNum=2
if(list.content.lv>40&&list.content.lv<46)var vipImgNum=3
......@@ -3037,22 +3038,48 @@ $(function(){
if(list.content.lv>50&&list.content.lv<52)var vipImgNum=5
if(list.content.lv>=52)var vipImgNum=5
html+='<div class="system-msg"><span data-type='+list.content.uid+' class="user-name user-name-color'+vipImgNum+'"><img class="user-level-icon" src="https://app.ixiulive.com/static/vip/'+list.content.lv+'.png" alt="">'+list.content.nickname+'</span>'+langRoom[sessionStorage.lang].roomJsTxt22+''+list.content.country+'</div>'
$(".user-msg-big").prepend(html);
$(".user-msg-name,.user-name").unbind("click").on("click",function(){
var _self=$(this)
if(_self.attr("data-type")<0){
return;
}
cardUp(_self.attr("data-type"))
})
}
//儲值用戶
else if(list.content.lv>0){
html+='<div class="system-msg"><span data-type='+list.content.uid+' class="user-name">'+list.content.nickname+'</span>'+langRoom[sessionStorage.lang].roomJsTxt22+''+list.content.country+'</div>'
$(".user-msg-big").prepend(html);
$(".user-msg-name,.user-name").unbind("click").on("click",function(){
var _self=$(this)
if(_self.attr("data-type")<0){
return;
}
cardUp(_self.attr("data-type"))
})
}
//一般用戶
else{
if(Math.random()>0.5||list.content.uid==localStorage.uid)html+='<div class="system-msg"><span data-type='+list.content.uid+' class="user-name">'+list.content.nickname+'</span>'+langRoom[sessionStorage.lang].roomJsTxt22+''+list.content.country+'</div>'
if(Math.random()>0.9||list.content.uid==localStorage.uid){
html+='<div class="system-msg"><span data-type='+list.content.uid+' class="user-name">'+list.content.nickname+'</span>'+langRoom[sessionStorage.lang].roomJsTxt22+''+list.content.country+'</div>'
$(".user-msg-big").prepend(html);
$(".user-msg-name,.user-name").unbind("click").on("click",function(){
var _self=$(this)
if(_self.attr("data-type")<0){
return;
}
cardUp(_self.attr("data-type"))
})
}
}
$(".user-msg-big").prepend(html);
if(localStorage.uid==list.content.uid){
myMsg=true
}
$(".user-msg-name,.user-name").unbind("click").on("click",function(){
var _self=$(this)
if(_self.attr("data-type")<0){
return;
}
cardUp(_self.attr("data-type"))
})
// var richLv=0
// //vip開通特效
// if(list.content.vipInfo.isVip==true){
......@@ -3197,6 +3224,7 @@ $(function(){
}
var ua = window.navigator.userAgent.toLowerCase();
if (/iphone|ipad|ipod/.test(ua)) {
if(myMsg){
$(".user-msg-box").scrollTop(0)
// return;
......
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