From c508b1fcb4b4cc1b7eae7865ee61ad844f78504f Mon Sep 17 00:00:00 2001 From: cbb <1055026847@qq.com> Date: Fri, 23 Jan 2026 16:55:42 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BE=A4UI=E9=9C=80=E8=A6=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TUIKit/components/TUIChat/index.vue | 1 + .../contact-list/contact-list-item/index.vue | 4 +- .../TUIContact/contact-list/index.vue | 17 +- TUIKit/components/TUIContact/index.vue | 12 +- .../conversation-header/index.vue | 3 +- .../TUIGroup/create-group/index.vue | 5 + manifest.json | 4 +- pages.json | 11 +- pages/adduser/details.vue | 403 ++++++++++++++++++ pages/adduser/index.vue | 333 +++++++-------- pages/discover/discover.vue | 7 - pages/my-index/customer-service/index.vue | 1 + pages/my-index/qr-code/index.vue | 2 +- uni_modules/uni-search-bar/changelog.md | 47 ++ .../components/uni-search-bar/i18n/en.json | 4 + .../components/uni-search-bar/i18n/index.js | 8 + .../uni-search-bar/i18n/zh-Hans.json | 4 + .../uni-search-bar/i18n/zh-Hant.json | 4 + .../uni-search-bar/uni-search-bar.vue | 309 ++++++++++++++ uni_modules/uni-search-bar/package.json | 87 ++++ uni_modules/uni-search-bar/readme.md | 14 + 21 files changed, 1069 insertions(+), 211 deletions(-) create mode 100644 pages/adduser/details.vue create mode 100644 uni_modules/uni-search-bar/changelog.md create mode 100644 uni_modules/uni-search-bar/components/uni-search-bar/i18n/en.json create mode 100644 uni_modules/uni-search-bar/components/uni-search-bar/i18n/index.js create mode 100644 uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hans.json create mode 100644 uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hant.json create mode 100644 uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar.vue create mode 100644 uni_modules/uni-search-bar/package.json create mode 100644 uni_modules/uni-search-bar/readme.md diff --git a/TUIKit/components/TUIChat/index.vue b/TUIKit/components/TUIChat/index.vue index 928938f..b2b03c5 100644 --- a/TUIKit/components/TUIChat/index.vue +++ b/TUIKit/components/TUIChat/index.vue @@ -287,6 +287,7 @@ } function onCurrentConversationUpdate(conversation: IConversationModel) { + updateUIUserNotInGroup(conversation) // return when currentConversation is null if (!conversation) { diff --git a/TUIKit/components/TUIContact/contact-list/contact-list-item/index.vue b/TUIKit/components/TUIContact/contact-list/contact-list-item/index.vue index 2321594..ecb0ef1 100644 --- a/TUIKit/components/TUIContact/contact-list/contact-list-item/index.vue +++ b/TUIKit/components/TUIContact/contact-list/contact-list-item/index.vue @@ -27,12 +27,12 @@
-
{{ groupTypeForShow }} -
+
-->
('') const currentContactInfo = ref({} as IContactInfoType) @@ -237,7 +238,8 @@ function toggleCurrentContactList(key: keyof IContactList) { if (key === 'currentContactSearchingStatus') { - TUIStore.update(StoreName.CUSTOM, key, true) + navigateTo('/pages/adduser/index') + // TUIStore.update(StoreName.CUSTOM, key, true) return } if (currentContactListKey.value === key) { @@ -290,12 +292,13 @@ } const selectFriend = (item: any) => { - TUIStore.update( - StoreName.CUSTOM, - 'currentContactListKey', - 'friendList' - ) - selectItem(item) + navigateTo('/pages/adduser/details', { id: item.userID, type: '1' }) + // TUIStore.update( + // StoreName.CUSTOM, + // 'currentContactListKey', + // 'friendList' + // ) + // selectItem(item) } function onDisplayOnlineStatusUpdated(status: boolean) { diff --git a/TUIKit/components/TUIContact/index.vue b/TUIKit/components/TUIContact/index.vue index c97da45..c4cfd3e 100644 --- a/TUIKit/components/TUIContact/index.vue +++ b/TUIKit/components/TUIContact/index.vue @@ -64,6 +64,7 @@ import addCircle from '../../assets/icon/add-friend.svg' import backSVG from '../../assets/icon/back.svg' import { CONTACT_INFO_TITLE } from '../../constant' + import { navigateTo } from '../../../utils/router' const emits = defineEmits(['switchConversation']) @@ -97,11 +98,12 @@ } const openContactSearch = () => { - TUIStore.update( - StoreName.CUSTOM, - 'currentContactSearchingStatus', - true - ) + navigateTo('/pages/adduser/index') + // TUIStore.update( + // StoreName.CUSTOM, + // 'currentContactSearchingStatus', + // true + // ) } const resetContactType = () => { diff --git a/TUIKit/components/TUIConversation/conversation-header/index.vue b/TUIKit/components/TUIConversation/conversation-header/index.vue index a4cdffe..eeb9257 100644 --- a/TUIKit/components/TUIConversation/conversation-header/index.vue +++ b/TUIKit/components/TUIConversation/conversation-header/index.vue @@ -146,8 +146,7 @@ } }) } else if (item.data.name === 'isAddUser') { - console.log('添加好友') - showDialog('提示', '开发中...') + navigateTo('/pages/adduser/index') } else { listener.onClicked(item) } diff --git a/TUIKit/components/TUIGroup/create-group/index.vue b/TUIKit/components/TUIGroup/create-group/index.vue index 927014c..c01ddd0 100644 --- a/TUIKit/components/TUIGroup/create-group/index.vue +++ b/TUIKit/components/TUIGroup/create-group/index.vue @@ -372,6 +372,11 @@ diff --git a/pages/adduser/index.vue b/pages/adduser/index.vue index 95e2251..8793d05 100644 --- a/pages/adduser/index.vue +++ b/pages/adduser/index.vue @@ -1,216 +1,183 @@