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 @@
-->
('')
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 @@
-
-
-
-
-
-
- {{ friendInfo.nick }}
- ID: {{ friendInfo.userID }}
-
- 个性签名: {{ friendInfo.selfSignature || '暂无个性签名' }}
-
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.nick || '未知名称' }}
+ {{ item.userID }}
+
+ 已添加
+
+
-
-
-
- 请填写验证信息
-
-
-
-
-
-
-
-
- 发送申请
-
-
diff --git a/uni_modules/uni-search-bar/package.json b/uni_modules/uni-search-bar/package.json
new file mode 100644
index 0000000..1730d9d
--- /dev/null
+++ b/uni_modules/uni-search-bar/package.json
@@ -0,0 +1,87 @@
+{
+ "id": "uni-search-bar",
+ "displayName": "uni-search-bar 搜索栏",
+ "version": "1.3.0",
+ "description": "搜索栏组件,通常用于搜索商品、文章等",
+ "keywords": [
+ "uni-ui",
+ "uniui",
+ "搜索框",
+ "搜索栏"
+],
+ "repository": "https://github.com/dcloudio/uni-ui",
+ "engines": {
+ "HBuilderX": ""
+ },
+ "directories": {
+ "example": "../../temps/example_temps"
+ },
+"dcloudext": {
+ "sale": {
+ "regular": {
+ "price": "0.00"
+ },
+ "sourcecode": {
+ "price": "0.00"
+ }
+ },
+ "contact": {
+ "qq": ""
+ },
+ "declaration": {
+ "ads": "无",
+ "data": "无",
+ "permissions": "无"
+ },
+ "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui",
+ "type": "component-vue"
+ },
+ "uni_modules": {
+ "dependencies": [
+ "uni-scss",
+ "uni-icons"
+ ],
+ "encrypt": [],
+ "platforms": {
+ "cloud": {
+ "tcb": "y",
+ "aliyun": "y",
+ "alipay": "n"
+ },
+ "client": {
+ "App": {
+ "app-vue": "y",
+ "app-nvue": "y"
+ },
+ "H5-mobile": {
+ "Safari": "y",
+ "Android Browser": "y",
+ "微信浏览器(Android)": "y",
+ "QQ浏览器(Android)": "y"
+ },
+ "H5-pc": {
+ "Chrome": "y",
+ "IE": "y",
+ "Edge": "y",
+ "Firefox": "y",
+ "Safari": "y"
+ },
+ "小程序": {
+ "微信": "y",
+ "阿里": "y",
+ "百度": "y",
+ "字节跳动": "y",
+ "QQ": "y"
+ },
+ "快应用": {
+ "华为": "u",
+ "联盟": "u"
+ },
+ "Vue": {
+ "vue2": "y",
+ "vue3": "y"
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/uni_modules/uni-search-bar/readme.md b/uni_modules/uni-search-bar/readme.md
new file mode 100644
index 0000000..253092f
--- /dev/null
+++ b/uni_modules/uni-search-bar/readme.md
@@ -0,0 +1,14 @@
+
+
+## SearchBar 搜索栏
+
+> **组件名:uni-search-bar**
+> 代码块: `uSearchBar`
+
+
+搜索栏组件
+
+### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-search-bar)
+#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839
+
+