|
@@ -1767,7 +1767,8 @@
|
|
|
}
|
|
|
).then(res => {
|
|
|
this.imConnect = res
|
|
|
- console.log(res,'加入教室成功')
|
|
|
+ console.log(res, '加入教室成功')
|
|
|
+ this.$Message.success('通讯连接已建立')
|
|
|
this.imConnectinfo(this,res.access_token,res.channel_url)
|
|
|
}).catch(res => {
|
|
|
console.log(res,'失败原因')
|
|
@@ -1839,9 +1840,10 @@
|
|
|
let channelapi = this.imConnect.channel_api + '/messages'
|
|
|
let classnum = localStorage.getItem('classNum')
|
|
|
let time = Math.floor(Date.now())
|
|
|
- //学生信息
|
|
|
+ //学生加入教室一系列操作
|
|
|
var messageText = {}
|
|
|
if (messages.action === "Announce.Ask") {
|
|
|
+ //加入教室返回相应课程相关信息
|
|
|
messageText = {
|
|
|
"payload": {
|
|
|
"announceURL": "",
|
|
@@ -1879,6 +1881,7 @@
|
|
|
"waitReturn": false
|
|
|
}
|
|
|
} else if (messages.action === "MemberBinding") {
|
|
|
+ //绑定request(座位号及相关学生个人信息)
|
|
|
this.seatNum = this.seatNum+1
|
|
|
messageText = {
|
|
|
"payload": {
|
|
@@ -1902,6 +1905,7 @@
|
|
|
}
|
|
|
this.studentAlone = { "id": messages.sender, "accountid": messages.payload.memberID, "studentName": messages.payload.memberName, "sendTime": time, "headImg":''}
|
|
|
} else if (messages.action === "State.Get") {
|
|
|
+ //确认学生加入和把学生加入到 学生列表
|
|
|
console.log(this.studentAlone,'查看数据')
|
|
|
this.students = this.$store.state.students
|
|
|
let oneStudent = {
|