feat: 新增编辑页面和分享功能,优化链接跳转和样式

- 添加edit.html编辑页面及相关CSS样式
- 实现内容编辑区的富文本功能
- 为item-bottom组件添加分享功能,包括复制链接和微信转发
- 更新多个组件的链接跳转地址
- 优化CSS样式,包括圆角、阴影和hover效果
- 修复部分样式问题和布局错位
- 移除不再使用的section-index.html文件
This commit is contained in:
A1300399510
2025-11-03 00:42:30 +08:00
parent 38028167c0
commit 7bdeff17f6
51 changed files with 2414 additions and 481 deletions

View File

@@ -50,6 +50,7 @@
}
.operate {
position: relative;
.view {
.icon {
width: 13px;
@@ -74,6 +75,60 @@
height: 18px;
}
}
.mask {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: 2;
background-color: rgba(0, 0, 0, 0.1);
}
.operate {
position: absolute;
top: 23px;
right: 0;
width: 100px;
background-color: rgba(242, 242, 242, 1);
border-radius: 8px;
padding: 5px;
z-index: 2;
&::after {
content: "";
width: calc(100% - 10px);
height: calc(100% - 10px);
position: absolute;
top: 50%;
left: 50%;
display: block;
transform: translate(-50%, -50%);
background-color: rgba(251, 251, 251, 1);
z-index: -1;
}
.item {
text-align: center;
font-size: 18px;
color: #333333;
padding: 14px 0;
cursor: pointer;
&:first-of-type {
padding-top: 24px;
}
&:last-of-type {
padding-bottom: 24px;
}
&:not(:last-of-type) {
border-bottom: 1px dotted #d7d7d7;
}
}
}
}
}
@@ -161,6 +216,80 @@
&:not(:last-child) {
margin-right: 60px;
}
&.share {
position: relative;
&:hover {
.share-box {
display: flex;
}
}
}
.share-box {
z-index: 2;
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: 42px;
width: 130px;
height: 100px;
background-color: rgba(255, 255, 255, 1);
border-radius: 6px;
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.168627450980392);
flex-direction: column;
display: none;
.share-item {
width: 100%;
height: 40px;
color: #555555;
font-size: 14px;
&:hover {
background-color: rgba(240, 250, 253, 1);
}
.share-icon {
width: 18px;
height: 18px;
margin-right: 13px;
}
&.wenxin:hover {
.QRcode-box {
display: flex;
}
}
.QRcode-box {
z-index: 1;
display: none;
position: absolute;
top: 48px;
left: 100%;
width: 140px;
height: 166px;
background-color: #ffffff;
border-radius: 6px;
padding: 20px;
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.16862745);
flex-direction: column;
.QRcode {
width: 100px;
height: 100px;
margin-bottom: 4px;
}
.text {
color: #555555;
font-size: 14px;
line-height: normal;
}
}
}
}
}
}
@@ -380,6 +509,7 @@
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 2;
.coins-box {
width: 624px;