提交 151747b2 作者: 18928357778

改-首页样式调整

上级 b2963dad
...@@ -18,9 +18,11 @@ ...@@ -18,9 +18,11 @@
height: 35px; height: 35px;
background-image: url(./assets/logo.png); background-image: url(./assets/logo.png);
background-size: 100% 100%; background-size: 100% 100%;
margin-right: 40px;
} }
.tabs { .tabs {
width: 800px;
height: 100%; height: 100%;
margin-right: 58px; margin-right: 58px;
:global .ant-tabs-nav { :global .ant-tabs-nav {
......
import styled from "styled-components" import styled from "styled-components";
export const Box = styled.div` export const Box = styled.div`
box-sizing: border-box; box-sizing: border-box;
.right-box-item{ .right-box-item {
margin-bottom: 20px; margin-bottom: 10px;
} }
` `;
\ No newline at end of file
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
height: 47px; height: 47px;
.qrcodeItem { .qrcodeItem {
margin-right: 206px; margin-right: 206px;
text-align: center;
&:nth-last-child(1) { &:nth-last-child(1) {
margin-right: 0; margin-right: 0;
} }
......
...@@ -29,7 +29,7 @@ const footerStyle: React.CSSProperties = { ...@@ -29,7 +29,7 @@ const footerStyle: React.CSSProperties = {
lineHeight: "1", lineHeight: "1",
padding: 0, padding: 0,
position: "relative", position: "relative",
marginTop: 78, marginTop: 60,
}; };
type Props = { type Props = {
......
...@@ -40,7 +40,7 @@ export const Box = styled.div` ...@@ -40,7 +40,7 @@ export const Box = styled.div`
height: 22px; height: 22px;
line-height: 22px; line-height: 22px;
padding-right: 22px; padding-right: 22px;
border-right: 1px solid #b2b2b2; border-right: 1px solid #e0e0e0;
} }
.active { .active {
color: #ff552d; color: #ff552d;
......
...@@ -10,7 +10,6 @@ export const Box = styled.div` ...@@ -10,7 +10,6 @@ export const Box = styled.div`
display: flex; display: flex;
.rotationChart { .rotationChart {
width: 806px; width: 806px;
margin-right: 24px;
.slick-list { .slick-list {
border-radius: 6px; border-radius: 6px;
} }
......
...@@ -13,6 +13,7 @@ import xiaoshou from "./assets/xiaoshou.png"; ...@@ -13,6 +13,7 @@ import xiaoshou from "./assets/xiaoshou.png";
import baoxian from "./assets/baoxian.png"; import baoxian from "./assets/baoxian.png";
import peixun from "./assets/peixun.png"; import peixun from "./assets/peixun.png";
import gongju from "./assets/gongju.png"; import gongju from "./assets/gongju.png";
import xwbg from "./assets/xwbg.png";
const icon = [tubiao, fuwu, xiaoshou, baoxian, peixun, gongju]; const icon = [tubiao, fuwu, xiaoshou, baoxian, peixun, gongju];
import { import {
FilterOptionResp, FilterOptionResp,
...@@ -260,22 +261,36 @@ export default function WaterfallFlowBody() { ...@@ -260,22 +261,36 @@ export default function WaterfallFlowBody() {
<div className="item-body"> <div className="item-body">
<Space size={[15, 0]} wrap> <Space size={[15, 0]} wrap>
{index === 4 {index === 4
? list.map((item) => ( ? list.map((item, index) => (
<div key={item} className="item-bubble"> <div
key={item}
className={`item-bubble ${
index === 0 || index === 1 || index === 2 ? "active" : ""
}`}
>
{item} {item}
</div> </div>
)) ))
: index === 5 : index === 5
? list2.map((item) => ( ? list2.map((item, index) => (
<div key={item} className="item-bubble"> <div
key={item}
className={`item-bubble ${
index === 0 || index === 1 || index === 2 ? "active" : ""
}`}
>
{item} {item}
</div> </div>
)) ))
: resultList[index].map((item) => { : resultList[index].map((item, index) => {
return ( return (
<div <div
key={item?.name || item?.appName || item?.skillsName} key={item?.name || item?.appName || item?.skillsName}
className="item-bubble" className={`item-bubble ${
index === 0 || index === 1 || index === 2
? "active"
: ""
}`}
onClick={() => routerPath(index, item)} onClick={() => routerPath(index, item)}
> >
{item?.name || item?.appName || item?.skillsName} {item?.name || item?.appName || item?.skillsName}
...@@ -326,34 +341,37 @@ export default function WaterfallFlowBody() { ...@@ -326,34 +341,37 @@ 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">
<div className="title"> <Image src={xwbg} alt="#" width={384} height={249} />
招标快讯 <div className="item-box">
<div <div className="title">
className="title-label" 招标快讯
onClick={() => router.push("/projectInfo")} <div
> className="title-label"
&gt; onClick={() => router.push("/projectInfo")}
>
&gt;
</div>
</div> </div>
</div> <div className="body">
<div className="body"> {list?.map((item) => (
{list?.map((item) => ( <div key={item.id} className="body-item">
<div key={item.id} className="body-item"> <div className="item-label" title={item.tenderContent}>
<div className="item-label" title={item.tenderContent}> {item.tenderContent}
{item.tenderContent} <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
<Image src={require("./assets/button.png")}
src={require("./assets/button.png")} alt="#"
alt="#" width={103}
width={103} height={22}
height={22} />
/> <div className="left">{item.tenderPrice}W</div>
<div className="left">{item.tenderPrice}W</div> <div className="right">申请合作</div>
<div className="right">申请合作</div> </div>
</div> </div>
</div> ))}
))} </div>
</div> </div>
</div> </div>
); );
......
...@@ -6,7 +6,7 @@ export default function Style() { ...@@ -6,7 +6,7 @@ export default function Style() {
export const Box = styled.div` export const Box = styled.div`
box-sizing: border-box; box-sizing: border-box;
padding-top: 24px; padding-top: 16px;
width: 1200px; width: 1200px;
margin: 0 auto; margin: 0 auto;
.item { .item {
...@@ -46,6 +46,7 @@ export const Box = styled.div` ...@@ -46,6 +46,7 @@ export const Box = styled.div`
background: #ffffff; background: #ffffff;
border-radius: 0px 0px 6px 6px; border-radius: 0px 0px 6px 6px;
.item-bubble { .item-bubble {
font-weight: 520;
height: 32px; height: 32px;
line-height: 32px; line-height: 32px;
font-size: 14px; font-size: 14px;
...@@ -56,6 +57,9 @@ export const Box = styled.div` ...@@ -56,6 +57,9 @@ export const Box = styled.div`
&.active { &.active {
color: #ff552d; color: #ff552d;
} }
&:hover {
color: #ff552d;
}
} }
.item-bottom { .item-bottom {
width: 371px; width: 371px;
...@@ -78,8 +82,8 @@ export const Box = styled.div` ...@@ -78,8 +82,8 @@ export const Box = styled.div`
.title { .title {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 0 25px; padding: 0 20px 0 20px;
height: 60px; height: 46px;
font-size: 16px; font-size: 16px;
font-family: MicrosoftYaHeiUI-Bold, MicrosoftYaHeiUI; font-family: MicrosoftYaHeiUI-Bold, MicrosoftYaHeiUI;
font-weight: bold; font-weight: bold;
...@@ -90,6 +94,9 @@ export const Box = styled.div` ...@@ -90,6 +94,9 @@ export const Box = styled.div`
cursor: pointer; cursor: pointer;
font-size: 16px; font-size: 16px;
font-weight: 400; font-weight: 400;
&:hover {
color: #ff552d;
}
} }
} }
/* .body { /* .body {
...@@ -160,11 +167,16 @@ export const Box = styled.div` ...@@ -160,11 +167,16 @@ 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;
.item-box {
position: absolute;
top: 0;
}
.title { .title {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 0 25px; padding: 0 20px 0 20px;
height: 62px; height: 48px;
font-size: 16px; font-size: 16px;
font-family: MicrosoftYaHeiUI-Bold, MicrosoftYaHeiUI; font-family: MicrosoftYaHeiUI-Bold, MicrosoftYaHeiUI;
font-weight: bold; font-weight: bold;
...@@ -175,6 +187,9 @@ export const Box = styled.div` ...@@ -175,6 +187,9 @@ export const Box = styled.div`
cursor: pointer; cursor: pointer;
font-size: 16px; font-size: 16px;
font-weight: 400; font-weight: 400;
&:hover {
color: #ff552d;
}
} }
} }
/* .body { /* .body {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论