吉安感知网项目-前端
张含笑
2026-02-24 997f3cea1b5ce6191036c08302801df1affeee16
feat:在线/离线
1 files modified
6 ■■■■ changed files
uniapps/work-app/src/pages/voiceCall/index.vue 6 ●●●● patch | view | raw | blame | history
uniapps/work-app/src/pages/voiceCall/index.vue
@@ -15,7 +15,7 @@
        <div class="itemBox">
          <!-- 头像 -->
          <div class="contactAvatar">
            <image :src="contact.avatar || defaultAvatar" :class="{ 'avatar-disabled': contact.status === '0' }"  />
            <image :src="contact.avatar || defaultAvatar" :class="{ 'avatar-disabled': contact.online === 0}"  />
          </div>
          <!-- 联系人信息 -->
@@ -25,7 +25,7 @@
          </div>
          <!-- 电话按钮 -->
          <div class="callButton" :class="{ 'call-button-disabled': contact.status === '0' }" @click="makeCall(contact)">
          <div class="callButton" :class="{ 'call-button-disabled': contact.online === 0 }" @click="makeCall(contact)">
            <image src="@/static/images/voiceVal/phoneVal.svg"  />
          </div>
        </div>
@@ -120,7 +120,7 @@
}
// 拨打电话方法
const makeCall = (contact) => {
  if (contact.status === '0') {
  if (contact.online === 0) {
    return
  }
  console.log('拨打电话', contact)