From 8f104e2a54cd0be484e67c9f3b5fbc41c739ba6c Mon Sep 17 00:00:00 2001 From: king <2229249788@qq.com> Date: Tue, 5 Sep 2023 14:06:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=93=81=E7=89=8C=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/business/videoInfo/components/catalogue.tsx | 8 ++++---- src/pages/preview/brand/article/article.tsx | 2 +- src/pages/preview/brand/info/info.tsx | 5 +++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/pages/business/videoInfo/components/catalogue.tsx b/src/pages/business/videoInfo/components/catalogue.tsx index 08f9fbb..55a1a5b 100644 --- a/src/pages/business/videoInfo/components/catalogue.tsx +++ b/src/pages/business/videoInfo/components/catalogue.tsx @@ -46,9 +46,9 @@ const Catalogue: FC = ({data, setHors, id, playId}) => { }) - function onPause() { - videoEvents.setVideoState('pause') - } + // function onPause() { + // videoEvents.setVideoState('pause') + // } function jumCurHistory() { if (playId) { @@ -192,7 +192,7 @@ const Catalogue: FC = ({data, setHors, id, playId}) => { { token && { - playing ? 暂停 + playing ? 播放中 : 立即学习 } setShow(true)}>... diff --git a/src/pages/preview/brand/article/article.tsx b/src/pages/preview/brand/article/article.tsx index 4d54b99..ff00e4f 100644 --- a/src/pages/preview/brand/article/article.tsx +++ b/src/pages/preview/brand/article/article.tsx @@ -65,7 +65,7 @@ const article: FC = () => { { - !token && ultra && + !token && ultra && children.length > 0 && diff --git a/src/pages/preview/brand/info/info.tsx b/src/pages/preview/brand/info/info.tsx index dabb565..8978cf0 100644 --- a/src/pages/preview/brand/info/info.tsx +++ b/src/pages/preview/brand/info/info.tsx @@ -67,7 +67,7 @@ const BrandInfo: FC = () => { { - (brandInfo?.introductory_video_resource?.url || brandInfo?.brand_album?.length) && + (brandInfo?.introductory_video_resource?.url || brandInfo?.brand_album)?.length > 0 && <> { muted={false} /> } - {brandInfo?.brand_album?.length + { + (brandInfo?.brand_album?.length || 0) > 0 && brandInfo?.brand_album?.split(',').map((d) =>