ith5 il y a 4 mois
Parent
commit
d7e8493663
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      src/pages/message/list/index.tsx

+ 3 - 1
src/pages/message/list/index.tsx

@@ -87,6 +87,7 @@ const MessageList = () => {
               <View className="text-[14px] text-[#3d3d3d]">
                 {item.type_id === 4 ? "点赞了你的动态" : ""}
                 {item.type_id === 5 ? "点赞了你的评论" : ""}
+                {item.type_id === 2 ? "评论了你的动态" : ""}
                 {item.type_id === 3 ? item.reply_comment_info.content : ""}
                 {item.type_id === 1
                   ? `${
@@ -115,7 +116,7 @@ const MessageList = () => {
                   onClick={() => {
                     setShowCommentInput(true);
                     setCommentPostId(item.source_post_info.id);
-                    setCommentParentCommentId(item.source_info.id);
+                    setCommentParentCommentId(item.reply_comment_info.id);
                   }}
                 >
                   <View className="pt-[5px] pb-[5px] pl-[10px] pr-[10px] bg-[#f8f8f8] flex items-center rounded-[20px]">
@@ -161,6 +162,7 @@ const MessageList = () => {
           onClose={() => setShowCommentInput(false)}
           onOK={() => {
             setShowCommentInput(false);
+            getNotificationList();
           }}
         />
       ) : null}