feat: 通告和轮播图配置

This commit is contained in:
huxiaoshuang
2022-11-22 17:30:10 +08:00
parent 42d2b9b7f4
commit 29a5ddbeae
2 changed files with 6 additions and 8 deletions

File diff suppressed because one or more lines are too long

View File

@@ -33,15 +33,13 @@ const Home = () => {
const [show, setShow] = react.useState(false);
const [value, setValue] = react.useState("");
const [SearchValue, setSearchValue] = useState("");
const [SearchValue, setSearchValue] = useState<any>('');
const [details,setdetails]=useState<any>([]) //活动详情
// 系统配置
const [systemConfig,setsystemConfig]=useState<any>({})
const onChange = (e) => {};
const images = [
"cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/download.jpg",
"cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/images.jpg",
];
useEffect(() => {
// 设置标题
@@ -231,9 +229,9 @@ const Home = () => {
paginationVisible
onChange={onChange}
>
{images.map((item, index) => (
{(systemConfig?.imagesArr??[]).map((item:any, index:any) => (
<SwiperItem key={`swiper#demo1${index}`}>
<Image src={item} fit="cover" width="100%" height="200px" />
<Image src={item?.url} fit="cover" width="100%" height="200px" />
</SwiperItem>
))}
</Swiper>