From cb88f49e85f99b7676cbabf1ecd313e3fdd5759f Mon Sep 17 00:00:00 2001 From: king <2229249788@qq.com> Date: Wed, 13 Sep 2023 18:10:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=A7=86=E9=A2=91=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/videoList/videoList.tsx | 5 +++-- types/home.d.ts | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/videoList/videoList.tsx b/src/components/videoList/videoList.tsx index baae6ce..b20656c 100644 --- a/src/components/videoList/videoList.tsx +++ b/src/components/videoList/videoList.tsx @@ -6,6 +6,7 @@ import Taro from "@tarojs/taro"; import videoEvent from "@/hooks/videoEvent"; import palyWhite from '@/static/img/palyWhite.png' import starWhite from '@/static/img/starWhite.png' +import {formatMinute} from "@/utils/time"; interface Props { data: VideList @@ -53,11 +54,11 @@ const VideoList: FC = (props) => { - {(data.video_view || 0)} + {(data.collect_quantity || 0)} - 1:00 + {formatMinute(data.duration || 0)} ) diff --git a/types/home.d.ts b/types/home.d.ts index 2b08460..05ddf06 100644 --- a/types/home.d.ts +++ b/types/home.d.ts @@ -8,6 +8,8 @@ interface VideList { video_view: number publish_time:string collects:boolean + duration:number + collect_quantity:number } interface Brand {