修复:AI问答模块
This commit is contained in:
@@ -3,7 +3,7 @@ import {pageCmsArticle} from "@/api/cms/cmsArticle";
|
||||
import {CmsArticle} from "@/api/cms/cmsArticle/model";
|
||||
import Taro from '@tarojs/taro'
|
||||
import {useRouter} from '@tarojs/taro'
|
||||
import {Image} from '@nutui/nutui-react-taro'
|
||||
import {Image,InfiniteLoading} from '@nutui/nutui-react-taro'
|
||||
import {getCmsNavigation} from "@/api/cms/cmsNavigation";
|
||||
import {CmsNavigation} from "@/api/cms/cmsNavigation/model";
|
||||
|
||||
@@ -22,7 +22,7 @@ const List = () => {
|
||||
// 当前栏目信息
|
||||
const navs = await getCmsNavigation(categoryId);
|
||||
// 终极新闻列表
|
||||
const articles = await pageCmsArticle({categoryId,limit: 50});
|
||||
const articles = await pageCmsArticle({categoryId, limit: 50});
|
||||
|
||||
// 当前栏目信息
|
||||
if (navs) {
|
||||
@@ -39,7 +39,7 @@ const List = () => {
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<div className={'bg-red-200 h-full'}>
|
||||
<InfiniteLoading className={'bg-red-200'} style={{height: '100vh'}}>
|
||||
<div style={{padding: navigation?.span + 'px'}}>
|
||||
<Image src={navigation?.style} width={'100%'}
|
||||
height={'auto'}/>
|
||||
@@ -52,7 +52,7 @@ const List = () => {
|
||||
backgroundSize: '100%',
|
||||
backgroundRepeat: 'no-repeat',
|
||||
width: '100%',
|
||||
height: '70px',
|
||||
height: '67px',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center'
|
||||
@@ -60,7 +60,7 @@ const List = () => {
|
||||
>
|
||||
{/* 标题 */}
|
||||
<div
|
||||
className={'absolute z-50 text-sm text-center text-[#F2FE03] font-bold leading-tight px-1'}
|
||||
className={'z-50 text-sm text-center text-[#F2FE03] font-bold leading-tight px-1'}
|
||||
>
|
||||
{navigation?.categoryName}
|
||||
</div>
|
||||
@@ -85,19 +85,16 @@ const List = () => {
|
||||
>
|
||||
{
|
||||
// 图片容器
|
||||
item.image && (
|
||||
<div className={'w-full m-3 flex justify-center'}
|
||||
style={{
|
||||
width: '108px',
|
||||
height: '160px',
|
||||
}}>
|
||||
<img
|
||||
className={'object-cover'}
|
||||
src={item.image}
|
||||
alt={item.title || ''}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
item.image ? (
|
||||
<div className={'w-full m-3 flex justify-center'}
|
||||
style={{
|
||||
width: '108px',
|
||||
height: '160px',
|
||||
}}>
|
||||
<Image className={'object-cover'} src={item.image}/>
|
||||
</div>
|
||||
) :
|
||||
<div className={'px-2'}></div>
|
||||
}
|
||||
{/* 标题 */}
|
||||
<div className={'flex flex-col items-start my-3 text-sm leading-tight'} style={{
|
||||
@@ -117,7 +114,7 @@ const List = () => {
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</InfiniteLoading>
|
||||
)
|
||||
}
|
||||
export default List
|
||||
|
||||
Reference in New Issue
Block a user