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 {