|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
import React, { useState, useEffect, useContext, memo } from 'react';
|
|
|
|
|
import { Progress, Input, Tooltip , Spin } from 'antd'
|
|
|
|
|
import { getUrl2, isDev, CBreadcrumb, ActionBtn, ThemeContext } from 'educoder'
|
|
|
|
|
import { getUrl2, isDev, CBreadcrumb, ActionBtn, ThemeContext,formatSeconds} from 'educoder'
|
|
|
|
|
import axios from 'axios'
|
|
|
|
|
import moment from 'moment'
|
|
|
|
|
import playIcon from './images/play.png'
|
|
|
|
@ -39,6 +39,7 @@ function VideoInReviewItem (props) {
|
|
|
|
|
}, [])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const username = props.match.params.username
|
|
|
|
|
function toList() {
|
|
|
|
|
history.push(`/users/${username}/videos`)
|
|
|
|
@ -74,7 +75,9 @@ function VideoInReviewItem (props) {
|
|
|
|
|
{/* <div className={"play_duration"}>累计学习时长:{play_duration} h</div> */}
|
|
|
|
|
{/* <span className="time">{moment(published_at || created_at).format('YYYY-MM-DD HH:mm:ss')}{people_num}</span> */}
|
|
|
|
|
{link ?<span className="time"> </span>:<span className="time">累计学习时长:{
|
|
|
|
|
total_time<60?total_time+' s':total_time/60<60?(total_time/60).toFixed(0)+' min':(total_time/60/60).toFixed(1)+ ' h'}</span>}
|
|
|
|
|
formatSeconds(total_time)}
|
|
|
|
|
{/* total_time<60?total_time+' s':total_time/60<60?(total_time/60).toFixed(0)+' min':(total_time/3600).toFixed(1)+ ' h' */}
|
|
|
|
|
</span>}
|
|
|
|
|
</div>
|
|
|
|
|
<div className="df buttonRow">
|
|
|
|
|
{/* 2019-09-01 10:00:22 */}
|
|
|
|
|