feat: 通告和轮播图配置
This commit is contained in:
2
dist/pages/home/index.js
vendored
2
dist/pages/home/index.js
vendored
File diff suppressed because one or more lines are too long
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user