提交 793cb261 编写于 作者: lyf's avatar lyf

Merge branch 'develop' into feat/yf

...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
> >
<div class="text"> <div class="text">
<div class="text-left"> <div class="text-left">
<img :src="doctorImg" alt /> <img :src="item.avatarImageUrl" alt />
</div> </div>
<div class="text-right"> <div class="text-right">
<p> <p>
...@@ -159,8 +159,7 @@ export default { ...@@ -159,8 +159,7 @@ export default {
} }
// 获取视频参数 // 获取视频参数
this.getViedoParams(); this.getViedoParams();
this.getInfo(); // 获取用户信息列表
const info = this.getInfo();
}, },
toggleVol () { toggleVol () {
if(this.isMuted){ if(this.isMuted){
...@@ -173,14 +172,12 @@ export default { ...@@ -173,14 +172,12 @@ export default {
}, },
// 主动呼叫 // 主动呼叫
drivingCall(data) { drivingCall(data) {
// /team/call/direct/{imAccId}呼叫
let url = `/im/team/call/direct/`; let url = `/im/team/call/direct/`;
let params = { let params = {
imAccId: data.accId, imAccId: data.accId,
imTeamId: this.currentChat.tid, imTeamId: this.currentChat.tid,
liveRoomId: this.roomId liveRoomId: this.roomId
}; };
this.POST(url, params).then((res) => { this.POST(url, params).then((res) => {
if (res.code === "000000") { if (res.code === "000000") {
this.getInfo(data); this.getInfo(data);
...@@ -206,13 +203,18 @@ export default { ...@@ -206,13 +203,18 @@ export default {
this.roomId = Number(liveInfo.roomId); this.roomId = Number(liveInfo.roomId);
this.type = liveInfo.liveType; this.type = liveInfo.liveType;
} }
console.log('--memberList', memberList);
if (memberList && memberList.length) { if (memberList && memberList.length) {
memberList.forEach((item) => { memberList.forEach((item) => {
//在当前群组中的角色 1: 问诊医生 2: 接诊医生 3: 居民 4: 其他
if (item.role == 4) { if (item.role == 4) {
this.userId = item.liveUserId; this.userId = item.liveUserId;
} }
//在当前群组中的角色 1: 问诊医生 2: 接诊医生 3: 居民 4: 其他
if(item.role == 1){
this.memberList[0] = item;
}
if(item.role == 2){
this.memberList[1] = item;
}
}); });
} }
this.getAppId(); this.getAppId();
...@@ -257,6 +259,7 @@ export default { ...@@ -257,6 +259,7 @@ export default {
this.leave(); this.leave();
} }
this.getErr(); this.getErr();
return false;
} }
}) })
.catch((err) => { .catch((err) => {
...@@ -273,6 +276,7 @@ export default { ...@@ -273,6 +276,7 @@ export default {
userSig: this.userSig, userSig: this.userSig,
vueInstance: this, vueInstance: this,
}; };
console.log('---obj', obj);
this.rtc = new RtcClient(obj); this.rtc = new RtcClient(obj);
window.rtc = this.rtc; window.rtc = this.rtc;
this.$nextTick(() => { this.$nextTick(() => {
...@@ -329,21 +333,20 @@ export default { ...@@ -329,21 +333,20 @@ export default {
this.rtc.unmuteLocalAudio(); this.rtc.unmuteLocalAudio();
}, },
// 显示文案 // 显示文案
showText(status, role, item) { showText(status, role) {
// 1 呼叫中 2 接入 3离线
if (item.status == 2) {
item.timeleft = 0;
}
let text = ""; let text = "";
switch (status) { switch (status) {
case 1: case 1:
text = "已接入";
break;
case 2:
text = "呼叫医生"; text = "呼叫医生";
break; break;
case 3: case 3:
text = "已离线"; text = "呼叫中";
break; break;
default: default:
text = `已接入`; text = `呼叫医生`;
break; break;
} }
return text; return text;
......
...@@ -37,8 +37,8 @@ ...@@ -37,8 +37,8 @@
<span class="info-phone"> <span class="info-phone">
{{item.doctorMobile}} {{item.doctorMobile}}
</span> </span>
<span class="info-call-time" v-if="item.doctorCallTime"> <span class="info-call-time" v-if="item.doctorCallKfStatus == 1">
{{item.doctorCallTime}}小时前呼叫 {{doctorCallTime}}小时前呼叫
</span> </span>
</div> </div>
</div> </div>
...@@ -58,8 +58,8 @@ ...@@ -58,8 +58,8 @@
<span class="info-phone"> <span class="info-phone">
{{item.userMobile}} {{item.userMobile}}
</span> </span>
<span class="info-call-time" v-if="item.userCallKfStatus"> <span class="info-call-time" v-if="item.userCallKfStatus == 1">
{{item.userCallKfStatus}}小时前呼叫 {{userCallTime}}小时前呼叫
</span> </span>
</div> </div>
</div> </div>
...@@ -138,6 +138,12 @@ export default { ...@@ -138,6 +138,12 @@ export default {
}, },
appointEndTime () { appointEndTime () {
return new Date(this.item.appointEndTime).format("hh:mm"); return new Date(this.item.appointEndTime).format("hh:mm");
},
userCallTime() {
return new Date(this.item.userCallTime).format("hh:mm");
},
doctorCallTime () {
return new Date(this.item.doctorCallTime).format("hh:mm");
} }
}, },
methods: { methods: {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册