Files
PC-Light-Forum/css/homepage-other.less
DESKTOP-RQ919RC\Pc 7d81e02d3d feat: 新增详情页和个人主页功能及组件优化
- 添加详情页(details.html)和个人主页(homepage-me.html)的完整功能实现
- 新增多个图片资源用于UI展示
- 优化item-head、item-bottom等组件的数据绑定和交互逻辑
- 添加公共工具函数(public.js)包括时间处理和网络请求
- 完善CSS样式文件,增加响应式布局和交互效果
- 实现用户信息展示、帖子详情、相关帖子推荐等功能模块
- 添加签到、投币等交互功能
- 优化组件模板结构和数据传递方式
2025-10-28 19:10:26 +08:00

444 lines
13 KiB
Plaintext

#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;
.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;
.card-user {
width: 320px;
background: -webkit-linear-gradient(270.064445137829deg, rgba(255, 255, 255, 1) 0%, rgba(238, 248, 249, 1) 100%);
background: -moz-linear-gradient(179.935554862171deg, rgba(255, 255, 255, 1) 0%, rgba(238, 248, 249, 1) 100%);
background: linear-gradient(179.935554862171deg, rgba(255, 255, 255, 1) 0%, rgba(238, 248, 249, 1) 100%);
box-sizing: border-box;
border: 1px solid rgba(233, 238, 242, 1);
border-radius: 10px;
flex-direction: column;
padding-top: 39px;
padding-bottom: 40px;
margin-right: 20px;
.avatar {
width: 120px;
height: 120px;
border-radius: 8px;
margin-bottom: 20px;
}
.name-area {
margin-bottom: 40px;
.username {
font-size: 15px;
color: #333;
margin-bottom: 12px;
}
.uid {
color: #7f7f7f;
font-size: 13px;
.icon {
width: 14px;
height: 14px;
margin-left: 9px;
cursor: pointer;
}
}
}
.medal-area {
margin: 0 30px 36px;
align-self: self-start;
.title {
font-size: 14px;
color: #7f7f7f;
margin-bottom: 13px;
}
.list {
flex-direction: row;
.item {
height: 30px;
max-width: 30px;
margin-right: 8px;
margin-bottom: 8px;
}
}
}
.btn-area {
.item {
width: 200px;
height: 40px;
background-color: rgba(255, 255, 255, 1);
border: 1px solid rgba(235, 235, 235, 1);
border-radius: 8px;
font-size: 15px;
color: #555555;
&:not(:last-of-type) {
margin-bottom: 15px;
}
&.msg {
background-color: rgba(80, 227, 194, 1);
border: 1px solid rgba(80, 227, 194, 1);
color: #000000;
}
}
}
}
.matter-content {
.message-box {
background-color: rgba(255, 255, 255, 1);
border: 1px solid rgba(233, 238, 242, 1);
border-radius: 10px;
padding-left: 95px;
padding-right: 40px;
padding-bottom: 31px;
margin-bottom: 20px;
.header {
border-bottom: 1px dotted #d7d7d7;
padding-top: 46px;
padding-bottom: 19px;
position: relative;
.avatar {
width: 40px;
height: 40px;
border-radius: 50%;
position: absolute;
top: 40px;
left: -55px;
}
.username {
font-size: 14px;
color: #333333;
}
.icon {
height: 40px;
}
}
.info-list {
flex-flow: wrap;
padding-top: 20px;
border-bottom: 1px dotted #d7d7d7;
.item {
width: 50%;
margin-bottom: 15px;
.label {
font-size: 14px;
color: #7f7f7f;
width: 87px;
}
.value {
font-size: 14px;
color: #000000;
}
.status {
color: #555555;
font-size: 13px;
padding: 0 6px;
height: 20px;
line-height: 20px;
background-color: rgba(240, 241, 236, 1);
border-radius: 23px;
margin-left: 10px;
&.blue {
color: #ffffff;
background-color: rgba(4, 176, 213, 1);
}
}
}
}
.stats {
padding-top: 20px;
padding-bottom: 21px;
font-size: 14px;
.item {
.text {
color: #7f7f7f;
margin-right: 5px;
}
.num {
font-family: "Arial-BoldMT", "Arial Bold", "Arial", sans-serif;
font-weight: 700;
color: #04b0d5;
}
}
.line {
color: #d7d7d7;
margin: 0 14px;
}
}
.tags {
flex-wrap: wrap;
.item {
padding: 0 10px;
font-size: 14px;
color: #333333;
height: 24px;
background-color: rgba(246, 246, 246, 1);
border: 1px solid rgba(240, 241, 236, 1);
border-radius: 5px;
margin-right: 20px;
margin-bottom: 10px;
.icon {
height: 13px;
margin-right: 7px;
}
}
}
}
.list-area {
width: 860px;
background-color: rgba(255, 255, 255, 1);
border: 1px solid rgba(233, 238, 242, 1);
border-radius: 10px;
padding-left: 95px;
padding-right: 40px;
.classify {
padding-top: 39px;
padding-bottom: 23px;
.item {
width: 50px;
height: 32px;
line-height: 32px;
text-align: center;
background-color: rgba(255, 255, 255, 1);
border: 1px solid rgba(242, 242, 242, 1);
border-radius: 12px;
color: #333333;
cursor: pointer;
font-size: 15px;
&.pitch {
background-color: rgba(211, 81, 16, 1);
color: #ffffff;
}
&:not(:last-child) {
margin-right: 10px;
}
}
}
.issue-data {
color: #7f7f7f;
font-size: 14px;
margin-bottom: 20px;
.num {
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
font-weight: 650;
color: #000000;
margin: 0 5px;
}
}
.list-box {
.item-box {
margin-bottom: 20px;
}
}
.empty {
width: 725px;
height: 360px;
background-color: rgba(255, 255, 255, 1);
border: 1px solid rgba(233, 238, 242, 1);
border-radius: 10px;
flex-direction: column;
.empty-icon {
width: 80px;
height: 94px;
}
.empty-text {
font-size: 14px;
color: #7f7f7f;
margin-top: 10px;
}
}
.load-more {
padding: 20px 0 40px;
color: #7f7f7f;
font-size: 14px;
}
}
}
}
}