提交 f560f8ba 作者: 翁进城

Merge remote-tracking branch 'origin/caoyun'

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