diff --git a/src/oc-community-frontend/src/components/ChatWindow.vue b/src/oc-community-frontend/src/components/ChatWindow.vue index 9af9d45..84a50e8 100644 --- a/src/oc-community-frontend/src/components/ChatWindow.vue +++ b/src/oc-community-frontend/src/components/ChatWindow.vue @@ -3,7 +3,10 @@
{{ activeContact?.name || '选择联系人' }}
-
{{ activeContact.status || '在线' }}
+
+ + {{ statusText }} +
资料 @@ -36,7 +39,7 @@ @@ -301,4 +409,20 @@ const handleSend = async () => { text-align: center; /* 标题居中显示 */ padding: 4px 0; /* 适当增加垂直内边距 */ } + +.status-dot { + display: inline-block; + width: 8px; + height: 8px; + border-radius: 50%; + margin-right: 6px; + vertical-align: middle; +} + +.status-dot.online { background: #4caf50; } +.status-dot.idle { background: #9e9e9e; } +.status-dot.busy { background: #f56c6c; } +.status-dot.relax { background: #ffb020; } +.status-dot.soon { background: #409eff; } + diff --git a/src/oc-community-frontend/src/components/PhoneWidget.vue b/src/oc-community-frontend/src/components/PhoneWidget.vue index d22105d..a0db94c 100644 --- a/src/oc-community-frontend/src/components/PhoneWidget.vue +++ b/src/oc-community-frontend/src/components/PhoneWidget.vue @@ -14,7 +14,7 @@
在线
- 资料 + 我的资料
@@ -53,6 +53,13 @@ + + + + @@ -64,6 +71,7 @@ import { ocList } from '../stores/ocStore' import { currentUser } from '../stores/userStore' import OCInfoDialog from './OCInfoDialog.vue' +import UserCenterDialog from './UserCenterDialog.vue' const props = defineProps({ modelValue: { @@ -105,6 +113,12 @@ const showInfoDialog = () => { } } +// 我的资料弹窗 +const myProfileVisible = ref(false) +const showMyProfile = () => { + myProfileVisible.value = true +} + const leftTab = ref('chat') const activeMessages = computed({ @@ -156,12 +170,6 @@ watch(activeContactId, id => { }) - - - \ No newline at end of file