feat: 新增详情页和个人主页功能及组件优化
- 添加详情页(details.html)和个人主页(homepage-me.html)的完整功能实现 - 新增多个图片资源用于UI展示 - 优化item-head、item-bottom等组件的数据绑定和交互逻辑 - 添加公共工具函数(public.js)包括时间处理和网络请求 - 完善CSS样式文件,增加响应式布局和交互效果 - 实现用户信息展示、帖子详情、相关帖子推荐等功能模块 - 添加签到、投币等交互功能 - 优化组件模板结构和数据传递方式
This commit is contained in:
496
css/details.css
Normal file
496
css/details.css
Normal file
@@ -0,0 +1,496 @@
|
||||
#details {
|
||||
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;
|
||||
cursor: pointer;
|
||||
}
|
||||
#details .head-navigation .text:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
#details .matter {
|
||||
align-items: flex-start;
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
#details .matter .matter-left {
|
||||
width: 890px;
|
||||
margin-right: 20px;
|
||||
}
|
||||
#details .matter .matter-left .block {
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #e9eef2;
|
||||
border-radius: 10px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
#details .matter .matter-left .matter-head {
|
||||
height: 80px;
|
||||
padding-left: 30px;
|
||||
padding-right: 30px;
|
||||
border-bottom: 1px solid #ebebeb;
|
||||
}
|
||||
#details .matter .matter-left .matter-head .avatar {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
margin-right: 16px;
|
||||
}
|
||||
#details .matter .matter-left .matter-head .content {
|
||||
flex-direction: column;
|
||||
}
|
||||
#details .matter .matter-left .matter-head .content .name {
|
||||
font-size: 14px;
|
||||
color: #333333;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
#details .matter .matter-left .matter-head .content .name .icon {
|
||||
height: 14px;
|
||||
}
|
||||
#details .matter .matter-left .matter-head .content .time {
|
||||
font-size: 13px;
|
||||
color: #aaaaaa;
|
||||
}
|
||||
#details .matter .matter-left .matter-head .operate .view {
|
||||
font-size: 12px;
|
||||
color: #aaaaaa;
|
||||
margin-right: 15px;
|
||||
}
|
||||
#details .matter .matter-left .matter-head .operate .view .icon {
|
||||
width: 13px;
|
||||
height: 8px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
#details .matter .matter-left .matter-head .operate .btn {
|
||||
width: 24px;
|
||||
height: 16px;
|
||||
background-color: #f2f2f2;
|
||||
border-radius: 150px;
|
||||
}
|
||||
#details .matter .matter-left .matter-head .operate .btn .icon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
#details .matter .matter-left .label {
|
||||
padding: 20px 30px 20px;
|
||||
}
|
||||
#details .matter .matter-left .label .item {
|
||||
font-size: 14px;
|
||||
color: #555555;
|
||||
padding: 0 9px;
|
||||
height: 24px;
|
||||
line-height: 24px;
|
||||
background-color: #f2f2f2;
|
||||
border-radius: 6px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
#details .matter .matter-left .label .item.icon {
|
||||
padding: 0;
|
||||
}
|
||||
#details .matter .matter-left .label .item:not(:last-child) {
|
||||
margin-right: 10px;
|
||||
}
|
||||
#details .matter .matter-left .label .item.blue {
|
||||
color: #ffffff;
|
||||
background-color: #04b0d5;
|
||||
}
|
||||
#details .matter .matter-left .title {
|
||||
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
|
||||
font-weight: 650;
|
||||
font-style: normal;
|
||||
font-size: 24px;
|
||||
color: #000000;
|
||||
line-height: 36px;
|
||||
padding: 0 30px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
#details .matter .matter-left .html {
|
||||
padding: 0 30px;
|
||||
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
|
||||
font-size: 15px;
|
||||
color: #555555;
|
||||
line-height: 24px;
|
||||
margin-bottom: 66px;
|
||||
}
|
||||
#details .matter .matter-left .last-time {
|
||||
color: #aaaaaa;
|
||||
font-size: 13px;
|
||||
padding: 0 30px 20px;
|
||||
}
|
||||
#details .matter .matter-left .bottom {
|
||||
border-top: 1px solid #ebebeb;
|
||||
height: 64px;
|
||||
line-height: 64px;
|
||||
justify-content: flex-end;
|
||||
padding-right: 30px;
|
||||
position: sticky;
|
||||
bottom: 0;
|
||||
background: #ffff;
|
||||
border-radius: 0 0 10px 10px;
|
||||
}
|
||||
#details .matter .matter-left .bottom .bottom-item {
|
||||
font-size: 14px;
|
||||
color: #333333;
|
||||
}
|
||||
#details .matter .matter-left .bottom .bottom-item .icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin-right: 6px;
|
||||
}
|
||||
#details .matter .matter-left .bottom .bottom-item:not(:last-child) {
|
||||
margin-right: 60px;
|
||||
}
|
||||
#details .matter .matter-left .related .related-head {
|
||||
padding-left: 30px;
|
||||
padding-top: 20px;
|
||||
padding-bottom: 12px;
|
||||
border-bottom: 1px solid #ebebeb;
|
||||
}
|
||||
#details .matter .matter-left .related .related-head .text {
|
||||
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
|
||||
font-weight: 650;
|
||||
font-style: normal;
|
||||
font-size: 16px;
|
||||
color: #000000;
|
||||
margin-right: 14px;
|
||||
}
|
||||
#details .matter .matter-left .related .related-head .time {
|
||||
font-family: "ArialMT", "Arial", sans-serif;
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-size: 13px;
|
||||
letter-spacing: normal;
|
||||
color: #333333;
|
||||
}
|
||||
#details .matter .matter-left .related .list {
|
||||
padding: 14px 30px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
#details .matter .matter-left .related .list .item {
|
||||
width: 50%;
|
||||
font-size: 14px;
|
||||
color: #555555;
|
||||
cursor: pointer;
|
||||
}
|
||||
#details .matter .matter-left .related .list .item:hover {
|
||||
color: #000000;
|
||||
}
|
||||
#details .matter .matter-left .related .list .item .dot {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background-color: #f68251;
|
||||
margin-right: 10px;
|
||||
}
|
||||
#details .matter .matter-left .related .list .item:not(:nth-last-child(-n + 2)) {
|
||||
margin-bottom: 7px;
|
||||
}
|
||||
#details .matter .matter-left .related .list .item .text {
|
||||
width: 352px;
|
||||
}
|
||||
#details .matter .sidebar-box .adv {
|
||||
width: 291px;
|
||||
height: 220px;
|
||||
margin-bottom: 12px;
|
||||
display: block;
|
||||
cursor: pointer;
|
||||
}
|
||||
#details .matter .sidebar-box .adv .adv-img {
|
||||
width: 291px;
|
||||
height: 220px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
#details .matter .sidebar-box .sidebar-item {
|
||||
width: 291px;
|
||||
background-color: #ffffff;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
#details .matter .sidebar-box .sidebar-item .sidebar-header {
|
||||
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
|
||||
font-weight: 650;
|
||||
font-style: normal;
|
||||
font-size: 15px;
|
||||
color: #000000;
|
||||
padding: 16px;
|
||||
border-bottom: 1px solid #f2f2f2;
|
||||
}
|
||||
#details .matter .sidebar-box .sidebar-item .sidebar-content {
|
||||
flex-direction: column;
|
||||
padding: 20px 0;
|
||||
}
|
||||
#details .matter .sidebar-box .sidebar-item .sidebar-content .sidebar-QRCode {
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
#details .matter .sidebar-box .sidebar-item .sidebar-content .hint {
|
||||
font-size: 14px;
|
||||
color: #555555;
|
||||
}
|
||||
#details .matter .sidebar-box .sidebar-item .sidebar-content .hint .saoma-icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
#details .matter .sidebar-box .sidebar-item .sidebar-content .author-box {
|
||||
padding: 16px 5px 30px 16px;
|
||||
width: 100%;
|
||||
}
|
||||
#details .matter .sidebar-box .sidebar-item .sidebar-content .author-box .avatar {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border-radius: 50%;
|
||||
margin-right: 22px;
|
||||
}
|
||||
#details .matter .sidebar-box .sidebar-item .sidebar-content .author-box .author-content .author-name {
|
||||
font-size: 14px;
|
||||
color: #000000;
|
||||
margin-bottom: 11px;
|
||||
}
|
||||
#details .matter .sidebar-box .sidebar-item .sidebar-content .author-box .author-content .author-info {
|
||||
color: #7f7f7f;
|
||||
font-size: 13px;
|
||||
}
|
||||
#details .matter .sidebar-box .sidebar-item .sidebar-content .author-box .author-content .author-info .amount {
|
||||
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
|
||||
font-weight: 650;
|
||||
color: #000000;
|
||||
margin: 0 5px;
|
||||
}
|
||||
#details .matter .sidebar-box .sidebar-item .sidebar-content .medal {
|
||||
width: calc(100% - 16px);
|
||||
padding-bottom: 22px;
|
||||
margin-left: 16px;
|
||||
border-bottom: 1px solid #f2f2f2;
|
||||
}
|
||||
#details .matter .sidebar-box .sidebar-item .sidebar-content .medal .medal-title {
|
||||
font-size: 14px;
|
||||
color: #7f7f7f;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
#details .matter .sidebar-box .sidebar-item .sidebar-content .medal .medal-list {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
#details .matter .sidebar-box .sidebar-item .sidebar-content .medal .medal-list .medal-item {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
margin-right: 8px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
#details .matter .sidebar-box .sidebar-item .sidebar-content .recently {
|
||||
width: 100%;
|
||||
padding: 30px 16px 10px;
|
||||
}
|
||||
#details .matter .sidebar-box .sidebar-item .sidebar-content .recently .recently-title {
|
||||
font-size: 14px;
|
||||
color: #7f7f7f;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
#details .matter .sidebar-box .sidebar-item .sidebar-content .recently .recently-list {
|
||||
flex-direction: column;
|
||||
}
|
||||
#details .matter .sidebar-box .sidebar-item .sidebar-content .recently .recently-list .recently-item {
|
||||
font-size: 14px;
|
||||
color: #000000;
|
||||
margin-bottom: 9px;
|
||||
cursor: pointer;
|
||||
}
|
||||
#details .matter .sidebar-box .sidebar-item .sidebar-content .recently .recently-list .recently-item .dot {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
margin-right: 8px;
|
||||
border-radius: 50%;
|
||||
background-color: #f68251;
|
||||
margin-right: 10px;
|
||||
}
|
||||
#details .coins-area {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
#details .coins-area .coins-box {
|
||||
width: 624px;
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #e9eef2;
|
||||
border-radius: 11px;
|
||||
flex-direction: column;
|
||||
padding: 40px 30px 35px;
|
||||
position: relative;
|
||||
}
|
||||
#details .coins-area .coins-box .fork {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
right: 20px;
|
||||
cursor: pointer;
|
||||
}
|
||||
#details .coins-area .coins-box .coins-head {
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
#details .coins-area .coins-box .coins-head .icon {
|
||||
width: 50px;
|
||||
height: 60px;
|
||||
margin-right: 16px;
|
||||
}
|
||||
#details .coins-area .coins-box .coins-head .text {
|
||||
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
|
||||
font-weight: 400;
|
||||
color: #7f7f7f;
|
||||
font-size: 14px;
|
||||
}
|
||||
#details .coins-area .coins-box .coins-head .text .sum {
|
||||
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
|
||||
font-weight: 650;
|
||||
font-size: 18px;
|
||||
color: #000000;
|
||||
margin: 0 5px;
|
||||
}
|
||||
#details .coins-area .coins-box .coins-input {
|
||||
width: 333px;
|
||||
height: 36px;
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #d7d7d7;
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
margin-bottom: 31px;
|
||||
}
|
||||
#details .coins-area .coins-box .coins-input .input {
|
||||
height: 100%;
|
||||
border: none;
|
||||
outline: none;
|
||||
font-size: 14px;
|
||||
padding: 0 10px;
|
||||
}
|
||||
#details .coins-area .coins-box .coins-input .btn {
|
||||
width: 84px;
|
||||
height: 100%;
|
||||
line-height: 36px;
|
||||
text-align: center;
|
||||
background-color: #50e3c2;
|
||||
}
|
||||
#details .coins-area .coins-box .coins-info {
|
||||
color: #555555;
|
||||
font-size: 14px;
|
||||
margin-bottom: 43px;
|
||||
}
|
||||
#details .coins-area .coins-box .coins-info .icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
margin-right: 6px;
|
||||
}
|
||||
#details .coins-area .coins-box .coins-info .sum {
|
||||
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
|
||||
font-weight: 650;
|
||||
color: #000000;
|
||||
margin: 0 5px;
|
||||
}
|
||||
#details .coins-area .coins-box .coins-info .strategy {
|
||||
margin-left: 5px;
|
||||
color: #026277;
|
||||
cursor: pointer;
|
||||
}
|
||||
#details .coins-area .coins-box .coins-list-area {
|
||||
max-height: 347px;
|
||||
background-color: #fbfbfb;
|
||||
border-radius: 16px;
|
||||
width: 100%;
|
||||
padding: 20px 20px 0;
|
||||
flex-direction: column;
|
||||
}
|
||||
#details .coins-area .coins-box .coins-list-area .coins-total {
|
||||
color: #7f7f7f;
|
||||
font-size: 14px;
|
||||
}
|
||||
#details .coins-area .coins-box .coins-list-area .coins-total .sum {
|
||||
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
|
||||
font-weight: 650;
|
||||
color: #000000;
|
||||
margin: 0 5px;
|
||||
}
|
||||
#details .coins-area .coins-box .coins-list-area .list {
|
||||
overflow: auto;
|
||||
}
|
||||
#details .coins-area .coins-box .coins-list-area .list .item {
|
||||
height: 65px;
|
||||
padding: 0 35px;
|
||||
}
|
||||
#details .coins-area .coins-box .coins-list-area .list .item:not(:last-child) {
|
||||
border-bottom: 1px solid #f2f2f2;
|
||||
}
|
||||
#details .coins-area .coins-box .coins-list-area .list .item .serial {
|
||||
font-family: "Arial-BoldMT", "Arial Bold", "Arial", sans-serif;
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
color: #ffb600;
|
||||
margin-right: 114px;
|
||||
}
|
||||
#details .coins-area .coins-box .coins-list-area .list .item .user {
|
||||
color: #555555;
|
||||
font-size: 13px;
|
||||
}
|
||||
#details .coins-area .coins-box .coins-list-area .list .item .user .avatar {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
#details .coins-area .coins-box .coins-list-area .list .item .amount {
|
||||
color: #000000;
|
||||
font-size: 16px;
|
||||
}
|
||||
#details .coins-area .coins-box .coins-list-area .list .item .amount .text {
|
||||
font-size: 13px;
|
||||
margin-left: 2px;
|
||||
}
|
||||
Reference in New Issue
Block a user