diff --git a/src/pages/course/compenents/hour.module.scss b/src/pages/course/compenents/hour.module.scss index 001af9e..c98ea78 100644 --- a/src/pages/course/compenents/hour.module.scss +++ b/src/pages/course/compenents/hour.module.scss @@ -11,6 +11,14 @@ cursor: pointer; &:hover { background: rgba(255, 77, 79, 0.05); + .left-item { + i { + color: #ff4d4f; + } + .title { + color: #ff4d4f; + } + } } .left-item { diff --git a/src/pages/course/compenents/hour.tsx b/src/pages/course/compenents/hour.tsx index 7bcbe15..4deaadd 100644 --- a/src/pages/course/compenents/hour.tsx +++ b/src/pages/course/compenents/hour.tsx @@ -57,7 +57,7 @@ export const HourCompenent: React.FC = ({ }; return ( -
+ <> = ({ goNextVideo(); }} > -
- -
- {title}({durationFormat(Number(duration))}) +
{ + setVisible(true); + }} + > +
+ +
+ {title}({durationFormat(Number(duration))}) +
+
+
+ {progress >= 0 && progress < 100 && ( + <> + {progress === 0 &&
开始学习
} + {progress !== 0 && ( + <> +
+ 上次学习到 + {durationFormat(Number(record.finished_duration || 0))} +
+
继续学习
+ + )} + + )} + {progress >= 100 &&
已学完
}
-
- {progress >= 0 && progress < 100 && ( - <> - {progress === 0 && ( -
{ - setVisible(true); - }} - > - 开始学习 -
- )} - {progress !== 0 && ( - <> -
- 上次学习到 - {durationFormat(Number(record.finished_duration || 0))} -
-
{ - setVisible(true); - }} - > - 继续学习 -
- - )} - - )} - {progress >= 100 && ( -
{ - setVisible(true); - }} - > - 已学完 -
- )} -
-
+ ); };