Compare commits
No commits in common. "33f7cb39d167dfdac99d974afcb5f84c7bfb4816" and "1e3c882d7f8fe896c13c653b6163a04e1d76a3d3" have entirely different histories.
33f7cb39d1
...
1e3c882d7f
18
js/handle.js
18
js/handle.js
|
@ -163,8 +163,7 @@ function receiveMessage(event)
|
|||
// TODO 测试后 删除领舞随机
|
||||
let leaderRandomEvent = getEvent(getFirstEventKeyword(data.danmaku+randomEvent))
|
||||
let leader = {
|
||||
// uid: 0, uname: leaderInfo, text: getEvent(getFirstEventKeyword(data.danmaku+randomEvent)), event: leaderRandomEvent
|
||||
uid: 0, uname: leaderInfo, text: '', event: ''
|
||||
uid: 0, uname: leaderInfo, text: getEvent(getFirstEventKeyword(data.danmaku+randomEvent)), event: leaderRandomEvent
|
||||
}
|
||||
if (isLeader) {
|
||||
leader.uid = dm.uid
|
||||
|
@ -180,12 +179,15 @@ function receiveMessage(event)
|
|||
if(dm.is_new==1){
|
||||
peopleObj(dm.uname,dm.uid,dm.text,actionArr[actionIndex]);
|
||||
} else {
|
||||
$(`#${dm.uid} .speak`).html(dm.text);
|
||||
$(`#${dm.uid} .speak`).removeClass("dn");
|
||||
setTimeout(()=>{
|
||||
$(`#${dm.uid} .speak`).addClass("dn");
|
||||
},3000)
|
||||
peopleAction(`${dm.uid}`,dm.event);
|
||||
var userId = $('.dance-people').attr('id');
|
||||
if(dm.uid==userId){
|
||||
$(`#${userId} .speak`).html(dm.text);
|
||||
$(`#${userId} .speak`).removeClass("dn");
|
||||
setTimeout(()=>{
|
||||
$(`#${userId} .speak`).addClass("dn");
|
||||
},3000)
|
||||
peopleAction(`${userId}`,dm.event);
|
||||
}
|
||||
}
|
||||
num++;
|
||||
|
||||
|
|
Loading…
Reference in New Issue