diff --git a/Touchkebao/src/pages/pc/ckbox/weChat/components/CustomerList/com.module.scss b/Touchkebao/src/pages/pc/ckbox/weChat/components/CustomerList/com.module.scss
index 9cc2941e..29e92bf8 100644
--- a/Touchkebao/src/pages/pc/ckbox/weChat/components/CustomerList/com.module.scss
+++ b/Touchkebao/src/pages/pc/ckbox/weChat/components/CustomerList/com.module.scss
@@ -47,6 +47,11 @@
.active & {
border-color: #1890ff;
}
+
+ &.offline {
+ filter: grayscale(100%);
+ opacity: 0.6;
+ }
}
}
.allUser {
diff --git a/Touchkebao/src/pages/pc/ckbox/weChat/components/CustomerList/index.tsx b/Touchkebao/src/pages/pc/ckbox/weChat/components/CustomerList/index.tsx
index 9ce88a1f..55ba297f 100644
--- a/Touchkebao/src/pages/pc/ckbox/weChat/components/CustomerList/index.tsx
+++ b/Touchkebao/src/pages/pc/ckbox/weChat/components/CustomerList/index.tsx
@@ -89,7 +89,6 @@ const CustomerList: React.FC = () => {
>
全部
-
{customerList.map(customer => (
{
{
{!customer.avatar && customer.name.charAt(0)}
-
))}
>
diff --git a/Touchkebao/src/pages/pc/ckbox/weChat/components/SidebarMenu/MessageList/index.tsx b/Touchkebao/src/pages/pc/ckbox/weChat/components/SidebarMenu/MessageList/index.tsx
index 2625b581..0e39a94b 100644
--- a/Touchkebao/src/pages/pc/ckbox/weChat/components/SidebarMenu/MessageList/index.tsx
+++ b/Touchkebao/src/pages/pc/ckbox/weChat/components/SidebarMenu/MessageList/index.tsx
@@ -383,7 +383,7 @@ const MessageList: React.FC = () => {
const requestId = ++loadRequestRef.current;
const initializeSessions = async () => {
- setLoading(true);
+ // setLoading(true);
try {
const cachedSessions =
@@ -416,7 +416,7 @@ const MessageList: React.FC = () => {
}
} finally {
if (!isCancelled && loadRequestRef.current === requestId) {
- setLoading(false);
+ // setLoading(false);
}
}
};
diff --git a/Touchkebao/src/utils/filter.ts b/Touchkebao/src/utils/filter.ts
index 5e2d3754..22887a8b 100644
--- a/Touchkebao/src/utils/filter.ts
+++ b/Touchkebao/src/utils/filter.ts
@@ -58,6 +58,11 @@ export const messageFilter = (message: string) => {
return "[图片]";
}
+ // XML 格式的位置消息:包含 ]/i.test(message)) {
+ return "[位置]";
+ }
+
// 其他情况直接返回原始消息
return message;
}
diff --git a/Touchkebao/消息功能规划.md b/Touchkebao/消息功能规划.md
new file mode 100644
index 00000000..e69de29b
diff --git a/Touchkebao/腾讯地图定位服务修复说明.md b/Touchkebao/腾讯地图定位服务修复说明.md
deleted file mode 100644
index 601db72f..00000000
--- a/Touchkebao/腾讯地图定位服务修复说明.md
+++ /dev/null
@@ -1,73 +0,0 @@
-# 腾讯地图定位服务修复说明
-
-## 问题描述
-
-在 `selectMap.tsx` 文件中使用腾讯地图定位服务时出现以下错误:
-
-```
-TypeError: window.TMap.service.Location is not a constructor
- at selectMap.tsx:121:33
-```
-
-## 原因分析
-
-错误原因是尝试将 `TMap.service.Location` 作为构造函数使用,但在腾讯地图 GL API 中,定位服务不是通过构造函数方式创建的。
-
-## 修复方法
-
-### 1. 修改定位服务的初始化方式
-
-将原来的代码:
-
-```typescript
-// 创建IP定位服务
-window.geolocationRef = new window.TMap.service.Location({
- timeout: 10000,
- convert: true,
-});
-```
-
-修改为:
-
-```typescript
-// 使用腾讯地图内置的定位服务
-window.geolocationRef = window.TMap.service.Geolocation;
-```
-
-### 2. 修改定位服务的调用方式
-
-在调用定位服务时,将配置参数直接传入 `getLocation` 方法:
-
-```typescript
-window.geolocationRef.getLocation({
- timeout: 10000,
- convert: true,
- success: function (result: any) {
- // 处理成功回调
- },
- error: function () {
- // 处理错误回调
- },
-});
-```
-
-## 技术说明
-
-1. **腾讯地图 GL API 中的定位服务**:
- - 正确的服务名称是 `TMap.service.Geolocation`,而非 `TMap.service.Location`
- - 它是一个对象,不需要使用 `new` 关键字实例化
- - 配置参数应该直接传递给 `getLocation` 方法
-
-2. **定位服务参数**:
- - `timeout`:定位超时时间,单位毫秒
- - `convert`:是否将坐标转换为腾讯地图坐标系
-
-3. **回调处理**:
- - `success`:定位成功回调函数,返回位置信息
- - `error`:定位失败回调函数
-
-## 注意事项
-
-1. 确保腾讯地图 SDK 已正确加载
-2. 确保 API 密钥有定位服务的权限
-3. 定位精度可能受网络环境影响