zhibo he bug
This commit is contained in:
21
dist/js/common.js
vendored
21
dist/js/common.js
vendored
@@ -157,9 +157,9 @@ function setBtnClickFuc() {
|
||||
$('#logout-btn').on('click', () => {
|
||||
// window.location.hash='edit'
|
||||
// console.log(window.location.hash)
|
||||
var x;
|
||||
var r=confirm("您确认关闭吗?");
|
||||
if (r==true){
|
||||
// var x;
|
||||
// var r=confirm("您确认关闭吗?");
|
||||
// if (r==true){
|
||||
leave();
|
||||
$('#room-root').hide();
|
||||
$('#login-root').show();
|
||||
@@ -188,6 +188,9 @@ function setBtnClickFuc() {
|
||||
},
|
||||
success(){
|
||||
res(1)
|
||||
},
|
||||
error(){
|
||||
res(2)
|
||||
}
|
||||
})
|
||||
})
|
||||
@@ -204,10 +207,10 @@ function setBtnClickFuc() {
|
||||
window.parent.location.href="/regime/livedetail?id=" + window.liveid;
|
||||
})
|
||||
|
||||
}
|
||||
else{
|
||||
x="你按下了\"取消\"按钮!";
|
||||
}
|
||||
// }
|
||||
// else{
|
||||
// x="你按下了\"取消\"按钮!";
|
||||
// }
|
||||
// leave();
|
||||
// $('#room-root').hide();
|
||||
// $('#login-root').show();
|
||||
@@ -333,11 +336,14 @@ function addMemberView(id) {
|
||||
const src = $(el.target).attr("src") == "img/camera-on.png" ? 1 : 0
|
||||
console.log("video" + id);
|
||||
sendsx(id,src)
|
||||
window.message(src == 1 ? "关闭摄像头成功" : "解禁摄像头成功")
|
||||
|
||||
})
|
||||
memberElm.find("#mic-btn").click((el)=>{
|
||||
const src = $(el.target).attr("src") == "img/mic-on.png" ? 1 : 0
|
||||
console.log("mic" + id);
|
||||
sendjinyan(id,src)
|
||||
window.message(src == 1 ? "关闭麦克风成功" : "解禁麦克风成功")
|
||||
})
|
||||
memberElm.find("#video-btn").removeAttr("id")
|
||||
memberElm.find("#mic-btn").removeAttr("id")
|
||||
@@ -345,6 +351,7 @@ function addMemberView(id) {
|
||||
console.log("移除")
|
||||
getname(id).then((res)=>{
|
||||
$("#" + id).find('div.member-id').html(res);
|
||||
|
||||
// console.log(.length)
|
||||
})
|
||||
memberElm.appendTo($('#member-list'));
|
||||
|
||||
Reference in New Issue
Block a user