no message
This commit is contained in:
@@ -30,62 +30,9 @@
|
||||
width: 1200px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.content .sidebar {
|
||||
position: fixed;
|
||||
top: 175px;
|
||||
right: 100px;
|
||||
z-index: 10;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.content .sidebar .pointer {
|
||||
margin-bottom: 192px;
|
||||
}
|
||||
.content .sidebar .pointer .item {
|
||||
width: 4px;
|
||||
height: 50px;
|
||||
margin-bottom: 2px;
|
||||
background-color: #ffffff;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
}
|
||||
.content .sidebar .pointer .item.active {
|
||||
background-color: #f3974b;
|
||||
}
|
||||
.content .sidebar .pointer .item.active::after {
|
||||
content: attr(data-index);
|
||||
position: absolute;
|
||||
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
color: #f3974b;
|
||||
font-size: 14px;
|
||||
top: 0;
|
||||
left: -21px;
|
||||
}
|
||||
.content .sidebar .arrow {
|
||||
width: 12px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.content .sidebar .arrow .item {
|
||||
width: 12px;
|
||||
height: 7px;
|
||||
}
|
||||
.content .sidebar .arrow .item.orange {
|
||||
cursor: pointer;
|
||||
}
|
||||
.content .sidebar .arrow .item.top.orange {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
.content .sidebar .arrow .item:not(:last-of-type) {
|
||||
margin-bottom: 34px;
|
||||
}
|
||||
.content .sidebar .arrow .item.bottom.white {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
.content .introduce {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
}
|
||||
.content .introduce::after {
|
||||
content: "";
|
||||
@@ -97,6 +44,60 @@
|
||||
background: linear-gradient(180deg, #1e135e 0%, #5241b0 100%);
|
||||
z-index: -1;
|
||||
}
|
||||
.content .introduce .sidebar {
|
||||
position: absolute;
|
||||
top: 175px;
|
||||
right: 100px;
|
||||
z-index: 10;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.content .introduce .sidebar .pointer {
|
||||
margin-bottom: 192px;
|
||||
}
|
||||
.content .introduce .sidebar .pointer .item {
|
||||
width: 4px;
|
||||
height: 50px;
|
||||
margin-bottom: 2px;
|
||||
background-color: #ffffff;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
}
|
||||
.content .introduce .sidebar .pointer .item.active {
|
||||
background-color: #f3974b;
|
||||
}
|
||||
.content .introduce .sidebar .pointer .item.active::after {
|
||||
content: attr(data-index);
|
||||
position: absolute;
|
||||
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
color: #f3974b;
|
||||
font-size: 14px;
|
||||
top: 0;
|
||||
left: -21px;
|
||||
}
|
||||
.content .introduce .sidebar .arrow {
|
||||
width: 12px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.content .introduce .sidebar .arrow .item {
|
||||
width: 12px;
|
||||
height: 7px;
|
||||
}
|
||||
.content .introduce .sidebar .arrow .item.orange {
|
||||
cursor: pointer;
|
||||
}
|
||||
.content .introduce .sidebar .arrow .item.top.orange {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
.content .introduce .sidebar .arrow .item:not(:last-of-type) {
|
||||
margin-bottom: 34px;
|
||||
}
|
||||
.content .introduce .sidebar .arrow .item.bottom.white {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
.content .introduce .head {
|
||||
height: 116px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.101961);
|
||||
@@ -149,14 +150,15 @@
|
||||
font-size: 14px;
|
||||
color: #ffffff;
|
||||
line-height: 24px;
|
||||
white-space: break-spaces;
|
||||
}
|
||||
.content .introduce .box .album {
|
||||
width: 800px;
|
||||
height: 448px;
|
||||
margin-top: 60px;
|
||||
margin-right: 50px;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
margin-top: 60px;
|
||||
margin-right: 50px;
|
||||
}
|
||||
.content .introduce .box .album .bj {
|
||||
position: absolute;
|
||||
@@ -174,17 +176,28 @@
|
||||
height: 720px;
|
||||
z-index: -1;
|
||||
}
|
||||
.content .introduce .box .album .bj.bj3 {
|
||||
.content .introduce .box .album .album-box {
|
||||
width: 800px;
|
||||
height: 448px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.content .introduce .box .album .album-box .item {
|
||||
width: 800px;
|
||||
height: 448px;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
.content .introduce .box .album .album-box .item .bj.bj3 {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 1;
|
||||
}
|
||||
.content .introduce .box .album .bj.bj4 {
|
||||
.content .introduce .box .album .album-box .item .bj.bj4 {
|
||||
width: 68px;
|
||||
height: 68px;
|
||||
z-index: 2;
|
||||
}
|
||||
.content .introduce .box .album .bj.bj5 {
|
||||
.content .introduce .box .album .album-box .item .bj.bj5 {
|
||||
width: 236px;
|
||||
height: 340px;
|
||||
z-index: 3;
|
||||
@@ -192,11 +205,11 @@
|
||||
left: 318px;
|
||||
transform: translate(0);
|
||||
}
|
||||
.content .introduce .box .album .img {
|
||||
.content .introduce .box .album .album-box .item .img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.content .introduce .box .album .play {
|
||||
.content .introduce .box .album .album-box .item .play {
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
position: absolute;
|
||||
@@ -349,8 +362,11 @@
|
||||
margin-right: 40px;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
.content .works .mv-box .item .text-box {
|
||||
margin-bottom: 16px;
|
||||
height: 126px;
|
||||
}
|
||||
.content .works .mv-box .item .text {
|
||||
height: 96px;
|
||||
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
@@ -368,7 +384,6 @@
|
||||
font-size: 14px;
|
||||
color: #555555;
|
||||
padding: 0 40px;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
.content .works .mv-box .item .media {
|
||||
position: relative;
|
||||
@@ -651,7 +666,7 @@
|
||||
transform: translateX(-50%);
|
||||
height: 384px;
|
||||
z-index: -1;
|
||||
width: 99vw;
|
||||
width: 98vw;
|
||||
overflow: hidden;
|
||||
}
|
||||
.content .custom .bottom .bj {
|
||||
@@ -771,7 +786,7 @@
|
||||
display: block;
|
||||
}
|
||||
.content .student .student-box .progress-bar .bar.black {
|
||||
background-color: #000000;
|
||||
background-color: #ffffff;
|
||||
border-radius: 0 10px 10px 0;
|
||||
}
|
||||
.content .student .student-box .operate .cut {
|
||||
@@ -849,7 +864,7 @@
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: #4c4c4c;
|
||||
z-index: 1000;
|
||||
z-index: 1001;
|
||||
}
|
||||
.content .preview .close {
|
||||
position: absolute;
|
||||
@@ -863,3 +878,157 @@
|
||||
width: 800px;
|
||||
height: 600px;
|
||||
}
|
||||
.content .bottom-play {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 76px;
|
||||
background-color: #353535;
|
||||
z-index: 1000;
|
||||
}
|
||||
.content .bottom-play .bottom-box {
|
||||
height: 100%;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.content .bottom-play .bottom-box .left .img {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
margin-right: 12px;
|
||||
}
|
||||
.content .bottom-play .bottom-box .left .name {
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 6px;
|
||||
max-width: 240px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.content .bottom-play .bottom-box .middle {
|
||||
flex-direction: column;
|
||||
}
|
||||
.content .bottom-play .bottom-box .middle .operate {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.content .bottom-play .bottom-box .middle .operate .cut {
|
||||
width: 14px;
|
||||
height: 12px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.content .bottom-play .bottom-box .middle .operate .speed {
|
||||
width: 16px;
|
||||
height: 12px;
|
||||
margin: 0 40px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.content .bottom-play .bottom-box .middle .operate .play {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.content .bottom-play .bottom-box .middle .progress-bar {
|
||||
height: 10px;
|
||||
width: 500px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.content .bottom-play .bottom-box .middle .progress-bar .bar {
|
||||
height: 4px;
|
||||
background-color: #ffffff;
|
||||
border-radius: 10px;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
}
|
||||
.content .bottom-play .bottom-box .middle .progress-bar .bar.white {
|
||||
width: 0;
|
||||
border-radius: 10px 0 0 10px;
|
||||
background-color: #5241b0;
|
||||
}
|
||||
.content .bottom-play .bottom-box .middle .progress-bar .bar.white::before {
|
||||
content: "";
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background-color: #f3974b;
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
right: -5px;
|
||||
cursor: pointer;
|
||||
z-index: 1;
|
||||
display: block;
|
||||
}
|
||||
.content .bottom-play .bottom-box .middle .progress-bar .bar.black {
|
||||
background-color: #f2f2f2;
|
||||
border-radius: 0 10px 10px 0;
|
||||
}
|
||||
.content .bottom-play .bottom-box .right .item {
|
||||
position: relative;
|
||||
}
|
||||
.content .bottom-play .bottom-box .right .item .svg {
|
||||
display: block;
|
||||
cursor: pointer;
|
||||
}
|
||||
.content .bottom-play .bottom-box .right .item:hover .sound-control {
|
||||
display: flex;
|
||||
}
|
||||
.content .bottom-play .bottom-box .right .item .sound-control {
|
||||
display: none;
|
||||
justify-content: center;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
height: 151px;
|
||||
padding-bottom: 2px;
|
||||
position: absolute;
|
||||
top: -158px;
|
||||
width: 42px;
|
||||
align-items: center;
|
||||
background: #1f1f1f;
|
||||
border-radius: 8px;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
padding: 12px;
|
||||
cursor: auto;
|
||||
}
|
||||
.content .bottom-play .bottom-box .right .item .sound-control::after {
|
||||
content: "";
|
||||
width: 100%;
|
||||
height: 7px;
|
||||
position: absolute;
|
||||
bottom: -7px;
|
||||
}
|
||||
.content .bottom-play .bottom-box .right .item .sound-control .value {
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
user-select: none;
|
||||
}
|
||||
.content .bottom-play .bottom-box .right .item .sound-control .progress {
|
||||
width: 4px;
|
||||
height: 100px;
|
||||
border-radius: 4px;
|
||||
background-color: rgba(255, 255, 255, 0.2);
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
cursor: pointer;
|
||||
}
|
||||
.content .bottom-play .bottom-box .right .item .sound-control .progress .bar {
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
background-color: #fff;
|
||||
border-radius: 4px;
|
||||
position: relative;
|
||||
}
|
||||
.content .bottom-play .bottom-box .right .item .sound-control .progress .bar::before {
|
||||
content: "";
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background-color: #f3974b;
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
transform: translate(-50%, -50%);
|
||||
left: 50%;
|
||||
z-index: 1;
|
||||
display: block;
|
||||
}
|
||||
|
||||
@@ -34,70 +34,9 @@
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
position: fixed;
|
||||
top: 175px;
|
||||
right: 100px;
|
||||
z-index: 10;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
.pointer {
|
||||
margin-bottom: 192px;
|
||||
.item {
|
||||
width: 4px;
|
||||
height: 50px;
|
||||
margin-bottom: 2px;
|
||||
background-color: rgba(255, 255, 255, 1);
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
|
||||
&.active {
|
||||
background-color: rgba(243, 151, 75, 1);
|
||||
&::after {
|
||||
content: attr(data-index);
|
||||
position: absolute;
|
||||
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
color: #f3974b;
|
||||
font-size: 14px;
|
||||
top: 0;
|
||||
left: -21px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.arrow {
|
||||
width: 12px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.item {
|
||||
width: 12px;
|
||||
height: 7px;
|
||||
|
||||
&.orange {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&.top.orange {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
&:not(:last-of-type) {
|
||||
margin-bottom: 34px;
|
||||
}
|
||||
|
||||
&.bottom.white {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.introduce {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
&::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
@@ -108,6 +47,69 @@
|
||||
background: linear-gradient(180deg, rgba(30, 19, 94, 1) 0%, rgba(82, 65, 176, 1) 100%);
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
position: absolute;
|
||||
top: 175px;
|
||||
right: 100px;
|
||||
z-index: 10;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
.pointer {
|
||||
margin-bottom: 192px;
|
||||
.item {
|
||||
width: 4px;
|
||||
height: 50px;
|
||||
margin-bottom: 2px;
|
||||
background-color: rgba(255, 255, 255, 1);
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
|
||||
&.active {
|
||||
background-color: rgba(243, 151, 75, 1);
|
||||
&::after {
|
||||
content: attr(data-index);
|
||||
position: absolute;
|
||||
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
color: #f3974b;
|
||||
font-size: 14px;
|
||||
top: 0;
|
||||
left: -21px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.arrow {
|
||||
width: 12px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.item {
|
||||
width: 12px;
|
||||
height: 7px;
|
||||
|
||||
&.orange {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&.top.orange {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
&:not(:last-of-type) {
|
||||
margin-bottom: 34px;
|
||||
}
|
||||
|
||||
&.bottom.white {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.head {
|
||||
height: 116px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.101961);
|
||||
@@ -164,6 +166,7 @@
|
||||
font-size: 14px;
|
||||
color: #ffffff;
|
||||
line-height: 24px;
|
||||
white-space: break-spaces;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -171,11 +174,10 @@
|
||||
.album {
|
||||
width: 800px;
|
||||
height: 448px;
|
||||
margin-top: 60px;
|
||||
margin-right: 50px;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
|
||||
margin-top: 60px;
|
||||
margin-right: 50px;
|
||||
.bj {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
@@ -192,42 +194,58 @@
|
||||
height: 720px;
|
||||
z-index: -1;
|
||||
}
|
||||
}
|
||||
|
||||
&.bj3 {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
.album-box {
|
||||
width: 800px;
|
||||
height: 448px;
|
||||
overflow: hidden;
|
||||
|
||||
.item {
|
||||
width: 800px;
|
||||
height: 448px;
|
||||
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
|
||||
.bj {
|
||||
&.bj3 {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
&.bj4 {
|
||||
width: 68px;
|
||||
height: 68px;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
&.bj5 {
|
||||
width: 236px;
|
||||
height: 340px;
|
||||
z-index: 3;
|
||||
top: 0;
|
||||
left: 318px;
|
||||
transform: translate(0);
|
||||
}
|
||||
}
|
||||
|
||||
.img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.play {
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
position: absolute;
|
||||
left: 30px;
|
||||
bottom: 30px;
|
||||
z-index: 1;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
&.bj4 {
|
||||
width: 68px;
|
||||
height: 68px;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
&.bj5 {
|
||||
width: 236px;
|
||||
height: 340px;
|
||||
z-index: 3;
|
||||
top: 0;
|
||||
left: 318px;
|
||||
transform: translate(0);
|
||||
}
|
||||
}
|
||||
|
||||
.img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.play {
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
position: absolute;
|
||||
left: 30px;
|
||||
bottom: 30px;
|
||||
z-index: 1;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -397,8 +415,13 @@
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
.text-box {
|
||||
margin-bottom: 16px;
|
||||
height: 126px;
|
||||
}
|
||||
|
||||
.text {
|
||||
height: 96px;
|
||||
// height: 96px;
|
||||
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
@@ -417,7 +440,7 @@
|
||||
font-size: 14px;
|
||||
color: #555555;
|
||||
padding: 0 40px;
|
||||
margin-bottom: 18px;
|
||||
// margin-bottom: 18px;
|
||||
}
|
||||
|
||||
.media {
|
||||
@@ -750,7 +773,7 @@
|
||||
transform: translateX(-50%);
|
||||
height: 384px;
|
||||
z-index: -1;
|
||||
width: 99vw;
|
||||
width: 98vw;
|
||||
overflow: hidden;
|
||||
|
||||
.bj {
|
||||
@@ -887,7 +910,7 @@
|
||||
}
|
||||
|
||||
&.black {
|
||||
background-color: rgba(0, 0, 0, 1);
|
||||
background-color: rgb(255, 255, 255);
|
||||
border-radius: 0 10px 10px 0;
|
||||
}
|
||||
}
|
||||
@@ -984,7 +1007,8 @@
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: #4c4c4c;
|
||||
z-index: 1000;
|
||||
z-index: 1001;
|
||||
|
||||
.close {
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
@@ -998,4 +1022,182 @@
|
||||
height: 600px;
|
||||
}
|
||||
}
|
||||
|
||||
.bottom-play {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 76px;
|
||||
background-color: #353535;
|
||||
z-index: 1000;
|
||||
|
||||
.bottom-box {
|
||||
height: 100%;
|
||||
justify-content: space-between;
|
||||
|
||||
.left {
|
||||
.img {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
margin-right: 12px;
|
||||
}
|
||||
|
||||
.name {
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 6px;
|
||||
max-width: 240px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
.middle {
|
||||
flex-direction: column;
|
||||
|
||||
.operate {
|
||||
margin-bottom: 10px;
|
||||
|
||||
.cut {
|
||||
width: 14px;
|
||||
height: 12px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.speed {
|
||||
width: 16px;
|
||||
height: 12px;
|
||||
margin: 0 40px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.play {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.progress-bar {
|
||||
height: 10px;
|
||||
width: 500px;
|
||||
margin: 0 auto;
|
||||
.bar {
|
||||
height: 4px;
|
||||
background-color: rgba(255, 255, 255, 1);
|
||||
border-radius: 10px;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
|
||||
&.white {
|
||||
width: 0;
|
||||
border-radius: 10px 0 0 10px;
|
||||
background-color: #5241b0;
|
||||
|
||||
&::before {
|
||||
content: "";
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background-color: #f3974b;
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
right: -5px;
|
||||
cursor: pointer;
|
||||
z-index: 1;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
&.black {
|
||||
background-color: #f2f2f2;
|
||||
border-radius: 0 10px 10px 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.right {
|
||||
.item {
|
||||
position: relative;
|
||||
.svg {
|
||||
display: block;
|
||||
cursor: pointer;
|
||||
}
|
||||
&:hover {
|
||||
.sound-control {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
.sound-control {
|
||||
display: none;
|
||||
justify-content: center;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
height: 151px;
|
||||
padding-bottom: 2px;
|
||||
position: absolute;
|
||||
top: -158px;
|
||||
width: 42px;
|
||||
align-items: center;
|
||||
background: #1f1f1f;
|
||||
border-radius: 8px;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
padding: 12px;
|
||||
cursor: auto;
|
||||
|
||||
&::after {
|
||||
content: "";
|
||||
width: 100%;
|
||||
height: 7px;
|
||||
position: absolute;
|
||||
bottom: -7px;
|
||||
}
|
||||
|
||||
.value {
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.progress {
|
||||
width: 4px;
|
||||
height: 100px;
|
||||
border-radius: 4px;
|
||||
background-color: rgba(255, 255, 255, 0.2);
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
cursor: pointer;
|
||||
|
||||
.bar {
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
background-color: #fff;
|
||||
border-radius: 4px;
|
||||
position: relative;
|
||||
&::before {
|
||||
content: "";
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background-color: #f3974b;
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
transform: translate(-50%, -50%);
|
||||
left: 50%;
|
||||
z-index: 1;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BIN
static/img/favicon.ico
Normal file
BIN
static/img/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 66 KiB |
2
static/js/axios.min.js
vendored
Normal file
2
static/js/axios.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -56,61 +56,28 @@ const search = createApp({
|
||||
const customRef = ref(null);
|
||||
const studentRef = ref(null);
|
||||
|
||||
let pointerState = ref("introduce");
|
||||
let pointerIndex = ref(0);
|
||||
|
||||
const elements = ref([
|
||||
{
|
||||
isVisible: false,
|
||||
ref: introduceRef,
|
||||
title: "介绍",
|
||||
state: "introduce",
|
||||
},
|
||||
{
|
||||
isVisible: false,
|
||||
ref: worksRef,
|
||||
title: "作品",
|
||||
state: "works",
|
||||
},
|
||||
{
|
||||
isVisible: false,
|
||||
ref: customRef,
|
||||
title: "定制",
|
||||
state: "custom",
|
||||
},
|
||||
{
|
||||
isVisible: false,
|
||||
ref: studentRef,
|
||||
title: "学生",
|
||||
state: "student",
|
||||
},
|
||||
]);
|
||||
const albumBoxRef = ref(null);
|
||||
|
||||
// 点击侧边栏
|
||||
const changePointer = (state) => {
|
||||
const element = document.querySelector(`.${state}`);
|
||||
|
||||
if (!element) return;
|
||||
element.scrollIntoView({
|
||||
behavior: "smooth",
|
||||
});
|
||||
const changePointer = (index) => {
|
||||
albumBoxRef.value.scrollTo({ top: 448 * index, behavior: "smooth" });
|
||||
pointerIndex.value = index;
|
||||
};
|
||||
|
||||
// 向上滚动到上一页
|
||||
const scrollToPrevious = () => {
|
||||
const currentIndex = ["introduce", "works", "custom", "student"].indexOf(pointerState.value);
|
||||
if (currentIndex > 0) {
|
||||
const prevState = ["introduce", "works", "custom", "student"][currentIndex - 1];
|
||||
changePointer(prevState);
|
||||
}
|
||||
let index = pointerIndex.value - 1;
|
||||
if (index < 0) return;
|
||||
changePointer(index);
|
||||
};
|
||||
|
||||
// 向下滚动到下一页
|
||||
const scrollToNext = () => {
|
||||
const currentIndex = ["introduce", "works", "custom", "student"].indexOf(pointerState.value);
|
||||
if (currentIndex < 3) {
|
||||
const nextState = ["introduce", "works", "custom", "student"][currentIndex + 1];
|
||||
changePointer(nextState);
|
||||
}
|
||||
let index = pointerIndex.value + 1;
|
||||
if (index > bannerList.value.length) return;
|
||||
changePointer(index);
|
||||
};
|
||||
|
||||
// 获取当前在可视窗口中的元素ref
|
||||
@@ -119,55 +86,46 @@ const search = createApp({
|
||||
return visibleElement ? visibleElement.ref : null;
|
||||
});
|
||||
|
||||
const observer = ref(null);
|
||||
let bannerList = ref([]);
|
||||
let awardMVList = ref([]);
|
||||
|
||||
// 初始化观察器
|
||||
const initObserver = () => {
|
||||
observer.value = new IntersectionObserver(
|
||||
(entries) => {
|
||||
entries.forEach((entry) => {
|
||||
// 找到对应的元素状态并更新
|
||||
const targetEl = elements.value.find((el) => el.ref === entry.target);
|
||||
if (targetEl) {
|
||||
targetEl.isVisible = entry.isIntersecting;
|
||||
if (entry.isIntersecting) pointerState.value = targetEl.state;
|
||||
}
|
||||
});
|
||||
},
|
||||
{
|
||||
root: null, // 视口作为根元素
|
||||
rootMargin: "0px",
|
||||
threshold: 0.3, // 可见比例达到10%时触发
|
||||
}
|
||||
);
|
||||
|
||||
// 开启监听 - 对所有预定义的元素执行observe
|
||||
elements.value.forEach((element) => {
|
||||
if (element.ref && element.ref) observer.value.observe(element.ref);
|
||||
const init = () => {
|
||||
ajaxget("https://pujianchaoyin.com/index/api").then((res) => {
|
||||
if (res.code != 200) return;
|
||||
const data = res.data;
|
||||
console.log("data", data);
|
||||
bannerList.value = data.banner;
|
||||
awardMVList.value = data.awardMVList;
|
||||
nextTick(() => {});
|
||||
});
|
||||
};
|
||||
|
||||
console.log(observer.value);
|
||||
let bannerSwiperTimer = null;
|
||||
const bannerSwiper = () => {
|
||||
bannerSwiperTimer = setTimeout(() => {
|
||||
|
||||
}, 1000);
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
setTimeout(() => initObserver(), 1000);
|
||||
init();
|
||||
|
||||
// 添加进度更新事件监听器
|
||||
if (audioPlayer.value) {
|
||||
console.log("volume", audioPlayer.value.volume);
|
||||
|
||||
audioPlayer.value.addEventListener("timeupdate", getProgress);
|
||||
audioPlayer.value.addEventListener("loadedmetadata", getProgress);
|
||||
}
|
||||
|
||||
studentList.value.forEach((item, index) => {
|
||||
item["order"] = index;
|
||||
item["order"] = index;
|
||||
// item["random"] = generateRandomString();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
// 组件卸载时清理事件监听器
|
||||
onUnmounted(() => {
|
||||
observer.value?.disconnect();
|
||||
|
||||
audioPlayer?.value?.removeEventListener("timeupdate", getProgress);
|
||||
audioPlayer?.value?.removeEventListener("loadedmetadata", getProgress);
|
||||
});
|
||||
@@ -195,14 +153,15 @@ const search = createApp({
|
||||
|
||||
let art = null;
|
||||
// 开启播放 MV
|
||||
const openPreview = () => {
|
||||
const openPreview = (url, poster = "") => {
|
||||
previewState.value = true;
|
||||
nextTick(() => {
|
||||
art = new Artplayer({
|
||||
container: ".artplayer-app",
|
||||
url: "https://o.x-php.com/Zvt57TuJSUvkyhw-xG7Y2l-c-JoqdX_qqsgFptxhcq_cQnrlc6Z1CwMUBq_D-81qNDQyOQ~~",
|
||||
url,
|
||||
autoplay: true,
|
||||
poster: "https://o.x-php.com/thumb/UHkZOgUVDvP9z7rPV2rT1kE22Zf1QEiLggt9OPnf5hC7a-QU5l8VTqiP5awMLv2DMEUiOUl03dK1PW0Yzf8ZPfpa7ZTTgV-PZGNjZQ~~",
|
||||
poster,
|
||||
fullscreen: true,
|
||||
});
|
||||
art.play();
|
||||
});
|
||||
@@ -360,10 +319,7 @@ const search = createApp({
|
||||
|
||||
const cutStudent = (order) => {
|
||||
// 找到目标元素和第一个元素
|
||||
const [target, first] = [
|
||||
studentList.value.find(item => item.order == order),
|
||||
studentList.value.find(item => item.order == 0)
|
||||
];
|
||||
const [target, first] = [studentList.value.find((item) => item.order == order), studentList.value.find((item) => item.order == 0)];
|
||||
// 交换order值
|
||||
if (target && first && target !== first) {
|
||||
[target.order, first.order] = [first.order, target.order];
|
||||
@@ -383,6 +339,139 @@ const search = createApp({
|
||||
return result;
|
||||
};
|
||||
|
||||
return { cutStudent, studentList, studentIndex, scrollToPrevious, scrollToNext, changePointer, pointerState, visibleRef, studentRef, customRef, worksRef, introduceRef, customList, closeAll, manageAudio, progress, pauseAudio, playAudio, audioList, closePreview, openPreview, previewState, audioHeadState, pauseHead, playHead, audioPlayer, text, trait, fastForward };
|
||||
// 响应式数据:音量值、是否静音
|
||||
const volume = ref(84);
|
||||
const isMuted = ref(false);
|
||||
|
||||
// 切换静音状态的方法
|
||||
const toggleMute = () => {
|
||||
isMuted.value = !isMuted.value;
|
||||
if (audioPlayer.value) {
|
||||
audioPlayer.value.muted = isMuted.value;
|
||||
}
|
||||
};
|
||||
|
||||
// 计算并设置音量百分比
|
||||
const setVolumePercentage = (percentage) => {
|
||||
// 确保百分比在0-100之间
|
||||
const volumePercent = Math.max(0, Math.min(100, percentage));
|
||||
volume.value = Math.abs(~~volumePercent);
|
||||
|
||||
// 设置音频元素的音量(范围是0-1)
|
||||
if (audioPlayer.value) audioPlayer.value.volume = volumePercent / 100;
|
||||
};
|
||||
|
||||
// 处理音量进度条点击
|
||||
const handleVolumeClick = (event) => {
|
||||
// 获取进度条元素
|
||||
const progressBar = event.currentTarget;
|
||||
const rect = progressBar.getBoundingClientRect();
|
||||
|
||||
// 计算点击位置相对于进度条的比例
|
||||
// 因为是垂直进度条,所以用clientY
|
||||
const clickPosition = rect.bottom - event.clientY;
|
||||
const percentage = (clickPosition / rect.height) * 100;
|
||||
|
||||
setVolumePercentage(percentage);
|
||||
};
|
||||
|
||||
// 处理音量进度条拖拽
|
||||
let isDragging = false;
|
||||
|
||||
const startDrag = (event) => {
|
||||
isDragging = true;
|
||||
handleVolumeDrag(event);
|
||||
|
||||
// 添加事件监听器
|
||||
document.addEventListener("mousemove", handleVolumeDrag);
|
||||
document.addEventListener("mouseup", stopDrag);
|
||||
};
|
||||
|
||||
const handleVolumeDrag = (event) => {
|
||||
if (!isDragging) return;
|
||||
|
||||
// 获取音量进度条元素
|
||||
const progressBar = document.querySelector(".sound-control .progress");
|
||||
if (!progressBar) return;
|
||||
|
||||
const rect = progressBar.getBoundingClientRect();
|
||||
|
||||
// 计算拖拽位置相对于进度条的比例
|
||||
let dragPosition = rect.bottom - event.clientY;
|
||||
// 限制在进度条范围内
|
||||
dragPosition = Math.max(0, Math.min(dragPosition, rect.height));
|
||||
|
||||
const percentage = (dragPosition / rect.height) * 100;
|
||||
setVolumePercentage(percentage);
|
||||
};
|
||||
|
||||
const stopDrag = () => {
|
||||
isDragging = false;
|
||||
document.removeEventListener("mousemove", handleVolumeDrag);
|
||||
document.removeEventListener("mouseup", stopDrag);
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
// 绑定音量控制相关事件
|
||||
const progressBar = document.querySelector(".sound-control .progress");
|
||||
if (progressBar) {
|
||||
progressBar.addEventListener("click", handleVolumeClick);
|
||||
|
||||
// 找到进度条内的滑块元素(bar)并绑定拖拽事件
|
||||
const volumeBar = progressBar.querySelector(".bar");
|
||||
if (volumeBar) volumeBar.addEventListener("mousedown", startDrag);
|
||||
}
|
||||
});
|
||||
|
||||
onUnmounted(() => {
|
||||
// 清理音量控制相关事件
|
||||
const progressBar = document.querySelector(".sound-control .progress");
|
||||
if (progressBar) {
|
||||
progressBar.removeEventListener("click", handleVolumeClick);
|
||||
|
||||
const volumeBar = progressBar.querySelector(".bar");
|
||||
if (volumeBar) volumeBar.removeEventListener("mousedown", startDrag);
|
||||
}
|
||||
|
||||
// 确保移除所有拖拽相关事件
|
||||
document.removeEventListener("mousemove", handleVolumeDrag);
|
||||
document.removeEventListener("mouseup", stopDrag);
|
||||
});
|
||||
|
||||
const ajaxget = (url, data) => {
|
||||
if (!data) data = {};
|
||||
|
||||
if (["localhost", "127.0.0.1"].includes(location.hostname)) data["authorization"] = "3338bf6a2e53dda872da3664a2560b25";
|
||||
|
||||
url = url.indexOf("https://") == -1 ? projectBaseURL2 + url : url;
|
||||
|
||||
// url += objectToQueryString(data);
|
||||
return new Promise((resolve, reject) => {
|
||||
axios
|
||||
.get(url, {
|
||||
emulateJSON: true,
|
||||
withCredentials: true,
|
||||
})
|
||||
.then((res) => {
|
||||
var data = typeof res.data == "string" ? JSON.parse(res.data) : res.data;
|
||||
|
||||
if (data.code == 401) {
|
||||
openShowWindow();
|
||||
reject();
|
||||
}
|
||||
if (data.code == 201) creationAlertBox("error", data.message || data.msg);
|
||||
|
||||
resolve(data);
|
||||
})
|
||||
.catch((error) => {
|
||||
// console.log("resolve", resolve)
|
||||
|
||||
if (error.response?.status == 401) openShowWindow();
|
||||
resolve("");
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
return { awardMVList, bannerList, albumBoxRef, volume, handleVolumeClick, handleVolumeDrag, startDrag, stopDrag, toggleMute, isMuted, volume, cutStudent, studentList, studentIndex, scrollToPrevious, scrollToNext, changePointer, pointerIndex, visibleRef, studentRef, customRef, worksRef, introduceRef, customList, closeAll, manageAudio, progress, pauseAudio, playAudio, audioList, closePreview, openPreview, previewState, audioHeadState, pauseHead, playHead, audioPlayer, text, trait, fastForward };
|
||||
},
|
||||
}).mount("#appIndex");
|
||||
|
||||
Reference in New Issue
Block a user