提交 29da4d9e 编写于 作者: 张磊's avatar 张磊

add id select

上级 ebb38bbc
......@@ -617,10 +617,32 @@
if (!res.data) {
return false;
}
const l = res.data.map((i) => {
let l = res.data.map((i) => {
return i.userId;
});
l = [1089725294, 1089728785];
that.memberList = [
{
accId: 'd_3651506947_uat',
avatarImageUrl: 'https://test-file.yunqueyi.com/File/doctor_default.png',
id: 1089725294,
liveUserId: 'd_3651506947_uat_1089725294',
name: '顾超',
role: 2,
status: 3,
type: 1
},
{
accId: 'd_1909506947_uat',
avatarImageUrl: 'https://test-file.yunqueyi.com/File/doctor_default.png',
id: 1089728785,
liveUserId: 'd_1909506947_uat_1089728785',
name: '陈影',
role: 1,
status: 3,
type: 1,
}
];
if (
l &&
l.length > 0 &&
......@@ -629,8 +651,8 @@
) {
that.memberList.map((i) => {
console.log('res==---', l, i, that.memberList, l.includes[i.id]);
if (l.includes[i.id]) {
console.log('res==---', l, i.id, l.includes(i.id));
if (l.includes(i.id)) {
// 在线 更新状态
that.addNewMember(i.liveUserId);
} else {
......@@ -649,7 +671,7 @@
that.memberList.length > 0) {
that.memberList.map( i => {
that.removeMember(i.liveUserId);
})
});
}
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册