|
|
|
@ -77,14 +77,14 @@ export const VideoList: FC<Props> = ({categoryKey, setCategoryKey}) => { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// eventsIndex.on(({id}) => {
|
|
|
|
|
// if (id == null) return;
|
|
|
|
|
// for (const [index, notFinished] of data.is_not_finished.entries()) {
|
|
|
|
|
// if (notFinished.id === id) {
|
|
|
|
|
// data.is_finished.push(notFinished)
|
|
|
|
|
// data.is_not_finished.splice(index, 1)
|
|
|
|
|
// return
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// if (id == null) return;
|
|
|
|
|
// for (const [index, notFinished] of data.is_not_finished.entries()) {
|
|
|
|
|
// if (notFinished.id === id) {
|
|
|
|
|
// data.is_finished.push(notFinished)
|
|
|
|
|
// data.is_not_finished.splice(index, 1)
|
|
|
|
|
// return
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
|
|
useDidShow(() => { |
|
|
|
@ -123,17 +123,19 @@ export const VideoList: FC<Props> = ({categoryKey, setCategoryKey}) => { |
|
|
|
|
&& key === 'is_required' |
|
|
|
|
? <LoginView/> : value?.length ? |
|
|
|
|
<> |
|
|
|
|
{value?.map(c => |
|
|
|
|
<VideoCover |
|
|
|
|
thumb={c.thumb} |
|
|
|
|
title={c.title} |
|
|
|
|
id={c.id} |
|
|
|
|
depId={c.id} |
|
|
|
|
key={c.id} |
|
|
|
|
time={formatMinute(c.course_duration)} |
|
|
|
|
content={rateOfLearning(c.id, c.class_hour)} |
|
|
|
|
/>)} |
|
|
|
|
<View className='text-center text-muted'>暂无更多</View> |
|
|
|
|
{ |
|
|
|
|
value?.map(c => |
|
|
|
|
<VideoCover |
|
|
|
|
thumb={c.thumb} |
|
|
|
|
title={c.title} |
|
|
|
|
id={c.id} |
|
|
|
|
depId={c.id} |
|
|
|
|
key={c.id} |
|
|
|
|
time={formatMinute(c.course_duration)} |
|
|
|
|
content={rateOfLearning(c.id, c.class_hour)} |
|
|
|
|
/>) |
|
|
|
|
} |
|
|
|
|
<View className='text-center text-muted flex-1'>暂无更多</View> |
|
|
|
|
</> |
|
|
|
|
: <Empty name='暂无课程'/> |
|
|
|
|
} |
|
|
|
|