mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-06-08 07:08:34 +08:00
课程详情初步
This commit is contained in:
parent
351e755fe2
commit
bafdbc3347
@ -33,9 +33,6 @@ export const HourCompenent: React.FC<PropInterface> = ({
|
||||
<div className="d-flex">
|
||||
{progress >= 0 && progress < 100 && (
|
||||
<>
|
||||
<div className={styles["record"]}>
|
||||
上次学习到{durationFormat(Number(duration))}
|
||||
</div>
|
||||
{progress === 0 && (
|
||||
<div
|
||||
className={styles["link"]}
|
||||
@ -47,14 +44,19 @@ export const HourCompenent: React.FC<PropInterface> = ({
|
||||
</div>
|
||||
)}
|
||||
{progress !== 0 && (
|
||||
<div
|
||||
className={styles["link"]}
|
||||
onClick={() => {
|
||||
navigate(`/course/play/${id}`);
|
||||
}}
|
||||
>
|
||||
继续学习
|
||||
</div>
|
||||
<>
|
||||
<div className={styles["record"]}>
|
||||
上次学习到{durationFormat(Number(duration))}
|
||||
</div>
|
||||
<div
|
||||
className={styles["link"]}
|
||||
onClick={() => {
|
||||
navigate(`/course/play/${id}`);
|
||||
}}
|
||||
>
|
||||
继续学习
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user