mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-11 00:55:34 +00:00
Merge commit '220ce21a4aec28adb018cf71a8f472bfd54da433' into dev
# Conflicts: # resources/assets/js/App.vue # resources/assets/js/store/actions.js
This commit is contained in:
commit
5152cee99e
@ -298,14 +298,14 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 会议事件
|
// 会议事件
|
||||||
window.__onMeetingEvent = ({act, uuid}) => {
|
window.__onMeetingEvent = ({act,uuid,meetingid}) => {
|
||||||
switch (act) {
|
switch (act) {
|
||||||
// 获取用户信息
|
// 获取用户信息
|
||||||
case "getInfo":
|
case "getInfo":
|
||||||
this.$store.dispatch("call", {
|
this.$store.dispatch("call", {
|
||||||
url: 'users/basic',
|
url: 'users/basic',
|
||||||
data: {
|
data: {
|
||||||
userid: [(uuid + "").substring(6)]
|
userid: [ (uuid+"").substring(6) ]
|
||||||
}
|
}
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
$A.eeuiAppSendMessage({
|
$A.eeuiAppSendMessage({
|
||||||
@ -322,13 +322,14 @@ export default {
|
|||||||
break;
|
break;
|
||||||
//加入成功
|
//加入成功
|
||||||
case "success":
|
case "success":
|
||||||
// 关闭添加会议窗口
|
this.$store.dispatch("closeMeetingWindow","add")
|
||||||
this.$store.dispatch("closeMeetingWindow", "add")
|
|
||||||
break;
|
break;
|
||||||
// 邀请
|
// 邀请
|
||||||
case "invent":
|
case "invent":
|
||||||
// 关闭邀请会议窗口
|
this.$store.dispatch("showMeetingWindow",{
|
||||||
this.$store.dispatch("closeMeetingWindow", "invitation")
|
type: "invitation",
|
||||||
|
meetingid: meetingid
|
||||||
|
})
|
||||||
break;
|
break;
|
||||||
//结束会议
|
//结束会议
|
||||||
case "endMeeting":
|
case "endMeeting":
|
||||||
@ -336,7 +337,7 @@ export default {
|
|||||||
break;
|
break;
|
||||||
//加入失败
|
//加入失败
|
||||||
case "error":
|
case "error":
|
||||||
this.$store.dispatch("closeMeetingWindow", "error")
|
this.$store.dispatch("closeMeetingWindow","error")
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|||||||
@ -189,18 +189,19 @@ export default {
|
|||||||
handler(val) {
|
handler(val) {
|
||||||
switch (val.type) {
|
switch (val.type) {
|
||||||
case 'add':
|
case 'add':
|
||||||
this.addShow = val.show
|
this.addShow = val.show;
|
||||||
this.loadIng = 0;
|
this.loadIng = 0;
|
||||||
break;
|
break;
|
||||||
case 'invitation':
|
case 'invitation':
|
||||||
this.invitationShow = val.show
|
this.invitationShow = val.show;
|
||||||
this.invitationLoad = 0;
|
this.invitationLoad = false;
|
||||||
|
this.invitationData.meetingid = val.meetingid;
|
||||||
break;
|
break;
|
||||||
case 'error':
|
case 'error':
|
||||||
this.addShow = val.show
|
this.addShow = val.show;
|
||||||
this.loadIng = 0;
|
this.loadIng = 0;
|
||||||
this.invitationShow = val.show
|
this.invitationShow = val.show;
|
||||||
this.invitationLoad = 0;
|
this.invitationLoad = false;
|
||||||
$A.modalError('加入会议失败');
|
$A.modalError('加入会议失败');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -266,6 +267,7 @@ export default {
|
|||||||
$A.eeuiAppSendMessage({
|
$A.eeuiAppSendMessage({
|
||||||
action: 'startMeeting',
|
action: 'startMeeting',
|
||||||
meetingParams: {
|
meetingParams: {
|
||||||
|
name: this.addData.name,
|
||||||
token: data.token,
|
token: data.token,
|
||||||
channel: data.channel,
|
channel: data.channel,
|
||||||
uuid: data.uid,
|
uuid: data.uid,
|
||||||
@ -274,6 +276,7 @@ export default {
|
|||||||
username: data.nickname,
|
username: data.nickname,
|
||||||
video: this.addData.tracks.includes("video"),
|
video: this.addData.tracks.includes("video"),
|
||||||
audio: this.addData.tracks.includes("audio"),
|
audio: this.addData.tracks.includes("audio"),
|
||||||
|
meetingid: data.meetingid
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.loadIng--;
|
this.loadIng--;
|
||||||
|
|||||||
28
resources/assets/js/store/actions.js
vendored
28
resources/assets/js/store/actions.js
vendored
@ -3403,19 +3403,33 @@ export default {
|
|||||||
|
|
||||||
|
|
||||||
/** *****************************************************************************************/
|
/** *****************************************************************************************/
|
||||||
/** ************************************* meeting *******************************************/
|
/** *************************************** meeting *********************************************/
|
||||||
/** *****************************************************************************************/
|
/** *****************************************************************************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 关闭会议窗口
|
* 关闭会议窗口
|
||||||
* @param state
|
* @param state
|
||||||
* @param type
|
* @param type
|
||||||
* @param data
|
*/
|
||||||
*/
|
|
||||||
closeMeetingWindow({state}, type) {
|
closeMeetingWindow({state}, type) {
|
||||||
state.meetingWindow = {
|
state.meetingWindow = {
|
||||||
show: false,
|
show: false,
|
||||||
type: type
|
type: type,
|
||||||
|
meetingid: 0
|
||||||
|
};
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 显示会议窗口
|
||||||
|
* @param state
|
||||||
|
* @param type
|
||||||
|
* @param meetingid
|
||||||
|
*/
|
||||||
|
showMeetingWindow({state}, {type, meetingid}) {
|
||||||
|
state.meetingWindow = {
|
||||||
|
show: true,
|
||||||
|
type: type,
|
||||||
|
meetingid: meetingid
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
1
resources/assets/js/store/state.js
vendored
1
resources/assets/js/store/state.js
vendored
@ -199,5 +199,6 @@ export default {
|
|||||||
meetingWindow: {
|
meetingWindow: {
|
||||||
show: false,
|
show: false,
|
||||||
type: "",
|
type: "",
|
||||||
|
meetingid: 0
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
Subproject commit 62195f572247d05830049ab06fa7cbddbfc70560
|
Subproject commit 7d8f452fc2f93a03b6e8ef05f62af6722b1c7514
|
||||||
Loading…
x
Reference in New Issue
Block a user