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