mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-06-09 04:24:07 +08:00
首页。最近学习页懒加载
This commit is contained in:
parent
59b80c4158
commit
07cfa836a2
@ -29,6 +29,7 @@ export const CoursesModel: React.FC<PropInterface> = ({
|
|||||||
>
|
>
|
||||||
<div className={styles["top-content"]}>
|
<div className={styles["top-content"]}>
|
||||||
<Image
|
<Image
|
||||||
|
loading="lazy"
|
||||||
width={120}
|
width={120}
|
||||||
height={90}
|
height={90}
|
||||||
style={{ borderRadius: 10 }}
|
style={{ borderRadius: 10 }}
|
||||||
@ -65,7 +66,13 @@ export const CoursesModel: React.FC<PropInterface> = ({
|
|||||||
)}
|
)}
|
||||||
{progress >= 100 && (
|
{progress >= 100 && (
|
||||||
<div className={styles["success"]}>
|
<div className={styles["success"]}>
|
||||||
<Image width={24} height={24} src={mediaIcon} preview={false} />
|
<Image
|
||||||
|
loading="lazy"
|
||||||
|
width={24}
|
||||||
|
height={24}
|
||||||
|
src={mediaIcon}
|
||||||
|
preview={false}
|
||||||
|
/>
|
||||||
<span className="ml-8">恭喜你学完此课程!</span>
|
<span className="ml-8">恭喜你学完此课程!</span>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
@ -56,6 +56,7 @@ const LatestLearnPage = () => {
|
|||||||
>
|
>
|
||||||
<div style={{ width: 120 }}>
|
<div style={{ width: 120 }}>
|
||||||
<Image
|
<Image
|
||||||
|
loading="lazy"
|
||||||
src={item.course.thumb}
|
src={item.course.thumb}
|
||||||
width={120}
|
width={120}
|
||||||
height={90}
|
height={90}
|
||||||
@ -91,6 +92,7 @@ const LatestLearnPage = () => {
|
|||||||
{item.record.progress >= 10000 && (
|
{item.record.progress >= 10000 && (
|
||||||
<>
|
<>
|
||||||
<Image
|
<Image
|
||||||
|
loading="lazy"
|
||||||
width={24}
|
width={24}
|
||||||
height={24}
|
height={24}
|
||||||
src={mediaIcon}
|
src={mediaIcon}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user