diff --git a/Touchkebao/src/pages/pc/ckbox/weChat/components/SidebarMenu/FriendsCicle/index.data.ts b/Touchkebao/src/pages/pc/ckbox/weChat/components/SidebarMenu/FriendsCicle/index.data.ts new file mode 100644 index 000000000..13c976fa0 --- /dev/null +++ b/Touchkebao/src/pages/pc/ckbox/weChat/components/SidebarMenu/FriendsCicle/index.data.ts @@ -0,0 +1,56 @@ +// 评论数据类型 +export interface CommentItem { + commentArg: number; + commentId1: number; + commentId2: number; + commentTime: number; + content: string; + nickName: string; + wechatId: string; +} + +// 点赞数据类型 +export interface LikeItem { + createTime: number; + nickName: string; + wechatId: string; +} + +// 朋友圈实体数据类型 +export interface MomentEntity { + content: string; + createTime: number; + lat: number; + lng: number; + location: string; + objectType: number; + picSize: number; + resUrls: string[]; + snsId: string; + urls: string[]; + userName: string; +} + +// 朋友圈数据类型定义 +export interface FriendsCircleItem { + commentList: CommentItem[]; + createTime: number; + likeList: LikeItem[]; + momentEntity: MomentEntity; + snsId: string; + type: number; +} + +// API响应类型 +export interface ApiResponse { + list: FriendsCircleItem[]; + total: number; + hasMore: boolean; +} + +// 分页参数类型 +export interface PaginationParams { + pageNum: number; + pageSize: number; + type: "my" | "square"; +} diff --git a/Touchkebao/src/pages/pc/ckbox/weChat/components/SidebarMenu/FriendsCicle/index.func.ts b/Touchkebao/src/pages/pc/ckbox/weChat/components/SidebarMenu/FriendsCicle/index.func.ts new file mode 100644 index 000000000..e69de29bb diff --git a/Touchkebao/src/pages/pc/ckbox/weChat/components/SidebarMenu/FriendsCicle/index.module.scss b/Touchkebao/src/pages/pc/ckbox/weChat/components/SidebarMenu/FriendsCicle/index.module.scss index ddb2a15fa..ca122f5f3 100644 --- a/Touchkebao/src/pages/pc/ckbox/weChat/components/SidebarMenu/FriendsCicle/index.module.scss +++ b/Touchkebao/src/pages/pc/ckbox/weChat/components/SidebarMenu/FriendsCicle/index.module.scss @@ -172,6 +172,12 @@ border-radius: 4px; margin-right: 8px; margin-bottom: 8px; + cursor: pointer; + transition: transform 0.2s; + + &:hover { + transform: scale(1.05); + } } } @@ -303,3 +309,95 @@ } } } + +/* ===== 图片预览Modal样式 ===== */ +.imagePreviewModal { + :global(.ant-modal-content) { + background: transparent; + box-shadow: none; + } + + :global(.ant-modal-header) { + display: none; + } + + :global(.ant-modal-close) { + position: fixed; + top: 20px; + right: 20px; + z-index: 1001; + color: white; + font-size: 24px; + + &:hover { + background-color: rgba(255, 255, 255, 0.1); + } + } + + :global(.ant-modal-body) { + padding: 0; + } +} + +.previewContainer { + position: relative; + width: 100%; + height: 100vh; + display: flex; + align-items: center; + justify-content: center; + background: rgba(0, 0, 0, 0.9); + + .previewImage { + max-width: 90vw; + max-height: 90vh; + object-fit: contain; + border-radius: 8px; + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); + } + + .navButton { + position: absolute; + top: 50%; + transform: translateY(-50%); + background: rgba(0, 0, 0, 0.5); + border: none; + color: white; + font-size: 24px; + width: 50px; + height: 50px; + border-radius: 50%; + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + transition: all 0.3s; + z-index: 1000; + + &:hover { + background: rgba(0, 0, 0, 0.7); + transform: translateY(-50%) scale(1.1); + } + + &.prevButton { + left: 20px; + } + + &.nextButton { + right: 20px; + } + } + + .imageCounter { + position: absolute; + bottom: 20px; + left: 50%; + transform: translateX(-50%); + background: rgba(0, 0, 0, 0.7); + color: white; + padding: 8px 16px; + border-radius: 20px; + font-size: 14px; + z-index: 1000; + } +} diff --git a/Touchkebao/src/pages/pc/ckbox/weChat/components/SidebarMenu/FriendsCicle/index.tsx b/Touchkebao/src/pages/pc/ckbox/weChat/components/SidebarMenu/FriendsCicle/index.tsx index d8938386b..2f432fe01 100644 --- a/Touchkebao/src/pages/pc/ckbox/weChat/components/SidebarMenu/FriendsCicle/index.tsx +++ b/Touchkebao/src/pages/pc/ckbox/weChat/components/SidebarMenu/FriendsCicle/index.tsx @@ -1,72 +1,17 @@ import React, { useState, useEffect } from "react"; -import { Avatar, Button, Collapse, Spin } from "antd"; +import { Avatar, Button, Collapse, Spin, Modal } from "antd"; +import { useWebSocketStore } from "@/store/module/websocket/websocket"; import { HeartOutlined, ChromeOutlined, MessageOutlined, LoadingOutlined, AppstoreOutlined, + CloseOutlined, } from "@ant-design/icons"; import { InfiniteScroll } from "antd-mobile"; import styles from "./index.module.scss"; - -// 评论数据类型 -interface CommentItem { - commentArg: number; - commentId1: number; - commentId2: number; - commentTime: number; - content: string; - nickName: string; - wechatId: string; -} - -// 点赞数据类型 -interface LikeItem { - createTime: number; - nickName: string; - wechatId: string; -} - -// 朋友圈实体数据类型 -interface MomentEntity { - content: string; - createTime: number; - lat: number; - lng: number; - location: string; - objectType: number; - picSize: number; - resUrls: string[]; - snsId: string; - urls: string[]; - userName: string; -} - -// 朋友圈数据类型定义 -interface FriendsCircleItem { - commentList: CommentItem[]; - createTime: number; - likeList: LikeItem[]; - momentEntity: MomentEntity; - snsId: string; - type: number; -} - -// API响应类型 -interface ApiResponse { - list: FriendsCircleItem[]; - total: number; - hasMore: boolean; -} - -// 分页参数类型 -interface PaginationParams { - pageNum: number; - pageSize: number; - type: "my" | "square"; -} - +import { FriendsCircleItem, PaginationParams } from "./index.data"; // 模拟朋友圈数据 const mockFriendsCircleData: FriendsCircleItem[] = [ { @@ -162,10 +107,26 @@ const FriendsCircle: React.FC = () => { const [squarePage, setSquarePage] = useState(1); const [expandedKeys, setExpandedKeys] = useState([]); + // 图片预览相关状态 + const [previewVisible, setPreviewVisible] = useState(false); + const [previewImages, setPreviewImages] = useState([]); + const [currentImageIndex, setCurrentImageIndex] = useState(0); + const { sendCommand } = useWebSocketStore.getState(); + + // const handleSend = async () => { + // const params = { + // wechatAccountId: contract.wechatAccountId, + // wechatChatroomId: contract?.chatroomId ? contract.id : 0, + // wechatFriendId: contract?.chatroomId ? 0 : contract.id, + // msgSubType: 0, + // msgType: 1, + // content: inputValue, + // }; + // sendCommand("CmdSendMessage", params); + // }; + // 模拟API调用函数 - const fetchFriendsCircleData = async ( - params: PaginationParams, - ): Promise => { + const fetchFriendsCircleData = async (params: PaginationParams) => { // 模拟网络延迟 await new Promise(resolve => setTimeout(resolve, 1000)); @@ -276,6 +237,34 @@ const FriendsCircle: React.FC = () => { console.log("评论:", id); }; + // 处理图片预览 + const handleImagePreview = (images: string[], index: number) => { + setPreviewImages(images); + setCurrentImageIndex(index); + setPreviewVisible(true); + }; + + // 关闭图片预览 + const handleClosePreview = () => { + setPreviewVisible(false); + setPreviewImages([]); + setCurrentImageIndex(0); + }; + + // 切换到上一张图片 + const handlePrevImage = () => { + setCurrentImageIndex(prev => + prev > 0 ? prev - 1 : previewImages.length - 1, + ); + }; + + // 切换到下一张图片 + const handleNextImage = () => { + setCurrentImageIndex(prev => + prev < previewImages.length - 1 ? prev + 1 : 0, + ); + }; + // 格式化时间戳 const formatTime = (timestamp: number) => { const date = new Date(timestamp * 1000); @@ -331,14 +320,11 @@ const FriendsCircle: React.FC = () => { key={index} src={image} className={styles.contentImage} + onClick={() => handleImagePreview(images, index)} /> ))} )} - - {images && images.length > 0 && ( -
查看图片
- )}
@@ -508,6 +494,58 @@ const FriendsCircle: React.FC = () => { activeKey={expandedKeys} onChange={handleCollapseChange} /> + + {/* 图片预览Modal */} + } + className={styles.imagePreviewModal} + > +
+ {previewImages.length > 0 && ( + <> + 预览图片 + + {previewImages.length > 1 && ( + <> + + + +
+ {currentImageIndex + 1} / {previewImages.length} +
+ + )} + + )} +
+
); }; diff --git a/Touchkebao/src/pages/pc/ckbox/weChat/components/SidebarMenu/FriendsCicle/传参方法.txt b/Touchkebao/src/pages/pc/ckbox/weChat/components/SidebarMenu/FriendsCicle/传参方法.txt new file mode 100644 index 000000000..45bd2224e --- /dev/null +++ b/Touchkebao/src/pages/pc/ckbox/weChat/components/SidebarMenu/FriendsCicle/传参方法.txt @@ -0,0 +1,90 @@ +=======================发送请求操作============================ +{ + "cmdType": "CmdFetchMoment", + "wechatAccountId": 300745, + "wechatFriendId": 0, + "createTimeSec": 1758010384, + "prevSnsId": 0, + "count": 10, + "isTimeline": false, + "seq": 3 +} + +//朋友圈广场 + +{ + "cmdType": "CmdFetchMoment", + "wechatAccountId": 300745, + "wechatFriendId": 0, + "createTimeSec": 1758010499, + "prevSnsId": 0, + "count": 10, + "isTimeline": true, + "seq": 8 +} + +//取消点赞 +{ + "cmdType": "CmdMomentCancelInteract", + "optType": 1, + "wechatAccountId": 300745, + "wechatFriendId": 0, + "CommentId2": "", + "CommentTime": 0, + "snsId": "-3699481452547067269", + "seq": 4 +} + +//点赞 +{ + "cmdType": "CmdMomentInteract", + "momentInteractType": 1, + "wechatAccountId": 300745, + "wechatFriendId": 0, + "snsId": "-3699481452547067269", + "seq": 7 +} + +//指定好友朋朋友圈 +{ + "cmdType": "CmdFetchMoment", + "wechatAccountId": 300745, + "wechatFriendId": 21168549, + "createTimeSec": 1758011261, + "prevSnsId": 0, + "count": 10, + "isTimeline": false, + "seq": 24 +} + +//发布评论 +{ + "cmdType":"CmdMomentInteract", + "wechatAccountId":300745, + "wechatFriendId":21168549, + "snsId":"-3705790026851937712", + "sendWord":"测试评论", + "momentInteractType":2, + "seq":27 +} + +//撤销评论 +{ + "cmdType": "CmdMomentCancelInteract", + "optType": 2, + "wechatAccountId": 300745, + "wechatFriendId": 21168549, + "CommentId2": "", + "CommentTime": 1758011328.377, + "snsId": "-3705790026851937712", + "seq": 30 +} +=======================数据接收格式============================ +//我的朋友圈接收的数据 +{"wechatFriendId":0,"wechatAccountId":300745,"result":[{"commentList":[],"createTime":1758011600,"likeList":[],"momentEntity":{"content":"回家第一时间宠幸露丝大小姐","createTime":1758011600,"lat":0,"lng":0,"location":"","objectType":1,"picSize":0,"resUrls":["https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3699473895763463557/-3699473895763463557-14747270178949771902.jpg","https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3699473895763463557/-3699473895763463557-14747270179007509101.jpg","https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3699473895763463557/-3699473895763463557-14747270179101684338.jpg","https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3699473895763463557/-3699473895763463557-14747270179158569581.jpg"],"snsId":"-3699473895763463557","urls":["/sns/c/4/snst_14747270178949771902","/sns/9/1/snst_14747270179007509101","/sns/0/c/snst_14747270179101684338","/sns/3/c/snst_14747270179158569581"],"userName":"wxid_480es52qsj2812"},"snsId":"-3699473895763463557","type":1},{"commentList":[],"createTime":1758010700,"likeList":[{"createTime":1758010805,"nickName":"老坑爹- 解放双手,释放时间","wechatId":"wxid_480es52qsj2812"}],"momentEntity":{"content":"暗黑老客户+1再+1❗❗ 老哥们滴滴我!立马解放你的双手!💪 全程售后!专业教程!最强社群! 让你收获满满![激动][激动]","createTime":1758010700,"lat":0,"lng":0,"location":"","objectType":1,"picSize":0,"resUrls":["https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3699481452547067269/-3699481452547067269-14747262622224102007.jpg"],"snsId":"-3699481452547067269","urls":["/sns/e/3/snst_14747262622224102007"],"userName":"wxid_480es52qsj2812"},"snsId":"-3699481452547067269","type":1},{"commentList":[],"createTime":1758001694,"likeList":[{"createTime":1758007726,"nickName":"老坑爹- 解放双手,释放时间","wechatId":"wxid_480es52qsj2812"}],"momentEntity":{"content":"🎉🎉🎉欢迎小伙伴加入暗黑秘密基地 感恩越来越多的小伙伴们的支持与信任!!!","createTime":1758001694,"lat":0,"lng":0,"location":"","objectType":1,"picSize":0,"resUrls":["https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3699556994658192777/-3699556994658192777-14747187080143843961_hd.jpg"],"snsId":"-3699556994658192777","urls":["/sns/f/2/snst_14747187080143843961"],"userName":"wxid_480es52qsj2812"},"snsId":"-3699556994658192777","type":1},{"commentList":[],"createTime":1757993594,"likeList":[],"momentEntity":{"content":"一键宏年卡+1 好的产品才有用户的持续复购 说的再多不如用户买的有说服力","createTime":1757993594,"lat":0,"lng":0,"location":"","objectType":1,"picSize":0,"resUrls":["https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3699624939759586689/-3699624939759586689-14747119134792430192_hd.jpg"],"snsId":"-3699624939759586689","urls":["/sns/8/a/snst_14747119134792430192"],"userName":"wxid_480es52qsj2812"},"snsId":"-3699624939759586689","type":1},{"commentList":[],"createTime":1757991794,"likeList":[],"momentEntity":{"content":"两个小时 637大卡 今天的努力也是给我自己最好的礼物✌🏻 坚持健身的第二年 打卡。","createTime":1757991794,"lat":0,"lng":0,"location":"","objectType":1,"picSize":0,"resUrls":["https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3699640039516261772/-3699640039516261772-14747104035150705277_hd.jpg"],"snsId":"-3699640039516261772","urls":["/sns/9/9/snst_14747104035150705277"],"userName":"wxid_480es52qsj2812"},"snsId":"-3699640039516261772","type":1},{"commentList":[],"createTime":1757989995,"likeList":[],"momentEntity":{"content":"老坑爹如果不靠谱,没有品质保障,客户会无限复购?","createTime":1757989995,"lat":0,"lng":0,"location":"","objectType":1,"picSize":0,"resUrls":["https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3699655136960826771/-3699655136960826771-14747088937740284530_hd.jpg"],"snsId":"-3699655136960826771","urls":["/sns/0/1/snst_14747088937740284530"],"userName":"wxid_480es52qsj2812"},"snsId":"-3699655136960826771","type":1},{"commentList":[],"createTime":1757973794,"likeList":[],"momentEntity":{"content":"[掘金计划] 每天10小时,月入2-5万元,AI助力高效成长,本赛季仅限10个名额。 AI智能推荐高收益玩法,团队协作更高效。每天10小时,连续多月满2万元,真实可查!","createTime":1757973794,"lat":0,"lng":0,"location":"","objectType":1,"picSize":0,"resUrls":["https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3699791035173817740/-3699791035173817740-14746953039625400956_hd.jpg"],"snsId":"-3699791035173817740","urls":["/sns/e/8/snst_14746953039625400956"],"userName":"wxid_480es52qsj2812"},"snsId":"-3699791035173817740","type":1},{"commentList":[],"createTime":1757925222,"likeList":[],"momentEntity":{"content":"斑驳的光影,窗口的那串贝壳风铃,拨动它 像是拨了一下风。 那一瞬间,看不见的风,有了一份看得见的美","createTime":1757925222,"lat":0,"lng":0,"location":"","objectType":1,"picSize":0,"resUrls":["https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3700198488152591764/-3700198488152591764-14746545586467910261.jpg","https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3700198488152591764/-3700198488152591764-14746545586593542780.jpg","https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3700198488152591764/-3700198488152591764-14746545586637714046.jpg","https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3700198488152591764/-3700198488152591764-14746545586695189114.jpg","https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3700198488152591764/-3700198488152591764-14746545586744996467.jpg","https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3700198488152591764/-3700198488152591764-14746545586788512375.jpg","https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3700198488152591764/-3700198488152591764-14746545586839630449.jpg","https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3700198488152591764/-3700198488152591764-14746545586888192632.jpg","https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3700198488152591764/-3700198488152591764-14746545586951631481.jpg"],"snsId":"-3700198488152591764","urls":["/sns/d/1/snst_14746545586467910261","/sns/b/f/snst_14746545586593542780","/sns/8/b/snst_14746545586637714046","/sns/5/a/snst_14746545586695189114","/sns/e/5/snst_14746545586744996467","/sns/9/4/snst_14746545586788512375","/sns/1/5/snst_14746545586839630449","/sns/2/c/snst_14746545586888192632","/sns/f/1/snst_14746545586951631481"],"userName":"wxid_480es52qsj2812"},"snsId":"-3700198488152591764","type":1},{"commentList":[],"createTime":1757924301,"likeList":[],"momentEntity":{"content":"暗黑3回归老哥+1 回归就要解放双手玩起来才快乐","createTime":1757924301,"lat":0,"lng":0,"location":"","objectType":1,"picSize":0,"resUrls":["https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3700206211898461569/-3700206211898461569-14746537862867268216.jpg"],"snsId":"-3700206211898461569","urls":["/sns/1/9/snst_14746537862867268216"],"userName":"wxid_480es52qsj2812"},"snsId":"-3700206211898461569","type":1},{"commentList":[],"createTime":1757915295,"likeList":[],"momentEntity":{"content":"兄弟们冲! 老用户直接更新使用,新用户直接下单 找我找我","createTime":1757915295,"lat":0,"lng":0,"location":"","objectType":1,"picSize":0,"resUrls":["https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3700281761657965959/-3700281761657965959-14746462313007690367.jpg"],"snsId":"-3700281761657965959","urls":["/sns/b/6/snst_14746462313007690367"],"userName":"wxid_480es52qsj2812"},"snsId":"-3700281761657965959","type":1}],"seq":1097555,"cmdType":"CmdFetchMomentResult"} + +//朋友圈广场接收的数据 +{"wechatFriendId":0,"wechatAccountId":300745,"result":[{"commentList":[],"createTime":1758018895,"likeList":[],"momentEntity":{"content":"还下雨不下雨,","createTime":1758018895,"lat":0,"lng":0,"location":"","objectType":15,"picSize":0,"resUrls":[],"snsId":"-3699412700395531708","urls":["https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3699412700395531708/-3699412700395531708.jpg"],"userName":"Danrtsey_DX"},"snsId":"-3699412700395531708","type":15},{"commentList":[],"createTime":1758018855,"likeList":[],"momentEntity":{"content":"可能又吃坏胃了,头疼睡一觉[难过]","createTime":1758018855,"lat":0,"lng":0,"location":"","objectType":2,"picSize":0,"resUrls":[],"snsId":"-3699413038769884681","urls":[],"userName":"wxid_a8jgtm8yidnl22"},"snsId":"-3699413038769884681","type":2},{"commentList":[],"createTime":1758018592,"likeList":[],"momentEntity":{"content":"应景","createTime":1758018592,"lat":0,"lng":0,"location":"","objectType":1,"picSize":0,"resUrls":["https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3699415247729520128/-3699415247729520128-14747328826638930428.jpg","https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3699415247729520128/-3699415247729520128-14747328826647515654.jpg"],"snsId":"-3699415247729520128","urls":["/sns/3/9/snst_14747328826638930428","/sns/7/e/snst_14747328826647515654"],"userName":"wxid_ucu1xvjfn63v42"},"snsId":"-3699415247729520128","type":1},{"commentList":[],"createTime":1758018183,"likeList":[],"momentEntity":{"content":"烹牛宰羊且为乐,会须一饮三百杯。","createTime":1758018183,"lat":0,"lng":0,"location":"","objectType":1,"picSize":0,"resUrls":["https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3699418672867036570/-3699418672867036570-14747325401547944476.jpg"],"snsId":"-3699418672867036570","urls":["/sns/8/9/snst_14747325401547944476"],"userName":"wxid_fipqq01ai0gz22"},"snsId":"-3699418672867036570","type":1},{"commentList":[],"createTime":1758018044,"likeList":[],"momentEntity":{"content":"日子越来越好","createTime":1758018044,"lat":0,"lng":0,"location":"","objectType":15,"picSize":0,"resUrls":[],"snsId":"-3699419838092201326","urls":["https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3699419838092201326/-3699419838092201326.jpg"],"userName":"wxid_ittr42760ndr12"},"snsId":"-3699419838092201326","type":15},{"commentList":[],"createTime":1758017939,"likeList":[],"momentEntity":{"content":"成都一日游结束","createTime":1758017939,"lat":0,"lng":0,"location":"","objectType":15,"picSize":0,"resUrls":[],"snsId":"-3699420727232490958","urls":["https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3699420727232490958/-3699420727232490958.jpg"],"userName":"wxid_lakjs3crxl1912"},"snsId":"-3699420727232490958","type":15},{"commentList":[],"createTime":1758017843,"likeList":[],"momentEntity":{"content":"陈奕迅𝑀𝑢𝑠𝑖𝑐▶⏸《富士山下》\nEason Chan ▶⏸《フジサンカした》","createTime":1758017843,"lat":35.50397,"lng":138.77206,"location":"qqmap_here:pds:place:392xn69v-4516cf1a94011846ca8a46d09a670067","objectType":1,"picSize":0,"resUrls":["https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3699421529075273033/-3699421529075273033-14747322545533301427.jpg","https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3699421529075273033/-3699421529075273033-14747322545597395633.jpg","https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3699421529075273033/-3699421529075273033-14747322545647858171.jpg","https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3699421529075273033/-3699421529075273033-14747322545699631791.jpg","https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3699421529075273033/-3699421529075273033-14747322545805603322.jpg","https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3699421529075273033/-3699421529075273033-14747322545853444782.jpg","https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3699421529075273033/-3699421529075273033-14747322545914589693.jpg","https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3699421529075273033/-3699421529075273033-14747322545964986877.jpg","https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3699421529075273033/-3699421529075273033-14747322546022330878.jpg"],"snsId":"-3699421529075273033","urls":["/sns/e/7/snst_14747322545533301427","/sns/a/8/snst_14747322545597395633","/sns/2/f/snst_14747322545647858171","/sns/3/6/snst_14747322545699631791","/sns/c/a/snst_14747322545805603322","/sns/0/1/snst_14747322545853444782","/sns/a/e/snst_14747322545914589693","/sns/8/a/snst_14747322545964986877","/sns/a/1/snst_14747322546022330878"],"userName":"wxid_a4ejtv88oiox11"},"snsId":"-3699421529075273033","type":1},{"commentList":[],"createTime":1758017831,"likeList":[],"momentEntity":{"content":"🎉233 网校 20 周年庆福利来啦!\n✨集卡活动正式启幕,Beats 耳机等你抽!\n📅9.16-10.13 听课 / 答题就能集卡,超简单~\n🎁集齐 “20 + 周年 + 生日 + 快乐”,10.13 开奖赢大奖!\n初级参与>>https://wx.233.com/cuxiao/card/?dm=cjjjs\n中级参与>>https://wx.233.com/cuxiao/card/?dm=zjjjs","createTime":1758017831,"lat":0,"lng":0,"location":"","objectType":1,"picSize":0,"resUrls":["https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3699421630230023502/-3699421630230023502-14747322447154786997.jpg","https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3699421630230023502/-3699421630230023502-14747322447208067581.jpg"],"snsId":"-3699421630230023502","urls":["/sns/6/6/snst_14747322447154786997","/sns/2/c/snst_14747322447208067581"],"userName":"25984982650643454@openim"},"snsId":"-3699421630230023502","type":1},{"commentList":[],"createTime":1758017829,"likeList":[],"momentEntity":{"content":"🎁233网校20周年庆典~小红书/抖音平台分享备考经验有好礼活动同步开启!🌟参与奖:分享即可获得500考证币!\n🌟纪念奖:限量前100名领取定制笔记本套装!\n🌟分享之星:限10名,达到要求,赢233定制POLO衫超有型~\n😘初中高级经济师都可以参与哦~\n✅立即扫码or戳>>#小程序://233网校/UX3pV8ZtJqm7ZID","createTime":1758017829,"lat":0,"lng":0,"location":"","objectType":1,"picSize":0,"resUrls":["https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3699421652047744337/-3699421652047744337-14747322426170028726.jpg"],"snsId":"-3699421652047744337","urls":["/sns/e/3/snst_14747322426170028726"],"userName":"25984982650643454@openim"},"snsId":"-3699421652047744337","type":1},{"commentList":[],"createTime":1758017445,"likeList":[],"momentEntity":{"content":"每天最开心的就是去打🏸的路上","createTime":1758017445,"lat":0,"lng":0,"location":"","objectType":1,"picSize":0,"resUrls":["https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3699424870875778437/-3699424870875778437-14747319203891196530.jpg"],"snsId":"-3699424870875778437","urls":["/sns/5/c/snst_14747319203891196530"],"userName":"wxid_j595b5cq0l4r12"},"snsId":"-3699424870875778437","type":1}],"seq":1098203,"cmdType":"CmdFetchMomentResult"} + +//指定好友的朋友圈接收的数据 +{"wechatFriendId":21168549,"wechatAccountId":300745,"result":[{"commentList":[],"createTime":1757258659,"likeList":[{"createTime":1757315556,"nickName":"老坑爹- 解放双手,释放时间","wechatId":"wxid_480es52qsj2812"}],"momentEntity":{"content":"没看到血月[旺柴]","createTime":1757258659,"lat":0,"lng":0,"location":"","objectType":1,"picSize":0,"resUrls":["https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3705790026851937712/-3705790026851937712-14740954047910318662.jpg"],"snsId":"-3705790026851937712","urls":["/sns/3/3/snst_14740954047910318662"],"userName":"wxid_dlhi90odctcl22"},"snsId":"-3705790026851937712","type":1},{"commentList":[],"createTime":1757173578,"likeList":[{"createTime":1757315896,"nickName":"老坑爹- 解放双手,释放时间","wechatId":"wxid_480es52qsj2812"}],"momentEntity":{"content":"渡人先渡己,擒贼先擒王。","createTime":1757173578,"lat":0,"lng":0,"location":"","objectType":1,"picSize":0,"resUrls":["https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3706503736679198125/-3706503736679198125-14740240337645015630.jpg"],"snsId":"-3706503736679198125","urls":["/sns/2/7/snst_14740240337645015630"],"userName":"wxid_dlhi90odctcl22"},"snsId":"-3706503736679198125","type":1},{"commentList":[],"createTime":1756103121,"likeList":[{"createTime":1757316320,"nickName":"老坑爹- 解放双手,释放时间","wechatId":"wxid_480es52qsj2812"}],"momentEntity":{"content":"同事的椅子,和我的椅子🪑[Emm]","createTime":1756103121,"lat":0,"lng":0,"location":"","objectType":15,"picSize":0,"resUrls":[],"snsId":"-3715483378782432690","urls":["https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3715483378782432690/-3715483378782432690.jpg"],"userName":"wxid_dlhi90odctcl22"},"snsId":"-3715483378782432690","type":15},{"commentList":[],"createTime":1755925942,"likeList":[{"createTime":1757316604,"nickName":"老坑爹- 解放双手,释放时间","wechatId":"wxid_480es52qsj2812"}],"momentEntity":{"content":"[偷笑]得罪了","createTime":1755925942,"lat":0,"lng":0,"location":"","objectType":15,"picSize":0,"resUrls":[],"snsId":"-3716969661828623794","urls":["https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3716969661828623794/-3716969661828623794.jpg"],"userName":"wxid_dlhi90odctcl22"},"snsId":"-3716969661828623794","type":15},{"commentList":[],"createTime":1755349514,"likeList":[{"createTime":1757316905,"nickName":"老坑爹- 解放双手,释放时间","wechatId":"wxid_480es52qsj2812"}],"momentEntity":{"content":"吃个饭都能遇到妈祖[捂脸]","createTime":1755349514,"lat":0,"lng":0,"location":"","objectType":1,"picSize":0,"resUrls":["https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3721805097586781614/-3721805097586781614-14724938976789205577.jpg"],"snsId":"-3721805097586781614","urls":["/sns/8/1/snst_14724938976789205577"],"userName":"wxid_dlhi90odctcl22"},"snsId":"-3721805097586781614","type":1},{"commentList":[],"createTime":1755011580,"likeList":[],"momentEntity":{"content":"鸿鹄知春秋,撼海镇九流。","createTime":1755011580,"lat":0,"lng":0,"location":"","objectType":1,"picSize":0,"resUrls":["https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3724639891424341427/-3724639891424341427-14722104183322382918.jpg"],"snsId":"-3724639891424341427","urls":["/sns/1/c/snst_14722104183322382918"],"userName":"wxid_dlhi90odctcl22"},"snsId":"-3724639891424341427","type":1},{"commentList":[],"createTime":1751689130,"likeList":[],"momentEntity":{"content":"第一次遇到抽签车","createTime":1751689130,"lat":0,"lng":0,"location":"","objectType":1,"picSize":0,"resUrls":["https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3752510624844148152/-3752510624844148152-14694233449528365640.jpg"],"snsId":"-3752510624844148152","urls":["/sns/5/4/snst_14694233449528365640"],"userName":"wxid_dlhi90odctcl22"},"snsId":"-3752510624844148152","type":1},{"commentList":[],"createTime":1751005570,"likeList":[],"momentEntity":{"content":"","coverImage":"","createTime":1751005570,"lat":0,"lng":0,"location":"","objectType":3,"picSize":0,"resUrls":[],"snsId":"-3758244736232910262","title":"00后设计师反杀白嫖客户!这操作太解气了","urls":["https://mp.weixin.qq.com/s?__biz=MzkyNDcxMTU2Ng==&mid=2247484123&idx=1&sn=f512ad8889386a60cc4611a2537a42dd&chksm=c039f613153a750c41814a322fc31402fc94195bea334a7096cf7581e24e46829c0c666288f3&mpshare=1&scene=2&srcid=0627yNiaqirYQWNgqRCIFKuI&sharer_shareinfo=752d2582f3449b7ac967108f6a260e0f&sharer_shareinfo_first=752d2582f3449b7ac967108f6a260e0f#rd"],"userName":"wxid_dlhi90odctcl22"},"snsId":"-3758244736232910262","type":3},{"commentList":[{"commentArg":2,"commentId1":0,"commentId2":289,"commentTime":1747578641,"content":"春末夏至流口水,一口一只姜母鸭。[旺柴]","nickName":"作品版权软著申请|许永平","wechatId":"wxid_dlhi90odctcl22"}],"createTime":1747570624,"likeList":[],"momentEntity":{"content":"春末夏初流口水,不如来吃姜母鸭。","createTime":1747570624,"lat":24.454126,"lng":118.07624,"location":"qqmap_2166690197341335509","objectType":1,"picSize":0,"resUrls":["https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3787059149143993778/-3787059149143993778-14659684925183562310.jpg"],"snsId":"-3787059149143993778","urls":["/sns/8/b/snst_14659684925183562310"],"userName":"wxid_dlhi90odctcl22"},"snsId":"-3787059149143993778","type":1},{"commentList":[],"createTime":1747548845,"likeList":[],"momentEntity":{"content":"交流收获满满,下次见!","createTime":1747548845,"lat":25.097376,"lng":117.00555,"location":"qqmap_4576792767669052233","objectType":1,"picSize":0,"resUrls":["https://ac-weremote-s2.oss-cn-shenzhen.aliyuncs.com/weremote/chat-logs/5E2C38F5A275450D935F3ECEC076124E/aa6d4c2f7b1fe24d04d34f4f409883e6/sns/wxid_480es52qsj2812/-3787241848206519721/-3787241848206519721-14659502226405986886.jpg"],"snsId":"-3787241848206519721","urls":["/sns/c/1/snst_14659502226405986886"],"userName":"wxid_dlhi90odctcl22"},"snsId":"-3787241848206519721","type":1}],"seq":1098348,"cmdType":"CmdFetchMomentResult"} diff --git a/Touchkebao/src/store/module/weChat/weChat.ts b/Touchkebao/src/store/module/weChat/weChat.ts index f4f3cb0c3..9ff04d610 100644 --- a/Touchkebao/src/store/module/weChat/weChat.ts +++ b/Touchkebao/src/store/module/weChat/weChat.ts @@ -24,6 +24,11 @@ export const useWeChatStore = create()( messagesLoading: false, isLoadingData: false, currentGroupMembers: [], + MomentOfKf: [], //客服自己的朋友圈 + MomentOfSquare: [], //朋友圈广场 + MomentOfFriend: [], //好友的朋友圈 + //============方法列表============ + //清空当前联系人 clearCurrentContact: () => { set({ currentContract: null, currentMessages: [] });