Browse Source

增加参数videoconferencing:1

shenzaixin 5 years ago
parent
commit
4f929faf89
3 changed files with 9 additions and 4 deletions
  1. 3 2
      src/Main.vue
  2. 1 1
      src/assets/js/apis/api-im.js
  3. 5 1
      src/components/messagePage.vue

+ 3 - 2
src/Main.vue

@ -74,16 +74,17 @@ export default {
    socket2.on("syncServerHost", data => {
      console.log("syncServerHost", data);
      ajaxUrl.socketUrl = "https://" + data.server_host + ":9000";
      ajaxUrl.socketUrl = "https://" + data.server_host + ":443";
      ajaxUrl.imServer =
        "https://" + data.server_host + ":" + data.port + "/api/v2";
      ajaxUrl.videoScoketUrl = data.server_host + ":9000/groupcall";
      ajaxUrl.videoScoketUrl = data.server_host + ":8443/groupcall";
      window.localStorage.setItem(
        "serverUrl",
        "https://" + data.server_host + ":" + data.port
      );
      vm.loginIM();
      this.$router.replace("/message");
      this.$root.bus.$emit("loadSessionDoctor")
    });
    // 错误提醒

+ 1 - 1
src/assets/js/apis/api-im.js

@ -141,7 +141,7 @@ export default {
        // 获取与医生相关的会话,实际上这些是P2P,群聊和讨论组
        getSessionsWithDoctor(userId, page, size) {
            return http.imget(ENDPOINTS.Sessions.Sessions,
                { user_id: userId, business_type: '1', page: page, size: size })
                { user_id: userId, business_type: '1', page: page, size: size ,videoconferencing:1})
        },
        // 获取最近7天内的会话列表
        getRecentSessions(userId) {

+ 5 - 1
src/components/messagePage.vue

@ -44,7 +44,7 @@ export default {
        messageContent,
    },
    mounted() {
        this.getSessionsDoctor()
        
    },
    // 发送消息通过全局传参过来的信息
    created() {
@ -58,6 +58,10 @@ export default {
        this.isleader = loginDoctor.isLeader
        this.authOperate = authOperate
        this.$root.bus.$on('loadSessionDoctor', value => {
            this.getSessionsDoctor()
        })
        this.$root.bus.$on('translateDocMSg', value => {
            // this.translateDocMsg(value)
        })