提交 20f141c6 编写于 作者: 张磊's avatar 张磊

Merge branch 'feat/zl' into 'develop'

save

See merge request !68
...@@ -128,7 +128,7 @@ export default { ...@@ -128,7 +128,7 @@ export default {
memberList: [], memberList: [],
tid: "", // 群id tid: "", // 群id
diagnoseLogId: "", //问诊id diagnoseLogId: "", //问诊id
isMuted: false, isMuted: true,
liveInfoSave: {}, liveInfoSave: {},
userTrtcEntryStatus:'', userTrtcEntryStatus:'',
doctorTrtcEntryStatus:'' doctorTrtcEntryStatus:''
...@@ -316,6 +316,7 @@ export default { ...@@ -316,6 +316,7 @@ export default {
.then(() => { .then(() => {
Promise.all([this.rtc.join()]).then((res) => { Promise.all([this.rtc.join()]).then((res) => {
this.ispending(); this.ispending();
this.muteLocalAudio();
let t = setTimeout(() => { let t = setTimeout(() => {
closeLoading(this); closeLoading(this);
this.muteLocalAudio(); this.muteLocalAudio();
......
...@@ -77,7 +77,7 @@ export default { ...@@ -77,7 +77,7 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss">
.consultationlist { .consultationlist {
padding: 25px 40px 25px 40px; padding: 25px 40px 25px 40px;
width: 488px; width: 488px;
......
...@@ -136,7 +136,7 @@ export default { ...@@ -136,7 +136,7 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss">
.diagnoseAdvice-wrap{ .diagnoseAdvice-wrap{
position: absolute; position: absolute;
top: 125px; top: 125px;
......
...@@ -31,10 +31,8 @@ ...@@ -31,10 +31,8 @@
</div> </div>
</template> </template>
<script> <script>
import { mapGetters } from "vuex";
import { setTimeout } from "timers";
import { isNotEmptyUtils } from "../../utils/utils";
import { getInnerLoginUrl } from "../../utils"; import { getInnerLoginUrl } from "../../utils";
const BUILD_ENV = process.env.BUILD_ENV;
let vm = null; let vm = null;
export default { export default {
props: { props: {
...@@ -82,7 +80,8 @@ export default { ...@@ -82,7 +80,8 @@ export default {
isSuper:false, isSuper:false,
userID: userId userID: userId
}; };
this.$store.dispatch( 'socket/initSocket',{url: 'https://test1-sockets.yunqueyi.com',userId: userId}) const u = this.getSocketUrl(BUILD_ENV);
this.$store.dispatch( 'socket/initSocket',{url: u,userId: userId})
vueMenuDtos.map( item => { vueMenuDtos.map( item => {
if(item.index.indexOf('administrators') > -1){ if(item.index.indexOf('administrators') > -1){
// 超级管理员 // 超级管理员
...@@ -126,6 +125,27 @@ export default { ...@@ -126,6 +125,27 @@ export default {
if (navList.indexOf(path) == -1) { if (navList.indexOf(path) == -1) {
this.$router.push(`/${navList[0]}`); this.$router.push(`/${navList[0]}`);
} }
},
getSocketUrl (env){
let url = '';
switch(env) {
case 'development':
url ='https://dev-sockets.yunqueyi.com';
break;
case 'test':
url ='https://test1-sockets.yunqueyi.com';
break;
case 'uat':
url ='https://uat-sso-sockets.yunqueyi.com';
break;
case 'pro':
url ='https://sso-sockets.yunqueyi.com';
break;
default:
url ='https://dev-sockets.yunqueyi.com';
break;
}
return url
} }
} }
}; };
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册