提交 9f9df0c9 作者: 18928357778

改-首页样式调整

上级 53dccdd8
...@@ -7,14 +7,6 @@ import ContentBox from "~/components/contentBox"; ...@@ -7,14 +7,6 @@ import ContentBox from "~/components/contentBox";
import RotationChart from "./components/rotationChart"; import RotationChart from "./components/rotationChart";
import Map from "./components/map"; import Map from "./components/map";
import tubiao from "./assets/tubiao.png";
import fuwu from "./assets/fuwu.png";
import xiaoshou from "./assets/xiaoshou.png";
import baoxian from "./assets/baoxian.png";
import peixun from "./assets/peixun.png";
import gongju from "./assets/gongju.png";
import xwbg from "./assets/xwbg.png";
const icon = [tubiao, fuwu, xiaoshou, baoxian, peixun, gongju];
import { import {
FilterOptionResp, FilterOptionResp,
RegionResp, RegionResp,
...@@ -114,7 +106,7 @@ export default function WaterfallFlowBody() { ...@@ -114,7 +106,7 @@ export default function WaterfallFlowBody() {
]; ];
const [leftDomList, setLeftDomList] = useState( const [leftDomList, setLeftDomList] = useState(
Array<{ element: JSX.Element , type?: string,}> Array<{ element: JSX.Element; type?: string }>
); );
const [rightTopDomList, setRightTopDomList] = useState<JSX.Element>(); const [rightTopDomList, setRightTopDomList] = useState<JSX.Element>();
const [rightBottomDomList, setRightBottomDomList] = useState<JSX.Element>(); const [rightBottomDomList, setRightBottomDomList] = useState<JSX.Element>();
...@@ -132,11 +124,10 @@ export default function WaterfallFlowBody() { ...@@ -132,11 +124,10 @@ export default function WaterfallFlowBody() {
]; ];
const { IndustryFlightSkills } = flightSkillsApi; const { IndustryFlightSkills } = flightSkillsApi;
const flightApiTypeList = ["licenseId", "flightSkillsId"]; const flightApiTypeList = ["licenseId", "flightSkillsId"];
const { listAllIndustry, listAllAppType } = jobServicesApi; const { listAllIndustry, listAllAppType } = jobServicesApi;
const jobApiTypeList = ["industryId", "appTypeId"]; const jobApiTypeList = ["industryId", "appTypeId"];
useEffect(() => { useEffect(() => {
(async () => { (async () => {
// listNewsApi.listNewsPage({ pageNo: 1, pageSize: 5 }).then((res) => { // listNewsApi.listNewsPage({ pageNo: 1, pageSize: 5 }).then((res) => {
...@@ -211,13 +202,10 @@ export default function WaterfallFlowBody() { ...@@ -211,13 +202,10 @@ export default function WaterfallFlowBody() {
setMoreEqList(res1.map((item) => item.result).flat()); setMoreEqList(res1.map((item) => item.result).flat());
setLeftDomList( setLeftDomList(
columns.map((item, index) => { columns.map((item, index) => {
if (index < 3) { if (index < 3) {
console.log("路由跳转",index); return { element: leftDom(item, index, listValue), type: "left" };
return { element: leftDom(item, index, listValue) , type:"left" };
} }
console.log("路由跳转",index); return { element: leftDom(item, index, listValue), type: "right" };
return { element: leftDom(item, index, listValue) , type:"right" };
}) })
); );
...@@ -248,10 +236,9 @@ export default function WaterfallFlowBody() { ...@@ -248,10 +236,9 @@ export default function WaterfallFlowBody() {
<div key={item.title} className="item"> <div key={item.title} className="item">
<div className="item-title"> <div className="item-title">
<div className="item-left"> <div className="item-left">
{/* <div className="item-left-icon"> <div className="item-left-label" onClick={() => routerPath(index)}>
<Image src={icon[index]} alt="#" /> {item.title}
</div> */} </div>
<div className="item-left-label" onClick={() => routerPath(index)}>{item.title}</div>
</div> </div>
<div> <div>
<Select <Select
...@@ -305,9 +292,6 @@ export default function WaterfallFlowBody() { ...@@ -305,9 +292,6 @@ export default function WaterfallFlowBody() {
); );
})} })}
</Space> </Space>
{/* <div className="item-bottom" onClick={() => routerPath(index)}>
全部
</div> */}
</div> </div>
</div> </div>
); );
...@@ -321,8 +305,7 @@ export default function WaterfallFlowBody() { ...@@ -321,8 +305,7 @@ export default function WaterfallFlowBody() {
className="title-label" className="title-label"
onClick={() => router.push("/projectInfo")} onClick={() => router.push("/projectInfo")}
> >
行业新闻 行业新闻 &gt;
&gt;
</div> </div>
</div> </div>
<div className="body"> <div className="body">
...@@ -348,15 +331,13 @@ export default function WaterfallFlowBody() { ...@@ -348,15 +331,13 @@ export default function WaterfallFlowBody() {
const rightDom2 = (list: Array<NewsTenderType>) => { const rightDom2 = (list: Array<NewsTenderType>) => {
return ( return (
<div key={1008} className="right-box-item right-item-second"> <div key={1008} className="right-box-item right-item-second">
<Image src={xwbg} alt="#" width={384} height={249} />
<div className="item-box"> <div className="item-box">
<div className="title"> <div className="title">
<div <div
className="title-label" className="title-label"
onClick={() => router.push("/projectInfo")} onClick={() => router.push("/projectInfo")}
> >
招标快讯 招标快讯 &gt;
&gt;
</div> </div>
</div> </div>
<div className="body"> <div className="body">
...@@ -367,13 +348,7 @@ export default function WaterfallFlowBody() { ...@@ -367,13 +348,7 @@ export default function WaterfallFlowBody() {
<div className="label-bottom">{item.tenderPrice}</div> <div className="label-bottom">{item.tenderPrice}</div>
</div> </div>
<div className="item-right"> <div className="item-right">
<Image <div className="left">{`${item.tenderPrice}W`}</div>
src={require("./assets/button.png")}
alt="#"
width={103}
height={22}
/>
<div className="left">{item.tenderPrice}W</div>
<div className="right">申请合作</div> <div className="right">申请合作</div>
</div> </div>
</div> </div>
......
import styled from "styled-components"; import styled from "styled-components";
import button from "./assets/button.png"; import button from "./assets/button.png";
import xwbg from "./assets/xwbg.png";
export default function Style() { export default function Style() {
return <></>; return <></>;
} }
...@@ -37,10 +39,10 @@ export const Box = styled.div` ...@@ -37,10 +39,10 @@ export const Box = styled.div`
font-weight: bold; font-weight: bold;
color: #000000; color: #000000;
line-height: 32px; line-height: 32px;
&:hover{ &:hover {
cursor: pointer; cursor: pointer;
color: #ff552d; color: #ff552d;
} }
} }
} }
.select-box { .select-box {
...@@ -189,11 +191,7 @@ export const Box = styled.div` ...@@ -189,11 +191,7 @@ export const Box = styled.div`
.right-item-second { .right-item-second {
border-radius: 6px; border-radius: 6px;
background-color: #fff; background-color: #fff;
position: relative; background: url(${xwbg.src}) no-repeat;
.item-box {
position: absolute;
top: 0;
}
.title { .title {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -276,10 +274,12 @@ export const Box = styled.div` ...@@ -276,10 +274,12 @@ export const Box = styled.div`
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.item-right { .item-right {
display: flex;
justify-content: space-between;
padding: 0 5px;
width: 103px; width: 103px;
height: 22px; height: 22px;
background: url(${button as unknown as string}) no-repeat; background: url(${button.src}) no-repeat;
position: relative;
.left { .left {
width: 35px; width: 35px;
height: 22px; height: 22px;
...@@ -288,7 +288,6 @@ export const Box = styled.div` ...@@ -288,7 +288,6 @@ export const Box = styled.div`
font-family: PingFangSC-Medium, PingFang SC; font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500; font-weight: 500;
color: #ff4500; color: #ff4500;
position: absolute;
text-align: center; text-align: center;
left: 4px; left: 4px;
top: 0; top: 0;
...@@ -300,10 +299,6 @@ export const Box = styled.div` ...@@ -300,10 +299,6 @@ export const Box = styled.div`
font-size: 11px; font-size: 11px;
font-family: MicrosoftYaHei; font-family: MicrosoftYaHei;
color: #ffffff; color: #ffffff;
position: absolute;
text-align: center;
right: 3px;
top: 0;
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论