From 4f673d2a8fcc708b0e2921f3afec684d342b13f4 Mon Sep 17 00:00:00 2001 From: xixi <123@qq.com> Date: Mon, 22 Jul 2024 10:46:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E9=A1=B5=E9=9D=A2=E5=B9=BF?= =?UTF-8?q?=E5=91=8A=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/scrollAD/ScrollAd.tsx | 3 ++- src/components/scrollAD/scrollAd.css | 4 ++-- src/route/index/Index.tsx | 11 ++++++----- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/components/scrollAD/ScrollAd.tsx b/src/components/scrollAD/ScrollAd.tsx index 71c9037..54fbdd2 100644 --- a/src/components/scrollAD/ScrollAd.tsx +++ b/src/components/scrollAD/ScrollAd.tsx @@ -18,7 +18,8 @@ export default function ScrollAd(props:any) {
- {props.ad} + {props.ad} + {/* 广告11111111111111111111111112222222222222222222223333333333333 */}
diff --git a/src/components/scrollAD/scrollAd.css b/src/components/scrollAD/scrollAd.css index 22792f8..2049803 100644 --- a/src/components/scrollAD/scrollAd.css +++ b/src/components/scrollAD/scrollAd.css @@ -12,10 +12,10 @@ } .scrolling-ad-content { - + font-size: 16px; display: inline-block; padding-left: 100%; /* 确保广告从盒子外开始滚动 */ - animation: scrollLeft 10s linear infinite; /* 滚动动画,持续时间为10秒,线性匀速,无限循环 */ + animation: scrollLeft 25s linear infinite; /* 滚动动画,持续时间为25秒,线性匀速,无限循环 */ } @keyframes scrollLeft { diff --git a/src/route/index/Index.tsx b/src/route/index/Index.tsx index b42233f..fe3e4a9 100644 --- a/src/route/index/Index.tsx +++ b/src/route/index/Index.tsx @@ -4,7 +4,7 @@ import { MouseEvent, Reducer, useEffect, useReducer, useState } from "react"; import { useNavigate, useSearchParams, Outlet } from "react-router-dom"; import { IMenuListItem, IMenuWithTopButton } from "../../interfaces/menu/IMenuWithTopButton.ts"; import MenuWithTopButton from "../../components/menu/MenuWithTopButton.tsx"; -// import MenuWithBottomButtom from '../../components/menu/MenuWithBottomButton.tsx' +import MenuWithBottomButtom from '../../components/menu/MenuWithBottomButton.tsx' import MenuTreeWithTopButton from "../../components/menu/MenuTreeWithTopButton.tsx"; // import ListProj from "../../components/list/ListProj.tsx"; // import ListProjAgent from "../../components/list/ListProjAgent.tsx"; @@ -233,7 +233,7 @@ export default function Index() { setShowSearchBox(false) // setNewname(location.pathname) - setPathArray([{ title: 首页 }, { title: '编辑项目' }]) + setPathArray([{ title: 首页 }, { title: '编辑项目' }]) } else if (location.pathname.includes('/proj-edit/step1')) { setNow('标题简介') setShowSearchBox(false) @@ -325,7 +325,7 @@ export default function Index() { }) } - + }, []); @@ -388,7 +388,7 @@ export default function Index() { list={agentMenu.list} handleListItem={agentMenu.handleListItem} /> */} - {/* */} + />
@@ -453,6 +453,7 @@ export default function Index() { { value: 'ALL', label: '全托管' }, ]} defaultValue="" + // placeholder={'选择类型'} />