mirror of
https://github.com/PlayEdu/backend
synced 2025-06-28 02:24:13 +08:00
线上课学员、学员学习优化
This commit is contained in:
parent
71c0f03be4
commit
9519e7c07f
@ -83,6 +83,8 @@ const CourseUserPage = () => {
|
|||||||
<>
|
<>
|
||||||
{records[record.id] ? (
|
{records[record.id] ? (
|
||||||
<span>{dateFormat(records[record.id].created_at)}</span>
|
<span>{dateFormat(records[record.id].created_at)}</span>
|
||||||
|
) : hourCount[record.id] ? (
|
||||||
|
<span>{dateFormat(hourCount[record.id])}</span>
|
||||||
) : (
|
) : (
|
||||||
<span>-</span>
|
<span>-</span>
|
||||||
)}
|
)}
|
||||||
@ -126,7 +128,7 @@ const CourseUserPage = () => {
|
|||||||
)}
|
)}
|
||||||
%
|
%
|
||||||
</span>
|
</span>
|
||||||
) : hourCount[record.id] && hourCount[record.id] > 0 ? (
|
) : hourCount[record.id] ? (
|
||||||
<span className="c-red">1%</span>
|
<span className="c-red">1%</span>
|
||||||
) : (
|
) : (
|
||||||
<span className="c-red">0%</span>
|
<span className="c-red">0%</span>
|
||||||
@ -155,7 +157,7 @@ const CourseUserPage = () => {
|
|||||||
.then((res: any) => {
|
.then((res: any) => {
|
||||||
setTotal(res.data.total);
|
setTotal(res.data.total);
|
||||||
setList(res.data.data);
|
setList(res.data.data);
|
||||||
setHourCount(res.data.user_course_hour_user_count);
|
setHourCount(res.data.user_course_hour_user_first_at);
|
||||||
setRecords(res.data.user_course_records);
|
setRecords(res.data.user_course_records);
|
||||||
setCourse(res.data.course);
|
setCourse(res.data.course);
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user