mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-06-08 02:44:11 +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"]}>
|
||||
<Image
|
||||
loading="lazy"
|
||||
width={120}
|
||||
height={90}
|
||||
style={{ borderRadius: 10 }}
|
||||
@ -65,7 +66,13 @@ export const CoursesModel: React.FC<PropInterface> = ({
|
||||
)}
|
||||
{progress >= 100 && (
|
||||
<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>
|
||||
</div>
|
||||
)}
|
||||
|
@ -56,6 +56,7 @@ const LatestLearnPage = () => {
|
||||
>
|
||||
<div style={{ width: 120 }}>
|
||||
<Image
|
||||
loading="lazy"
|
||||
src={item.course.thumb}
|
||||
width={120}
|
||||
height={90}
|
||||
@ -91,6 +92,7 @@ const LatestLearnPage = () => {
|
||||
{item.record.progress >= 10000 && (
|
||||
<>
|
||||
<Image
|
||||
loading="lazy"
|
||||
width={24}
|
||||
height={24}
|
||||
src={mediaIcon}
|
||||
|
Loading…
x
Reference in New Issue
Block a user