|
|
@ -7,6 +7,7 @@ import VideoCover from "@/components/videoCover/videoCover"; |
|
|
|
import courseTag from '@/static/img/courseTag.png' |
|
|
|
import courseTag from '@/static/img/courseTag.png' |
|
|
|
import ArticlesBox from "@/components/articlesBox/articlesBox"; |
|
|
|
import ArticlesBox from "@/components/articlesBox/articlesBox"; |
|
|
|
import arrowRight from '@/static/img/arrow-right.png' |
|
|
|
import arrowRight from '@/static/img/arrow-right.png' |
|
|
|
|
|
|
|
import PageScript from "@/components/pageScript/pageScript"; |
|
|
|
|
|
|
|
|
|
|
|
const CurRecommended: FC = () => { |
|
|
|
const CurRecommended: FC = () => { |
|
|
|
const [page, setPage] = useState(1) |
|
|
|
const [page, setPage] = useState(1) |
|
|
@ -45,17 +46,15 @@ const CurRecommended: FC = () => { |
|
|
|
let examines: ReactNode | undefined |
|
|
|
let examines: ReactNode | undefined |
|
|
|
if (articles.length > 0) { |
|
|
|
if (articles.length > 0) { |
|
|
|
examines = ( |
|
|
|
examines = ( |
|
|
|
<View className='bg-white rounded-20 clip px-3 mb-5'> |
|
|
|
<View className='bg-white rounded-20 clip px-3'> |
|
|
|
<View className='mt-3 mb-3 bold text-dark flex justify-between'> |
|
|
|
<View className='mt-3 bold text-dark flex justify-between'> |
|
|
|
<Text className='font-32'>推荐文章</Text> |
|
|
|
<Text className='font-32'>推荐文章</Text> |
|
|
|
<View className='font-24 text-muted flex align-center' onClick={jumpArticles}> |
|
|
|
<View className='font-24 text-muted flex align-center' onClick={jumpArticles}> |
|
|
|
<Text>查看更多</Text> |
|
|
|
<Text>查看更多</Text> |
|
|
|
<Image src={arrowRight} mode='widthFix' style={{width: '20rpx', height: '20rpx'}}/> |
|
|
|
<Image src={arrowRight} mode='widthFix' style={{width: '20rpx', height: '20rpx'}}/> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
{ |
|
|
|
{articles.map(d => <ArticlesBox data={d}/>)} |
|
|
|
articles.map(d => <ArticlesBox data={d}/>) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
</View> |
|
|
|
</View> |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
@ -63,7 +62,7 @@ const CurRecommended: FC = () => { |
|
|
|
let videos: ReactNode | undefined |
|
|
|
let videos: ReactNode | undefined |
|
|
|
if (data.length > 0) { |
|
|
|
if (data.length > 0) { |
|
|
|
videos = ( |
|
|
|
videos = ( |
|
|
|
<View> |
|
|
|
<View className='mt-3'> |
|
|
|
<Image src={courseTag} mode='widthFix' className={styles.courseTag}/> |
|
|
|
<Image src={courseTag} mode='widthFix' className={styles.courseTag}/> |
|
|
|
<View className={'pb-2 flex justify-between flex-wrap ' + styles.videoListBox}> |
|
|
|
<View className={'pb-2 flex justify-between flex-wrap ' + styles.videoListBox}> |
|
|
|
{ |
|
|
|
{ |
|
|
@ -85,7 +84,7 @@ const CurRecommended: FC = () => { |
|
|
|
<> |
|
|
|
<> |
|
|
|
{examines} |
|
|
|
{examines} |
|
|
|
{videos} |
|
|
|
{videos} |
|
|
|
<View className='text-center font-24 text-dark'>暂无更多</View> |
|
|
|
<PageScript/> |
|
|
|
</> |
|
|
|
</> |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|