From ea86f49372a9c9f55de59c0e2680506f559c4cd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E7=B6=A0BG?= Date: Thu, 29 Aug 2024 03:08:58 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat=EF=BC=9A=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=A4=B4=E5=83=8F=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/notification/index.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/pages/notification/index.tsx b/src/pages/notification/index.tsx index 511182b..3a1b5a5 100644 --- a/src/pages/notification/index.tsx +++ b/src/pages/notification/index.tsx @@ -6,7 +6,7 @@ /* eslint-disable @typescript-eslint/no-unsafe-member-access */ /* eslint-disable @typescript-eslint/no-unsafe-assignment */ /* eslint-disable import/first */ -import { Text, View } from '@tarojs/components'; +import { Image, Text, View } from '@tarojs/components'; import { memo, useEffect, useState } from 'react'; import { AtIcon } from 'taro-ui'; @@ -76,9 +76,11 @@ const TabBar: React.FC = memo(({ tab, setTab }) => ( )); const Message: React.FC = memo( - ({ username, eventType, description, comment, timestamp }) => ( + ({ username, avatar, eventType, description, comment, timestamp }) => ( - + + + {username} @@ -193,14 +195,14 @@ const Notification: React.FC = memo(() => { }, [tab]); return ( - + {tab === '提问' && message.map((item) => (