master
parent
b00bf353b9
commit
3911ff2af4
|
@ -152,8 +152,8 @@ function peopleObj(name,uid,say,action,active_time, is_admin, decoration){
|
|||
}
|
||||
|
||||
// 添加翅膀
|
||||
if (decoration.indexOf('people-wing') != -1) {
|
||||
decorationWing = 'people-wing'
|
||||
if (decoration.indexOf('people-block') != -1) {
|
||||
decorationWing = 'people-block'
|
||||
// console.log(decorationWing, '我的翅膀')
|
||||
}
|
||||
}
|
||||
|
@ -171,7 +171,7 @@ function peopleObj(name,uid,say,action,active_time, is_admin, decoration){
|
|||
<div class="stick stick-swing ${decorationStick} ${bigStick} ${comment.ying_guang}"></div>
|
||||
<div class="people-name ">${comment.name}</div>
|
||||
</div>
|
||||
<div class="people-wing "> </div>
|
||||
<div class="people-wing ${decorationWing}"> </div>
|
||||
</div>
|
||||
</div>`
|
||||
});//如果是舰长需要加上stick-swing-big-tow,充值用户加上stick-christmas,同时去掉stick-swing-big-tow
|
||||
|
|
|
@ -210,8 +210,9 @@ function delExpireDiv() {
|
|||
}
|
||||
|
||||
let timestamp = parseInt(new Date().getTime()/1000)
|
||||
let delTime = timestamp - speakExpireTime
|
||||
let delList = $(".dance-people").filter(function() {
|
||||
return $(this).attr("data-time") < timestamp - speakExpireTime;
|
||||
return $(this).attr("data-time") < delTime
|
||||
})
|
||||
// console.log(delList.length, speakExpireTime+'秒未说话人数')
|
||||
delList.remove();
|
||||
|
|
Loading…
Reference in New Issue