feat: 新增详情页和个人主页功能及组件优化
- 添加详情页(details.html)和个人主页(homepage-me.html)的完整功能实现 - 新增多个图片资源用于UI展示 - 优化item-head、item-bottom等组件的数据绑定和交互逻辑 - 添加公共工具函数(public.js)包括时间处理和网络请求 - 完善CSS样式文件,增加响应式布局和交互效果 - 实现用户信息展示、帖子详情、相关帖子推荐等功能模块 - 添加签到、投币等交互功能 - 优化组件模板结构和数据传递方式
This commit is contained in:
464
css/homepage-me.css
Normal file
464
css/homepage-me.css
Normal file
@@ -0,0 +1,464 @@
|
||||
#homepage-me {
|
||||
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;
|
||||
}
|
||||
#homepage-me .matter .card-user {
|
||||
width: 320px;
|
||||
background: -webkit-linear-gradient(270.06444514deg, #ffffff 0%, #eef8f9 100%);
|
||||
background: -moz-linear-gradient(179.93555486deg, #ffffff 0%, #eef8f9 100%);
|
||||
background: linear-gradient(179.93555486deg, #ffffff 0%, #eef8f9 100%);
|
||||
box-sizing: border-box;
|
||||
border: 1px solid #e9eef2;
|
||||
border-radius: 10px;
|
||||
flex-direction: column;
|
||||
padding-top: 39px;
|
||||
padding-bottom: 38px;
|
||||
margin-right: 20px;
|
||||
}
|
||||
#homepage-me .matter .card-user .avatar {
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
#homepage-me .matter .card-user .name-area {
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
#homepage-me .matter .card-user .name-area .username {
|
||||
font-size: 15px;
|
||||
color: #333;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
#homepage-me .matter .card-user .name-area .uid {
|
||||
color: #7f7f7f;
|
||||
font-size: 13px;
|
||||
}
|
||||
#homepage-me .matter .card-user .name-area .uid .icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
margin-left: 9px;
|
||||
cursor: pointer;
|
||||
}
|
||||
#homepage-me .matter .card-user .bi-box {
|
||||
position: relative;
|
||||
width: 260px;
|
||||
height: 65px;
|
||||
background: linear-gradient(255.75deg, #ffbd15 0%, #fff5d1 99%);
|
||||
border-radius: 12px;
|
||||
z-index: 1;
|
||||
justify-content: space-between;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
#homepage-me .matter .card-user .bi-box .bi-masking {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 260px;
|
||||
height: 65px;
|
||||
z-index: -1;
|
||||
}
|
||||
#homepage-me .matter .card-user .bi-box .bi-icon {
|
||||
width: 50px;
|
||||
height: 56px;
|
||||
margin-right: 7px;
|
||||
}
|
||||
#homepage-me .matter .card-user .bi-box .bi-content {
|
||||
flex-direction: column;
|
||||
}
|
||||
#homepage-me .matter .card-user .bi-box .bi-content .bi-sum {
|
||||
font-family: Arial-Black, "Arial Black", sans-serif;
|
||||
font-weight: 900;
|
||||
font-style: normal;
|
||||
font-size: 16px;
|
||||
color: #000000;
|
||||
}
|
||||
#homepage-me .matter .card-user .bi-box .bi-content .bi-text {
|
||||
font-size: 13px;
|
||||
letter-spacing: normal;
|
||||
color: #333333;
|
||||
}
|
||||
#homepage-me .matter .card-user .bi-box .bi-btn {
|
||||
width: 98px;
|
||||
height: 26px;
|
||||
background-color: #fff6d8;
|
||||
border-radius: 60px;
|
||||
box-shadow: rgba(0, 0, 0, 0.145) 0px 0px 5px;
|
||||
font-size: 15px;
|
||||
line-height: 26px;
|
||||
font-size: 13px;
|
||||
color: #ab7713;
|
||||
}
|
||||
#homepage-me .matter .card-user .bi-box .bi-btn .bi-question {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
#homepage-me .matter .card-user .medal-area {
|
||||
margin: 0 30px;
|
||||
align-self: self-start;
|
||||
}
|
||||
#homepage-me .matter .card-user .medal-area .title {
|
||||
font-size: 14px;
|
||||
color: #7f7f7f;
|
||||
margin-bottom: 13px;
|
||||
}
|
||||
#homepage-me .matter .card-user .medal-area .list {
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
#homepage-me .matter .card-user .medal-area .list .item {
|
||||
height: 30px;
|
||||
max-width: 30px;
|
||||
margin-right: 8px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .message-box {
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #e9eef2;
|
||||
border-radius: 10px;
|
||||
padding-left: 95px;
|
||||
padding-right: 40px;
|
||||
padding-bottom: 31px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .message-box .header {
|
||||
border-bottom: 1px dotted #d7d7d7;
|
||||
padding-top: 46px;
|
||||
padding-bottom: 19px;
|
||||
position: relative;
|
||||
}
|
||||
#homepage-me .matter .matter-content .message-box .header .avatar {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
top: 40px;
|
||||
left: -55px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .message-box .header .username {
|
||||
font-size: 14px;
|
||||
color: #333333;
|
||||
}
|
||||
#homepage-me .matter .matter-content .message-box .header .icon {
|
||||
height: 40px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .message-box .info-list {
|
||||
flex-flow: wrap;
|
||||
padding-top: 20px;
|
||||
border-bottom: 1px dotted #d7d7d7;
|
||||
}
|
||||
#homepage-me .matter .matter-content .message-box .info-list .item {
|
||||
width: 50%;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .message-box .info-list .item .label {
|
||||
font-size: 14px;
|
||||
color: #7f7f7f;
|
||||
width: 87px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .message-box .info-list .item .value {
|
||||
font-size: 14px;
|
||||
color: #000000;
|
||||
}
|
||||
#homepage-me .matter .matter-content .message-box .info-list .item .status {
|
||||
color: #555555;
|
||||
font-size: 13px;
|
||||
padding: 0 6px;
|
||||
height: 20px;
|
||||
line-height: 20px;
|
||||
background-color: #f0f1ec;
|
||||
border-radius: 23px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .message-box .info-list .item .status.blue {
|
||||
color: #ffffff;
|
||||
background-color: #04b0d5;
|
||||
}
|
||||
#homepage-me .matter .matter-content .message-box .stats {
|
||||
padding-top: 20px;
|
||||
padding-bottom: 21px;
|
||||
font-size: 14px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .message-box .stats .item .text {
|
||||
color: #7f7f7f;
|
||||
margin-right: 5px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .message-box .stats .item .num {
|
||||
font-family: "Arial-BoldMT", "Arial Bold", "Arial", sans-serif;
|
||||
font-weight: 700;
|
||||
color: #04b0d5;
|
||||
}
|
||||
#homepage-me .matter .matter-content .message-box .stats .line {
|
||||
color: #d7d7d7;
|
||||
margin: 0 14px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .message-box .tags {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
#homepage-me .matter .matter-content .message-box .tags .item {
|
||||
padding: 0 10px;
|
||||
font-size: 14px;
|
||||
color: #333333;
|
||||
height: 24px;
|
||||
background-color: #f6f6f6;
|
||||
border: 1px solid #f0f1ec;
|
||||
border-radius: 5px;
|
||||
margin-right: 20px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .message-box .tags .item .icon {
|
||||
height: 13px;
|
||||
margin-right: 7px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area {
|
||||
width: 860px;
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #e9eef2;
|
||||
border-radius: 10px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .operation-box {
|
||||
padding-top: 40px;
|
||||
padding-left: 95px;
|
||||
padding-right: 40px;
|
||||
padding-bottom: 18px;
|
||||
font-size: 18px;
|
||||
color: #7f7f7f;
|
||||
border-bottom: 1px dotted #d7d7d7;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .operation-box .operation-item {
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .operation-box .operation-item:not(:last-child) {
|
||||
margin-right: 40px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .operation-box .operation-item.pitch {
|
||||
font-family: PingFangSC-Semibold, "PingFang SC Semibold", "PingFang SC", sans-serif;
|
||||
font-weight: 650;
|
||||
font-style: normal;
|
||||
font-size: 18px;
|
||||
color: #000000;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .operation-box .operation-item.pitch::after {
|
||||
content: "";
|
||||
width: 100%;
|
||||
height: 6px;
|
||||
background-color: #50e3c2;
|
||||
border-radius: 26px;
|
||||
position: absolute;
|
||||
bottom: -21px;
|
||||
display: block;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .classify {
|
||||
padding-top: 37px;
|
||||
padding-bottom: 23px;
|
||||
padding-left: 95px;
|
||||
padding-right: 40px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .classify .item {
|
||||
width: 50px;
|
||||
height: 32px;
|
||||
line-height: 32px;
|
||||
text-align: center;
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #f2f2f2;
|
||||
border-radius: 12px;
|
||||
color: #333333;
|
||||
cursor: pointer;
|
||||
font-size: 15px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .classify .item.pitch {
|
||||
background-color: #d35110;
|
||||
color: #ffffff;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .classify .item:not(:last-child) {
|
||||
margin-right: 10px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .issue-data {
|
||||
color: #7f7f7f;
|
||||
font-size: 14px;
|
||||
margin-bottom: 20px;
|
||||
padding-left: 95px;
|
||||
padding-right: 40px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .issue-data .num {
|
||||
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
|
||||
font-weight: 650;
|
||||
color: #000000;
|
||||
margin: 0 5px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .list-box {
|
||||
padding-left: 95px;
|
||||
padding-right: 40px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .list-box .item-box {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .empty {
|
||||
width: 725px;
|
||||
height: 360px;
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #e9eef2;
|
||||
border-radius: 10px;
|
||||
flex-direction: column;
|
||||
margin-bottom: 20px;
|
||||
margin-left: 95px;
|
||||
margin-right: 40px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .empty .empty-icon {
|
||||
width: 80px;
|
||||
height: 94px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .empty .empty-text {
|
||||
font-size: 14px;
|
||||
color: #7f7f7f;
|
||||
margin-top: 10px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .load-more {
|
||||
padding: 20px 0 40px;
|
||||
color: #7f7f7f;
|
||||
font-size: 14px;
|
||||
}
|
||||
Reference in New Issue
Block a user