refactor(components): 重构多个组件并优化公共样式

重构了item-head、item-bottom、item-offer、item-summary和item-tenement组件,优化了props传递和数据处理逻辑
将公共头部和导航样式提取到public.css中,避免重复代码
修复了item-tenement组件中图片显示和数据处理的问题
更新了item-bottom组件的点赞和收藏逻辑,增加错误提示
优化了item-head组件的用户信息显示逻辑
调整了多个组件的样式细节,包括间距、图标大小等
This commit is contained in:
DESKTOP-RQ919RC\Pc
2025-10-30 19:09:38 +08:00
parent 28c890cf94
commit d4244fc783
38 changed files with 2092 additions and 4485 deletions

View File

@@ -2,64 +2,6 @@
width: 1200px;
margin: 0 auto;
}
#details .head-top {
margin-bottom: 30px;
}
#details .head-top .logo {
height: 52px;
}
#details .head-top .input-box {
width: 370px;
height: 40px;
background-color: #ebebeb;
border: 2px solid #d7d7d7;
border-radius: 11px;
padding: 0 15px;
justify-content: space-between;
margin-right: 20px;
}
#details .head-top .input-box .input {
border: none;
outline: none;
height: 100%;
background-color: transparent;
}
#details .head-top .input-box .icon {
width: 18px;
height: 18px;
margin-left: 15rpx;
cursor: pointer;
}
#details .head-top .post-list .post-item {
width: 84px;
height: 34px;
cursor: pointer;
}
#details .head-top .post-list .post-item:not(:last-child) {
margin-right: 10px;
}
#details .head-navigation {
margin-bottom: 20px;
}
#details .head-navigation .icon {
width: 16px;
height: 16px;
}
#details .head-navigation .arrows {
width: 7px;
height: 12px;
margin: 0 5px;
}
#details .head-navigation .text {
padding: 0 5px;
font-size: 14px;
color: #000000;
text-decoration: none;
max-width: 300px;
}
#details .head-navigation .text.textA:hover {
text-decoration: underline;
}
#details .matter {
align-items: flex-start;
margin-bottom: 50px;
@@ -588,10 +530,13 @@
padding-bottom: 10px;
border-bottom: 1px dotted rgba(215, 215, 215, 0.501961);
padding-left: 14px;
padding-top: 12px;
overflow: auto;
}
.answer-discuss .input-box .picture-box .picture {
position: relative;
width: fit-content;
margin-right: 10px;
}
.answer-discuss .input-box .picture-box .picture .img {
height: 60px;
@@ -639,14 +584,15 @@
cursor: pointer;
}
.answer-discuss .input-box .bottom .operate .item .emoji-box {
width: 581px;
width: 582px;
border-radius: 8px;
background-color: #fff;
filter: drop-shadow(0 0 11px rgba(0, 0, 0, 0.1));
top: 45px;
top: 36px;
position: absolute;
z-index: 1;
left: -14px;
left: 50%;
transform: translateX(-50%);
border: 1px solid #ebebeb;
display: none;
flex-wrap: wrap;
@@ -662,7 +608,8 @@
border-bottom: 8px solid #ffffff;
position: absolute;
top: -8px;
left: 15px;
left: 50%;
transform: translateX(-50%);
}
.answer-discuss .input-box .bottom .operate .item .emoji-box .emoji-icon {
margin: 5px;

View File

@@ -1,76 +1,6 @@
#details {
width: 1200px;
margin: 0 auto;
.head-top {
margin-bottom: 30px;
.logo {
height: 52px;
}
.input-box {
width: 370px;
height: 40px;
background-color: rgba(235, 235, 235, 1);
border: 2px solid rgba(215, 215, 215, 1);
border-radius: 11px;
padding: 0 15px;
justify-content: space-between;
margin-right: 20px;
.input {
border: none;
outline: none;
height: 100%;
background-color: transparent;
}
.icon {
width: 18px;
height: 18px;
margin-left: 15rpx;
cursor: pointer;
}
}
.post-list {
.post-item {
width: 84px;
height: 34px;
cursor: pointer;
&:not(:last-child) {
margin-right: 10px;
}
}
}
}
.head-navigation {
margin-bottom: 20px;
.icon {
width: 16px;
height: 16px;
}
.arrows {
width: 7px;
height: 12px;
margin: 0 5px;
}
.text {
padding: 0 5px;
font-size: 14px;
color: #000000;
text-decoration: none;
max-width: 300px;
&.textA:hover {
text-decoration: underline;
}
}
}
.matter {
align-items: flex-start;
@@ -691,11 +621,14 @@
padding-bottom: 10px;
border-bottom: 1px dotted rgba(215, 215, 215, 0.501961);
padding-left: 14px;
padding-top: 12px;
overflow: auto;
}
.answer-discuss .input-box .picture-box .picture {
position: relative;
width: fit-content;
margin-right: 10px;
}
.answer-discuss .input-box .picture-box .picture .img {
@@ -751,14 +684,17 @@
}
.answer-discuss .input-box .bottom .operate .item .emoji-box {
width: 581px;
width: 582px;
border-radius: 8px;
background-color: #fff;
filter: drop-shadow(0 0 11px rgba(0, 0, 0, 0.1));
top: 45px;
// top: 45px;
top: 36px;
position: absolute;
z-index: 1;
left: -14px;
// left: -14px;
left: 50%;
transform: translateX(-50%);
border: 1px solid #ebebeb;
display: none;
flex-wrap: wrap;
@@ -775,7 +711,9 @@
border-bottom: 8px solid #ffffff;
position: absolute;
top: -8px;
left: 15px;
// left: 15px;
left: 50%;
transform: translateX(-50%);
}
.answer-discuss .input-box .bottom .operate .item .emoji-box .emoji-icon {

View File

@@ -2,144 +2,6 @@
width: 1200px;
margin: 0 auto;
}
#homepage-me .head-top {
margin-bottom: 30px;
}
#homepage-me .head-top .logo {
height: 52px;
}
#homepage-me .head-top .input-box {
width: 370px;
height: 40px;
background-color: #ebebeb;
border: 2px solid #d7d7d7;
border-radius: 11px;
padding: 0 15px;
justify-content: space-between;
margin-right: 20px;
}
#homepage-me .head-top .input-box .input {
border: none;
outline: none;
height: 100%;
background-color: transparent;
}
#homepage-me .head-top .input-box .icon {
width: 18px;
height: 18px;
margin-left: 15rpx;
cursor: pointer;
}
#homepage-me .head-top .sign-in {
width: 192px;
height: 40px;
border-radius: 83px;
cursor: pointer;
}
#homepage-me .head-top .sign-in.sign-in-already {
background-color: #ffffff;
font-size: 14px;
color: #333;
}
#homepage-me .head-top .sign-in.sign-in-already .sign-icon {
width: 20px;
height: 20px;
margin-right: 10px;
}
#homepage-me .head-top .sign-in.sign-in-no {
position: relative;
z-index: 1;
padding-right: 8px;
}
#homepage-me .head-top .sign-in.sign-in-no .sign-in-bj {
position: absolute;
top: 0;
left: 0;
z-index: -1;
width: 190px;
height: 40px;
}
#homepage-me .head-top .sign-in.sign-in-no .coin-bj {
position: absolute;
width: 157px;
height: 33px;
top: 4px;
left: 29px;
}
#homepage-me .head-top .sign-in.sign-in-no .coin-icon {
width: 43px;
height: 51px;
align-self: flex-end;
z-index: 1;
margin-left: -2px;
}
#homepage-me .head-top .sign-in.sign-in-no .text {
text-align: center;
text-shadow: 1px 1px 2px #a63603;
-webkit-text-shadow: 1px 1px 2px #a63603;
-moz-text-shadow: 1px 1px 2px #a63603;
font-size: 15px;
color: #fff;
}
#homepage-me .head-top .sign-in.sign-in-no .sign-go {
width: 30px;
height: 30px;
font-family: "Arial-BoldMT", "Arial Bold", "Arial", sans-serif;
font-weight: 700;
font-size: 12px;
color: #710600;
position: relative;
}
#homepage-me .head-top .sign-in.sign-in-no .sign-go .sign-go-bj {
width: 100%;
height: 100%;
position: absolute;
z-index: -1;
}
#homepage-me .head-top .sign-in.sign-in-no .petal1,
#homepage-me .head-top .sign-in.sign-in-no .petal2,
#homepage-me .head-top .sign-in.sign-in-no .petal3 {
position: absolute;
}
#homepage-me .head-top .sign-in.sign-in-no .petal1 {
width: 24px;
height: 10px;
top: 3px;
left: 55px;
}
#homepage-me .head-top .sign-in.sign-in-no .petal2 {
width: 16px;
height: 14px;
top: 25px;
left: 92px;
}
#homepage-me .head-top .sign-in.sign-in-no .petal3 {
width: 17px;
height: 12px;
top: 25px;
left: 136px;
}
#homepage-me .head-navigation {
margin-bottom: 20px;
}
#homepage-me .head-navigation .icon {
width: 16px;
height: 16px;
}
#homepage-me .head-navigation .arrows {
width: 7px;
height: 12px;
margin: 0 5px;
}
#homepage-me .head-navigation .text {
padding: 0 5px;
font-size: 14px;
color: #000000;
cursor: pointer;
}
#homepage-me .head-navigation .text:hover {
text-decoration: underline;
}
#homepage-me .matter {
align-items: flex-start;
}
@@ -230,6 +92,7 @@
line-height: 26px;
font-size: 13px;
color: #ab7713;
text-decoration: none;
}
#homepage-me .matter .card-user .bi-box .bi-btn .bi-question {
width: 14px;
@@ -283,7 +146,8 @@
color: #333333;
}
#homepage-me .matter .matter-content .message-box .header .icon {
height: 40px;
height: 20px;
margin-left: 8px;
}
#homepage-me .matter .matter-content .message-box .info-list {
flex-flow: wrap;

View File

@@ -1,162 +1,6 @@
#homepage-me {
width: 1200px;
margin: 0 auto;
.head-top {
margin-bottom: 30px;
.logo {
height: 52px;
}
.input-box {
width: 370px;
height: 40px;
background-color: rgba(235, 235, 235, 1);
border: 2px solid rgba(215, 215, 215, 1);
border-radius: 11px;
padding: 0 15px;
justify-content: space-between;
margin-right: 20px;
.input {
border: none;
outline: none;
height: 100%;
background-color: transparent;
}
.icon {
width: 18px;
height: 18px;
margin-left: 15rpx;
cursor: pointer;
}
}
.sign-in {
width: 192px;
height: 40px;
border-radius: 83px;
cursor: pointer;
&.sign-in-already {
background-color: #ffffff;
font-size: 14px;
color: #333;
.sign-icon {
width: 20px;
height: 20px;
margin-right: 10px;
}
}
&.sign-in-no {
position: relative;
z-index: 1;
padding-right: 8px;
.sign-in-bj {
position: absolute;
top: 0;
left: 0;
z-index: -1;
width: 190px;
height: 40px;
}
.coin-bj {
position: absolute;
width: 157px;
height: 33px;
top: 4px;
left: 29px;
}
.coin-icon {
width: 43px;
height: 51px;
align-self: flex-end;
z-index: 1;
margin-left: -2px;
}
.text {
text-align: center;
text-shadow: 1px 1px 2px #a63603;
-webkit-text-shadow: 1px 1px 2px #a63603;
-moz-text-shadow: 1px 1px 2px #a63603;
font-size: 15px;
color: #fff;
}
.sign-go {
width: 30px;
height: 30px;
font-family: "Arial-BoldMT", "Arial Bold", "Arial", sans-serif;
font-weight: 700;
font-size: 12px;
color: #710600;
position: relative;
.sign-go-bj {
width: 100%;
height: 100%;
position: absolute;
z-index: -1;
}
}
.petal1,
.petal2,
.petal3 {
position: absolute;
}
.petal1 {
width: 24px;
height: 10px;
top: 3px;
left: 55px;
}
.petal2 {
width: 16px;
height: 14px;
top: 25px;
left: 92px;
}
.petal3 {
width: 17px;
height: 12px;
top: 25px;
left: 136px;
}
}
}
}
.head-navigation {
margin-bottom: 20px;
.icon {
width: 16px;
height: 16px;
}
.arrows {
width: 7px;
height: 12px;
margin: 0 5px;
}
.text {
padding: 0 5px;
font-size: 14px;
color: #000000;
cursor: pointer;
&:hover {
text-decoration: underline;
}
}
}
.matter {
align-items: flex-start;
@@ -259,6 +103,7 @@
font-size: 13px;
color: rgb(171, 119, 19);
text-decoration: none;
.bi-question {
width: 14px;
height: 14px;
@@ -322,7 +167,8 @@
}
.icon {
height: 40px;
height: 20px;
margin-left: 8px;
}
}

View File

@@ -2,123 +2,6 @@
width: 1200px;
margin: 0 auto;
}
#homepage-other .head-top {
margin-bottom: 30px;
}
#homepage-other .head-top .logo {
height: 52px;
}
#homepage-other .head-top .input-box {
width: 370px;
height: 40px;
background-color: #ebebeb;
border: 2px solid #d7d7d7;
border-radius: 11px;
padding: 0 15px;
justify-content: space-between;
margin-right: 20px;
}
#homepage-other .head-top .input-box .input {
border: none;
outline: none;
height: 100%;
background-color: transparent;
}
#homepage-other .head-top .input-box .icon {
width: 18px;
height: 18px;
margin-left: 15rpx;
cursor: pointer;
}
#homepage-other .head-top .sign-in {
width: 192px;
height: 40px;
border-radius: 83px;
cursor: pointer;
}
#homepage-other .head-top .sign-in.sign-in-already {
background-color: #ffffff;
font-size: 14px;
color: #333;
}
#homepage-other .head-top .sign-in.sign-in-already .sign-icon {
width: 20px;
height: 20px;
margin-right: 10px;
}
#homepage-other .head-top .sign-in.sign-in-no {
position: relative;
z-index: 1;
padding-right: 8px;
}
#homepage-other .head-top .sign-in.sign-in-no .sign-in-bj {
position: absolute;
top: 0;
left: 0;
z-index: -1;
width: 190px;
height: 40px;
}
#homepage-other .head-top .sign-in.sign-in-no .coin-bj {
position: absolute;
width: 157px;
height: 33px;
top: 4px;
left: 29px;
}
#homepage-other .head-top .sign-in.sign-in-no .coin-icon {
width: 43px;
height: 51px;
align-self: flex-end;
z-index: 1;
margin-left: -2px;
}
#homepage-other .head-top .sign-in.sign-in-no .text {
text-align: center;
text-shadow: 1px 1px 2px #a63603;
-webkit-text-shadow: 1px 1px 2px #a63603;
-moz-text-shadow: 1px 1px 2px #a63603;
font-size: 15px;
color: #fff;
}
#homepage-other .head-top .sign-in.sign-in-no .sign-go {
width: 30px;
height: 30px;
font-family: "Arial-BoldMT", "Arial Bold", "Arial", sans-serif;
font-weight: 700;
font-size: 12px;
color: #710600;
position: relative;
}
#homepage-other .head-top .sign-in.sign-in-no .sign-go .sign-go-bj {
width: 100%;
height: 100%;
position: absolute;
z-index: -1;
}
#homepage-other .head-top .sign-in.sign-in-no .petal1,
#homepage-other .head-top .sign-in.sign-in-no .petal2,
#homepage-other .head-top .sign-in.sign-in-no .petal3 {
position: absolute;
}
#homepage-other .head-top .sign-in.sign-in-no .petal1 {
width: 24px;
height: 10px;
top: 3px;
left: 55px;
}
#homepage-other .head-top .sign-in.sign-in-no .petal2 {
width: 16px;
height: 14px;
top: 25px;
left: 92px;
}
#homepage-other .head-top .sign-in.sign-in-no .petal3 {
width: 17px;
height: 12px;
top: 25px;
left: 136px;
}
#homepage-other .head-navigation {
margin-bottom: 20px;
}
@@ -181,7 +64,7 @@
cursor: pointer;
}
#homepage-other .matter .card-user .medal-area {
margin: 0 30px 36px;
margin: 0 22px 36px 30px;
align-self: self-start;
}
#homepage-other .matter .card-user .medal-area .title {
@@ -190,7 +73,7 @@
margin-bottom: 13px;
}
#homepage-other .matter .card-user .medal-area .list {
flex-direction: row;
flex-flow: wrap;
}
#homepage-other .matter .card-user .medal-area .list .item {
height: 30px;
@@ -206,6 +89,7 @@
border-radius: 8px;
font-size: 15px;
color: #555555;
cursor: pointer;
}
#homepage-other .matter .card-user .btn-area .item:not(:last-of-type) {
margin-bottom: 15px;
@@ -243,7 +127,8 @@
color: #333333;
}
#homepage-other .matter .matter-content .message-box .header .icon {
height: 40px;
height: 20px;
margin-left: 8px;
}
#homepage-other .matter .matter-content .message-box .info-list {
flex-flow: wrap;
@@ -289,7 +174,7 @@
#homepage-other .matter .matter-content .message-box .stats .item .num {
font-family: "Arial-BoldMT", "Arial Bold", "Arial", sans-serif;
font-weight: 700;
color: #04b0d5;
color: #50e3c2;
}
#homepage-other .matter .matter-content .message-box .stats .line {
color: #d7d7d7;
@@ -308,6 +193,7 @@
border-radius: 5px;
margin-right: 20px;
margin-bottom: 10px;
cursor: pointer;
}
#homepage-other .matter .matter-content .message-box .tags .item .icon {
height: 13px;
@@ -365,6 +251,7 @@
border: 1px solid #e9eef2;
border-radius: 10px;
flex-direction: column;
margin-bottom: 50px;
}
#homepage-other .matter .matter-content .list-area .empty .empty-icon {
width: 80px;

View File

@@ -1,138 +1,6 @@
#homepage-other {
width: 1200px;
margin: 0 auto;
.head-top {
margin-bottom: 30px;
.logo {
height: 52px;
}
.input-box {
width: 370px;
height: 40px;
background-color: rgba(235, 235, 235, 1);
border: 2px solid rgba(215, 215, 215, 1);
border-radius: 11px;
padding: 0 15px;
justify-content: space-between;
margin-right: 20px;
.input {
border: none;
outline: none;
height: 100%;
background-color: transparent;
}
.icon {
width: 18px;
height: 18px;
margin-left: 15rpx;
cursor: pointer;
}
}
.sign-in {
width: 192px;
height: 40px;
border-radius: 83px;
cursor: pointer;
&.sign-in-already {
background-color: #ffffff;
font-size: 14px;
color: #333;
.sign-icon {
width: 20px;
height: 20px;
margin-right: 10px;
}
}
&.sign-in-no {
position: relative;
z-index: 1;
padding-right: 8px;
.sign-in-bj {
position: absolute;
top: 0;
left: 0;
z-index: -1;
width: 190px;
height: 40px;
}
.coin-bj {
position: absolute;
width: 157px;
height: 33px;
top: 4px;
left: 29px;
}
.coin-icon {
width: 43px;
height: 51px;
align-self: flex-end;
z-index: 1;
margin-left: -2px;
}
.text {
text-align: center;
text-shadow: 1px 1px 2px #a63603;
-webkit-text-shadow: 1px 1px 2px #a63603;
-moz-text-shadow: 1px 1px 2px #a63603;
font-size: 15px;
color: #fff;
}
.sign-go {
width: 30px;
height: 30px;
font-family: "Arial-BoldMT", "Arial Bold", "Arial", sans-serif;
font-weight: 700;
font-size: 12px;
color: #710600;
position: relative;
.sign-go-bj {
width: 100%;
height: 100%;
position: absolute;
z-index: -1;
}
}
.petal1,
.petal2,
.petal3 {
position: absolute;
}
.petal1 {
width: 24px;
height: 10px;
top: 3px;
left: 55px;
}
.petal2 {
width: 16px;
height: 14px;
top: 25px;
left: 92px;
}
.petal3 {
width: 17px;
height: 12px;
top: 25px;
left: 136px;
}
}
}
}
.head-navigation {
margin-bottom: 20px;
@@ -201,7 +69,7 @@
}
.medal-area {
margin: 0 30px 36px;
margin: 0 22px 36px 30px;
align-self: self-start;
.title {
@@ -211,7 +79,8 @@
}
.list {
flex-direction: row;
flex-flow: wrap;
.item {
height: 30px;
max-width: 30px;
@@ -230,6 +99,7 @@
border-radius: 8px;
font-size: 15px;
color: #555555;
cursor: pointer;
&:not(:last-of-type) {
margin-bottom: 15px;
@@ -275,7 +145,8 @@
}
.icon {
height: 40px;
height: 20px;
margin-left: 8px;
}
}
@@ -329,7 +200,7 @@
.num {
font-family: "Arial-BoldMT", "Arial Bold", "Arial", sans-serif;
font-weight: 700;
color: #04b0d5;
color: #50e3c2;
}
}
@@ -351,6 +222,7 @@
border-radius: 5px;
margin-right: 20px;
margin-bottom: 10px;
cursor: pointer;
.icon {
height: 13px;
@@ -420,6 +292,8 @@
border: 1px solid rgba(233, 238, 242, 1);
border-radius: 10px;
flex-direction: column;
margin-bottom: 50px;
.empty-icon {
width: 80px;
height: 94px;

View File

@@ -283,6 +283,7 @@ body {
}
.item-box.item-summary .list .item .school .icon {
height: 24px;
margin-right: 10px;
}
.item-box.item-summary .list .item .school .name {
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
@@ -356,7 +357,7 @@ body {
color: #000000;
}
.item-box.item-vote .list {
margin: 4px 20px 0;
margin: 4px 20px 20px;
overflow: hidden;
max-height: 138px;
}
@@ -1246,3 +1247,150 @@ body {
.offer-side-box.side-box .box {
width: 271px;
}
.head-navigation {
margin-bottom: 20px;
}
.head-navigation .icon {
width: 16px;
height: 16px;
}
.head-navigation .arrows {
width: 7px;
height: 12px;
margin: 0 5px;
}
.head-navigation .text {
padding: 0 5px;
font-size: 14px;
color: #000000;
text-decoration: none;
max-width: 300px;
}
.head-navigation .text.textA:hover {
text-decoration: underline;
}
.head-top {
margin-bottom: 30px;
}
.head-top .logo {
height: 52px;
}
.head-top .input-box {
width: 370px;
height: 40px;
background-color: #ebebeb;
border: 2px solid #d7d7d7;
border-radius: 11px;
padding: 0 15px;
justify-content: space-between;
margin-right: 20px;
}
.head-top .input-box .input {
border: none;
outline: none;
height: 100%;
background-color: transparent;
}
.head-top .input-box .icon {
width: 18px;
height: 18px;
margin-left: 15rpx;
cursor: pointer;
}
.head-top .sign-in {
width: 192px;
height: 40px;
border-radius: 83px;
cursor: pointer;
}
.head-top .sign-in.sign-in-already {
background-color: #ffffff;
font-size: 14px;
color: #333;
}
.head-top .sign-in.sign-in-already .sign-icon {
width: 20px;
height: 20px;
margin-right: 10px;
}
.head-top .sign-in.sign-in-no {
position: relative;
z-index: 1;
padding-right: 8px;
}
.head-top .sign-in.sign-in-no .sign-in-bj {
position: absolute;
top: 0;
left: 0;
z-index: -1;
width: 190px;
height: 40px;
}
.head-top .sign-in.sign-in-no .coin-bj {
position: absolute;
width: 157px;
height: 33px;
top: 4px;
left: 29px;
}
.head-top .sign-in.sign-in-no .coin-icon {
width: 43px;
height: 51px;
align-self: flex-end;
z-index: 1;
margin-left: -2px;
}
.head-top .sign-in.sign-in-no .text {
text-align: center;
text-shadow: 1px 1px 2px #a63603;
-webkit-text-shadow: 1px 1px 2px #a63603;
-moz-text-shadow: 1px 1px 2px #a63603;
font-size: 15px;
color: #fff;
}
.head-top .sign-in.sign-in-no .sign-go {
width: 30px;
height: 30px;
font-family: "Arial-BoldMT", "Arial Bold", "Arial", sans-serif;
font-weight: 700;
font-size: 12px;
color: #710600;
position: relative;
}
.head-top .sign-in.sign-in-no .sign-go .sign-go-bj {
width: 100%;
height: 100%;
position: absolute;
z-index: -1;
}
.head-top .sign-in.sign-in-no .petal1,
.head-top .sign-in.sign-in-no .petal2,
.head-top .sign-in.sign-in-no .petal3 {
position: absolute;
}
.head-top .sign-in.sign-in-no .petal1 {
width: 24px;
height: 10px;
top: 3px;
left: 55px;
}
.head-top .sign-in.sign-in-no .petal2 {
width: 16px;
height: 14px;
top: 25px;
left: 92px;
}
.head-top .sign-in.sign-in-no .petal3 {
width: 17px;
height: 12px;
top: 25px;
left: 136px;
}
.head-top .post-list .post-item {
width: 84px;
height: 34px;
cursor: pointer;
}
.head-top .post-list .post-item:not(:last-child) {
margin-right: 10px;
}

View File

@@ -331,6 +331,7 @@ body {
.school {
.icon {
height: 24px;
margin-right: 10px;
}
.name {
@@ -425,7 +426,7 @@ body {
}
.list {
margin: 4px 20px 0;
margin: 4px 20px 20px;
overflow: hidden;
max-height: 138px;
@@ -1482,3 +1483,174 @@ body {
.offer-side-box.side-box .box {
width: 271px;
}
.head-navigation {
margin-bottom: 20px;
.icon {
width: 16px;
height: 16px;
}
.arrows {
width: 7px;
height: 12px;
margin: 0 5px;
}
.text {
padding: 0 5px;
font-size: 14px;
color: #000000;
text-decoration: none;
max-width: 300px;
&.textA:hover {
text-decoration: underline;
}
}
}
.head-top {
margin-bottom: 30px;
.logo {
height: 52px;
}
.input-box {
width: 370px;
height: 40px;
background-color: rgba(235, 235, 235, 1);
border: 2px solid rgba(215, 215, 215, 1);
border-radius: 11px;
padding: 0 15px;
justify-content: space-between;
margin-right: 20px;
.input {
border: none;
outline: none;
height: 100%;
background-color: transparent;
}
.icon {
width: 18px;
height: 18px;
margin-left: 15rpx;
cursor: pointer;
}
}
.sign-in {
width: 192px;
height: 40px;
border-radius: 83px;
cursor: pointer;
&.sign-in-already {
background-color: #ffffff;
font-size: 14px;
color: #333;
.sign-icon {
width: 20px;
height: 20px;
margin-right: 10px;
}
}
&.sign-in-no {
position: relative;
z-index: 1;
padding-right: 8px;
.sign-in-bj {
position: absolute;
top: 0;
left: 0;
z-index: -1;
width: 190px;
height: 40px;
}
.coin-bj {
position: absolute;
width: 157px;
height: 33px;
top: 4px;
left: 29px;
}
.coin-icon {
width: 43px;
height: 51px;
align-self: flex-end;
z-index: 1;
margin-left: -2px;
}
.text {
text-align: center;
text-shadow: 1px 1px 2px #a63603;
-webkit-text-shadow: 1px 1px 2px #a63603;
-moz-text-shadow: 1px 1px 2px #a63603;
font-size: 15px;
color: #fff;
}
.sign-go {
width: 30px;
height: 30px;
font-family: "Arial-BoldMT", "Arial Bold", "Arial", sans-serif;
font-weight: 700;
font-size: 12px;
color: #710600;
position: relative;
.sign-go-bj {
width: 100%;
height: 100%;
position: absolute;
z-index: -1;
}
}
.petal1,
.petal2,
.petal3 {
position: absolute;
}
.petal1 {
width: 24px;
height: 10px;
top: 3px;
left: 55px;
}
.petal2 {
width: 16px;
height: 14px;
top: 25px;
left: 92px;
}
.petal3 {
width: 17px;
height: 12px;
top: 25px;
left: 136px;
}
}
}
.post-list {
.post-item {
width: 84px;
height: 34px;
cursor: pointer;
&:not(:last-child) {
margin-right: 10px;
}
}
}
}

4
css/search.css Normal file
View File

@@ -0,0 +1,4 @@
#search {
width: 1200px;
margin: 0 auto;
}

4
css/search.less Normal file
View File

@@ -0,0 +1,4 @@
#search {
width: 1200px;
margin: 0 auto;
}

View File

@@ -2,144 +2,6 @@
width: 1200px;
margin: 0 auto;
}
#sectionIndex .head-top {
margin-bottom: 30px;
}
#sectionIndex .head-top .logo {
height: 52px;
}
#sectionIndex .head-top .input-box {
width: 370px;
height: 40px;
background-color: #ebebeb;
border: 2px solid #d7d7d7;
border-radius: 11px;
padding: 0 15px;
justify-content: space-between;
margin-right: 20px;
}
#sectionIndex .head-top .input-box .input {
border: none;
outline: none;
height: 100%;
background-color: transparent;
}
#sectionIndex .head-top .input-box .icon {
width: 18px;
height: 18px;
margin-left: 15rpx;
cursor: pointer;
}
#sectionIndex .head-top .sign-in {
width: 192px;
height: 40px;
border-radius: 83px;
cursor: pointer;
}
#sectionIndex .head-top .sign-in.sign-in-already {
background-color: #ffffff;
font-size: 14px;
color: #333;
}
#sectionIndex .head-top .sign-in.sign-in-already .sign-icon {
width: 20px;
height: 20px;
margin-right: 10px;
}
#sectionIndex .head-top .sign-in.sign-in-no {
position: relative;
z-index: 1;
padding-right: 8px;
}
#sectionIndex .head-top .sign-in.sign-in-no .sign-in-bj {
position: absolute;
top: 0;
left: 0;
z-index: -1;
width: 190px;
height: 40px;
}
#sectionIndex .head-top .sign-in.sign-in-no .coin-bj {
position: absolute;
width: 157px;
height: 33px;
top: 4px;
left: 29px;
}
#sectionIndex .head-top .sign-in.sign-in-no .coin-icon {
width: 43px;
height: 51px;
align-self: flex-end;
z-index: 1;
margin-left: -2px;
}
#sectionIndex .head-top .sign-in.sign-in-no .text {
text-align: center;
text-shadow: 1px 1px 2px #a63603;
-webkit-text-shadow: 1px 1px 2px #a63603;
-moz-text-shadow: 1px 1px 2px #a63603;
font-size: 15px;
color: #fff;
}
#sectionIndex .head-top .sign-in.sign-in-no .sign-go {
width: 30px;
height: 30px;
font-family: "Arial-BoldMT", "Arial Bold", "Arial", sans-serif;
font-weight: 700;
font-size: 12px;
color: #710600;
position: relative;
}
#sectionIndex .head-top .sign-in.sign-in-no .sign-go .sign-go-bj {
width: 100%;
height: 100%;
position: absolute;
z-index: -1;
}
#sectionIndex .head-top .sign-in.sign-in-no .petal1,
#sectionIndex .head-top .sign-in.sign-in-no .petal2,
#sectionIndex .head-top .sign-in.sign-in-no .petal3 {
position: absolute;
}
#sectionIndex .head-top .sign-in.sign-in-no .petal1 {
width: 24px;
height: 10px;
top: 3px;
left: 55px;
}
#sectionIndex .head-top .sign-in.sign-in-no .petal2 {
width: 16px;
height: 14px;
top: 25px;
left: 92px;
}
#sectionIndex .head-top .sign-in.sign-in-no .petal3 {
width: 17px;
height: 12px;
top: 25px;
left: 136px;
}
#sectionIndex .head-navigation {
margin-bottom: 20px;
}
#sectionIndex .head-navigation .icon {
width: 16px;
height: 16px;
}
#sectionIndex .head-navigation .arrows {
width: 7px;
height: 12px;
margin: 0 5px;
}
#sectionIndex .head-navigation .text {
padding: 0 5px;
font-size: 14px;
color: #000000;
text-decoration: none;
}
#sectionIndex .head-navigation .text.textA:hover {
text-decoration: underline;
}
#sectionIndex .matter {
align-items: flex-start;
}

View File

@@ -1,163 +1,6 @@
#sectionIndex {
width: 1200px;
margin: 0 auto;
.head-top {
margin-bottom: 30px;
.logo {
height: 52px;
}
.input-box {
width: 370px;
height: 40px;
background-color: rgba(235, 235, 235, 1);
border: 2px solid rgba(215, 215, 215, 1);
border-radius: 11px;
padding: 0 15px;
justify-content: space-between;
margin-right: 20px;
.input {
border: none;
outline: none;
height: 100%;
background-color: transparent;
}
.icon {
width: 18px;
height: 18px;
margin-left: 15rpx;
cursor: pointer;
}
}
.sign-in {
width: 192px;
height: 40px;
border-radius: 83px;
cursor: pointer;
&.sign-in-already {
background-color: #ffffff;
font-size: 14px;
color: #333;
.sign-icon {
width: 20px;
height: 20px;
margin-right: 10px;
}
}
&.sign-in-no {
position: relative;
z-index: 1;
padding-right: 8px;
.sign-in-bj {
position: absolute;
top: 0;
left: 0;
z-index: -1;
width: 190px;
height: 40px;
}
.coin-bj {
position: absolute;
width: 157px;
height: 33px;
top: 4px;
left: 29px;
}
.coin-icon {
width: 43px;
height: 51px;
align-self: flex-end;
z-index: 1;
margin-left: -2px;
}
.text {
text-align: center;
text-shadow: 1px 1px 2px #a63603;
-webkit-text-shadow: 1px 1px 2px #a63603;
-moz-text-shadow: 1px 1px 2px #a63603;
font-size: 15px;
color: #fff;
}
.sign-go {
width: 30px;
height: 30px;
font-family: "Arial-BoldMT", "Arial Bold", "Arial", sans-serif;
font-weight: 700;
font-size: 12px;
color: #710600;
position: relative;
.sign-go-bj {
width: 100%;
height: 100%;
position: absolute;
z-index: -1;
}
}
.petal1,
.petal2,
.petal3 {
position: absolute;
}
.petal1 {
width: 24px;
height: 10px;
top: 3px;
left: 55px;
}
.petal2 {
width: 16px;
height: 14px;
top: 25px;
left: 92px;
}
.petal3 {
width: 17px;
height: 12px;
top: 25px;
left: 136px;
}
}
}
}
.head-navigation {
margin-bottom: 20px;
.icon {
width: 16px;
height: 16px;
}
.arrows {
width: 7px;
height: 12px;
margin: 0 5px;
}
.text {
padding: 0 5px;
font-size: 14px;
color: #000000;
text-decoration: none;
&.textA:hover {
text-decoration: underline;
}
}
}
.matter {
align-items: flex-start;