提交 f560f8ba 作者: 翁进城

Merge remote-tracking branch 'origin/caoyun'

......@@ -2,9 +2,16 @@ import React, { Suspense } from "react";
import { Layout, Space } from "antd";
import NavHeader from "~/components/NavHeader";
import FooterView from "~/components/footer";
import {useRouter} from 'next/router'
const { Header, Footer, Content } = Layout;
const homeStyle: React.CSSProperties = {
position:'fixed',
width:'100%',
bottom:'0'
}
const headerStyle: React.CSSProperties = {
height: "auto",
background: "none",
......@@ -24,14 +31,12 @@ const contentStyle: React.CSSProperties = {
};
const footerStyle: React.CSSProperties = {
width:"100%",
color: "",
backgroundColor: "",
lineHeight: "1",
padding: 0,
position: "fixed",
bottom:0,
// marginTop: 60,
position: "relative",
marginTop: 60,
};
type Props = {
......@@ -41,6 +46,7 @@ type Props = {
};
export default function LayoutView(props: Props) {
const router = useRouter()
return (
<Space direction="vertical" style={{ width: "100%" }} size={[0, 48]}>
<Layout
......@@ -54,7 +60,7 @@ export default function LayoutView(props: Props) {
</Header>
<Content style={contentStyle}>{props.children}</Content>
{!props.hideFooter && (
<Footer style={footerStyle}>
<Footer style={router.pathname.includes("home") ? {...footerStyle,...homeStyle} : footerStyle}>
<FooterView></FooterView>
</Footer>
)}
......
......@@ -23,7 +23,10 @@ export default function JobServicesDetail() {
{
key: '1',
label: `团队介绍`,
children: <Image width={1100} height={800} src={detail?.teamPoster ? detail?.teamPoster : ''} alt='error'/>,
children: <div>
{/* <Image width={1100} height={800} src={detail?.teamPoster ? detail?.teamPoster : ''} alt='error'/> */}
<img src={detail?.teamPoster ? detail?.teamPoster : ''} alt="error" />
</div>,
},
{
key: '2',
......
......@@ -7,7 +7,7 @@ export default function Style() {
export const Box = styled.div`
box-sizing: border-box;
overflow-y: auto;
height: 900px;
height: 800px;
.item{
height: 180px;
&-user{
......
......@@ -104,7 +104,7 @@ export const Box = styled.div`
}
}
.tabs{
padding: 0 60px;
padding: 0 24px;
margin-top: 69px;
}
`
\ No newline at end of file
......@@ -167,7 +167,6 @@ export default function JobServices() {
total={count}
onChange={onPageChange}
hideOnSinglePage={true}
style={{ marginTop: 20 }}
/>
</div>
),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论