吉安感知网项目-前端
shuishen
2026-01-14 7040e9649e51857e49261fb29f2a3a3bbf9f55e8
applications/mobile-web-view/src/appPages/voiceCallDetail/index.vue
@@ -16,7 +16,10 @@
      <div class="button-group">
         <button @click="connectWS" :disabled="connected" class="btn btn-connect">连接WS</button>
      </div>
      <!--  头像-->
         <div class="contactAvatar">
            <img :src="defaultAvatar" alt=""></img>
         </div>
      <div class="button-group">
         <button @click="requestCall" :disabled="!connected || state!=='idle'" class="btn btn-call">呼叫</button>
        
@@ -49,7 +52,7 @@
<script setup>
import { useRoute } from 'vue-router'
import defaultAvatar from '@/appDataSource/appwork/defaultAvatar.svg'
const route = useRoute()
/** ✅ 你的 WS 地址前缀(后面拼 userId) */
const WS_BASE = 'wss://wrj.shuixiongit.com/ws/chat?userId='
@@ -493,7 +496,6 @@
  <style scoped lang="scss">
   .call-container {
      padding: 20px;
      background-color: #f5f5f5;
      min-height: 100vh;
      font-family: Arial, sans-serif;
   }
@@ -535,6 +537,7 @@
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: center;
   }
   .btn {
@@ -622,4 +625,15 @@
   .hidden-audio {
      display: none;
   }
   .contactAvatar {
      width: 172rpx;
      height: 172rpx;
      display: flex;
      justify-content: center;
      align-items: center;
      img{
         width: 172rpx;
         height: 172rpx;
      }
   }
  </style>