Merge branch 'main' of http://113.45.157.195:3003/insiinc/re-mooc
This commit is contained in:
commit
879d010252
|
@ -77,11 +77,11 @@ const CoursesSection: React.FC<CoursesSectionProps> = ({
|
||||||
type: TaxonomySlug.CATEGORY,
|
type: TaxonomySlug.CATEGORY,
|
||||||
})
|
})
|
||||||
const { data } = api.post.findMany.useQuery({
|
const { data } = api.post.findMany.useQuery({
|
||||||
take: 10,
|
take: 8,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log(data)
|
console.log(data,'成功')
|
||||||
}, [data])
|
}, [data])
|
||||||
const handleClick = (course: Course) => {
|
const handleClick = (course: Course) => {
|
||||||
navigate(`/courses?courseId=${course.id}/detail`);
|
navigate(`/courses?courseId=${course.id}/detail`);
|
||||||
|
@ -212,7 +212,7 @@ const CoursesSection: React.FC<CoursesSectionProps> = ({
|
||||||
</div>
|
</div>
|
||||||
<span className="flex items-center bg-blue-100 px-2 py-1 rounded-full text-blue-600 hover:bg-blue-200 transition-colors duration-300">
|
<span className="flex items-center bg-blue-100 px-2 py-1 rounded-full text-blue-600 hover:bg-blue-200 transition-colors duration-300">
|
||||||
<EyeOutlined className="ml-1.5 text-sm" />
|
<EyeOutlined className="ml-1.5 text-sm" />
|
||||||
<span className="text-xs font-medium">观看次数{course.progress}%</span>
|
<span className="text-xs font-medium">观看次数{course.progress}次</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="pt-4 border-t border-gray-100 text-center">
|
<div className="pt-4 border-t border-gray-100 text-center">
|
||||||
|
|
Loading…
Reference in New Issue