no message
This commit is contained in:
242
create.html
Normal file
242
create.html
Normal file
@@ -0,0 +1,242 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<title>朴见潮音</title>
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" />
|
||||||
|
<style>
|
||||||
|
/* 全局样式 */
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
html,
|
||||||
|
body {
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: "Microsoft YaHei", Arial, sans-serif;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 页头样式 */
|
||||||
|
.page-header {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 90px;
|
||||||
|
background-color: #000;
|
||||||
|
color: #fff;
|
||||||
|
z-index: 20;
|
||||||
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-content {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
height: 100%;
|
||||||
|
padding: 0 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-left {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-right {
|
||||||
|
display: flex;
|
||||||
|
gap: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-right i {
|
||||||
|
font-size: 24px;
|
||||||
|
color: #f5f5f5;
|
||||||
|
transition: color 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-right i:hover {
|
||||||
|
color: #1db954;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 全屏iframe容器样式 */
|
||||||
|
.fullscreen-iframe-container {
|
||||||
|
position: fixed;
|
||||||
|
top: 90px; /* 调整为页头高度 */
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: calc(100% - 90px); /* 减去页头高度 */
|
||||||
|
position: relative;
|
||||||
|
border: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#haimian-iframe {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
border: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Loading效果样式 */
|
||||||
|
#loading-overlay {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background-color: #000;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
z-index: 10;
|
||||||
|
transition: opacity 0.5s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.spinner {
|
||||||
|
width: 60px;
|
||||||
|
height: 60px;
|
||||||
|
border: 5px solid rgba(255, 255, 255, 0.1);
|
||||||
|
border-radius: 50%;
|
||||||
|
border-top-color: #1db954;
|
||||||
|
animation: spin 1s ease-in-out infinite;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes spin {
|
||||||
|
to {
|
||||||
|
transform: rotate(360deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.loading-text {
|
||||||
|
color: #fff;
|
||||||
|
font-size: 18px;
|
||||||
|
letter-spacing: 2px;
|
||||||
|
animation: pulse 1.5s infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes pulse {
|
||||||
|
0% {
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 页头标题样式 */
|
||||||
|
.header-title {
|
||||||
|
width: 139px;
|
||||||
|
height: 28px;
|
||||||
|
font-size: 28px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #fff;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
text-shadow: 0 0 10px rgba(29, 185, 84, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 页头品宣样式 */
|
||||||
|
.header-slogan {
|
||||||
|
font-size: 14px;
|
||||||
|
font-style: italic;
|
||||||
|
color: #ccc;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* LOGO蒙版样式 */
|
||||||
|
.logo-mask {
|
||||||
|
position: fixed;
|
||||||
|
top: 110px;
|
||||||
|
left: 20px;
|
||||||
|
width: 160px;
|
||||||
|
height: 39px;
|
||||||
|
background-color: #0d0d0d;
|
||||||
|
z-index: 5;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<header class="page-header">
|
||||||
|
<div class="header-content">
|
||||||
|
<div class="header-left">
|
||||||
|
<img class="header-title" src="./static/img/logo.png" />
|
||||||
|
<div class="header-slogan">探索音乐的无限可能</div>
|
||||||
|
</div>
|
||||||
|
<div class="header-right">
|
||||||
|
<i class="fas fa-music"></i>
|
||||||
|
<i class="fas fa-headphones"></i>
|
||||||
|
<i class="fas fa-volume-up"></i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
<div class="fullscreen-iframe-container">
|
||||||
|
<div id="loading-overlay">
|
||||||
|
<div class="spinner"></div>
|
||||||
|
<div class="loading-text">加载中...</div>
|
||||||
|
</div>
|
||||||
|
<iframe id="haimian-iframe" src="https://www.haimian.com/" frameborder="0" allowfullscreen></iframe>
|
||||||
|
</div>
|
||||||
|
<div class="logo-mask"></div>
|
||||||
|
<script>
|
||||||
|
document.addEventListener("DOMContentLoaded", function () {
|
||||||
|
// 获取元素
|
||||||
|
const iframe = document.getElementById("haimian-iframe");
|
||||||
|
const logoMask = document.querySelector(".logo-mask");
|
||||||
|
const headerIcons = document.querySelectorAll(".header-right i");
|
||||||
|
|
||||||
|
// 为音乐图标添加动画效果
|
||||||
|
headerIcons.forEach((icon, index) => {
|
||||||
|
icon.addEventListener("click", function () {
|
||||||
|
this.classList.add("fa-spin");
|
||||||
|
setTimeout(() => {
|
||||||
|
this.classList.remove("fa-spin");
|
||||||
|
}, 1000);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
// 获取loading元素
|
||||||
|
const loadingOverlay = document.getElementById("loading-overlay");
|
||||||
|
|
||||||
|
// 等待iframe加载完成
|
||||||
|
iframe.addEventListener("load", function () {
|
||||||
|
console.log("iframe加载完成");
|
||||||
|
|
||||||
|
// 隐藏loading效果
|
||||||
|
loadingOverlay.style.opacity = "0";
|
||||||
|
setTimeout(() => {
|
||||||
|
loadingOverlay.style.display = "none";
|
||||||
|
}, 500);
|
||||||
|
|
||||||
|
// 由于跨域限制,无法直接操作iframe内容
|
||||||
|
// 使用蒙版覆盖原网站LOGO
|
||||||
|
|
||||||
|
// 调整蒙版位置,确保覆盖原网站LOGO
|
||||||
|
// 注意:由于跨域限制,可能需要手动调整这些值以适应不同屏幕尺寸
|
||||||
|
logoMask.style.top = "110px";
|
||||||
|
logoMask.style.left = "10px";
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
11
index.html
11
index.html
@@ -69,7 +69,7 @@
|
|||||||
<img class="bj bj3" src="./static/img/album-bj3.svg" />
|
<img class="bj bj3" src="./static/img/album-bj3.svg" />
|
||||||
<img class="bj bj4" src="./static/img/album-bj4.png" />
|
<img class="bj bj4" src="./static/img/album-bj4.png" />
|
||||||
<img class="bj bj5" src="./static/img/album-bj5.svg" />
|
<img class="bj bj5" src="./static/img/album-bj5.svg" />
|
||||||
<img v-if="!audioHeadState" class="play" @click="manageAudio('./mp3/1.MP3','head')" src="./static/img/play-white-icon.svg" />
|
<img v-if="!audioHeadState" class="play" @click="manageAudio('./static/mp3/1.MP3','head')" src="./static/img/play-white-icon.svg" />
|
||||||
<img v-else class="play" @click="closeAll()" src="./static/img/pause-white-icon.svg" />
|
<img v-else class="play" @click="closeAll()" src="./static/img/pause-white-icon.svg" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -176,7 +176,7 @@
|
|||||||
<div class="student-box flexflex">
|
<div class="student-box flexflex">
|
||||||
<img class="title" src="./static/img/student-title.png" alt="" />
|
<img class="title" src="./static/img/student-title.png" alt="" />
|
||||||
<div class="list flexacenter">
|
<div class="list flexacenter">
|
||||||
<img class="img" :class="[`img${ item.serial }`]" v-for="(item,index) in studentList" :src="item.img" :key="item.serial" @click="cutStudent(index)" />
|
<img class="img" :class="[`img${ item.order }`]" v-for="(item, index) in studentList" :src="item.img" :key="index" @click="cutStudent(item.order)" />
|
||||||
</div>
|
</div>
|
||||||
<div class="name">《听风少年的梦幻之城》</div>
|
<div class="name">《听风少年的梦幻之城》</div>
|
||||||
<div class="info flexacenter">
|
<div class="info flexacenter">
|
||||||
@@ -187,13 +187,8 @@
|
|||||||
<div class="progress-bar flexacenter">
|
<div class="progress-bar flexacenter">
|
||||||
<div class="bar white" :style="{ width: progress + '%' }"></div>
|
<div class="bar white" :style="{ width: progress + '%' }"></div>
|
||||||
<div class="circle"></div>
|
<div class="circle"></div>
|
||||||
<div class="bar black" :style="{ width: (100 - progress) + '%' }"></div>
|
<div class="bar black flex1"></div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="time-display">
|
|
||||||
<span>{{ formatTime(currentTime) }}</span>
|
|
||||||
<span>/</span>
|
|
||||||
<span>{{ formatTime(duration) }}</span>
|
|
||||||
</div> -->
|
|
||||||
|
|
||||||
<div class="operate flexcenter">
|
<div class="operate flexcenter">
|
||||||
<img class="cut left" src="./static/img/cut-left.svg" />
|
<img class="cut left" src="./static/img/cut-left.svg" />
|
||||||
|
|||||||
@@ -748,12 +748,31 @@
|
|||||||
height: 4px;
|
height: 4px;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
|
position: relative;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.content .student .student-box .progress-bar .circle {
|
.content .student .student-box .progress-bar .bar.white {
|
||||||
|
width: 0;
|
||||||
|
border-radius: 10px 0 0 10px;
|
||||||
|
background-color: #5241b0;
|
||||||
|
}
|
||||||
|
.content .student .student-box .progress-bar .bar.white::before {
|
||||||
|
content: "";
|
||||||
width: 10px;
|
width: 10px;
|
||||||
height: 10px;
|
height: 10px;
|
||||||
background-color: #f3974b;
|
background-color: #f3974b;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
right: -5px;
|
||||||
|
cursor: pointer;
|
||||||
|
z-index: 1;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.content .student .student-box .progress-bar .bar.black {
|
||||||
|
background-color: #000000;
|
||||||
|
border-radius: 0 10px 10px 0;
|
||||||
}
|
}
|
||||||
.content .student .student-box .operate .cut {
|
.content .student .student-box .operate .cut {
|
||||||
width: 14px;
|
width: 14px;
|
||||||
|
|||||||
@@ -859,17 +859,37 @@
|
|||||||
margin-bottom: 32px;
|
margin-bottom: 32px;
|
||||||
|
|
||||||
.bar {
|
.bar {
|
||||||
// width: 500px;
|
|
||||||
height: 4px;
|
height: 4px;
|
||||||
background-color: rgba(255, 255, 255, 1);
|
background-color: rgba(255, 255, 255, 1);
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
}
|
position: relative;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
.circle {
|
&.white {
|
||||||
width: 10px;
|
width: 0;
|
||||||
height: 10px;
|
border-radius: 10px 0 0 10px;
|
||||||
background-color: #f3974b;
|
background-color: #5241b0;
|
||||||
border-radius: 50%;
|
|
||||||
|
&::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: rgba(0, 0, 0, 1);
|
||||||
|
border-radius: 0 10px 10px 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -149,29 +149,19 @@ const search = createApp({
|
|||||||
console.log(observer.value);
|
console.log(observer.value);
|
||||||
};
|
};
|
||||||
|
|
||||||
// 添加元素到监听列表
|
|
||||||
const addElement = (elRef) => {
|
|
||||||
if (elRef.value) {
|
|
||||||
// 存储元素ref和其可见状态
|
|
||||||
elements.value.push({
|
|
||||||
ref: elRef.value,
|
|
||||||
isVisible: false,
|
|
||||||
});
|
|
||||||
// 开始监听
|
|
||||||
observer.value?.observe(elRef.value);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
setTimeout(() => {
|
setTimeout(() => initObserver(), 1000);
|
||||||
initObserver();
|
|
||||||
}, 1000);
|
|
||||||
|
|
||||||
// 添加进度更新事件监听器
|
// 添加进度更新事件监听器
|
||||||
if (audioPlayer.value) {
|
if (audioPlayer.value) {
|
||||||
audioPlayer.value.addEventListener("timeupdate", getProgress);
|
audioPlayer.value.addEventListener("timeupdate", getProgress);
|
||||||
audioPlayer.value.addEventListener("loadedmetadata", getProgress);
|
audioPlayer.value.addEventListener("loadedmetadata", getProgress);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
studentList.value.forEach((item, index) => {
|
||||||
|
item["order"] = index;
|
||||||
|
// item["random"] = generateRandomString();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// 组件卸载时清理事件监听器
|
// 组件卸载时清理事件监听器
|
||||||
@@ -339,45 +329,58 @@ const search = createApp({
|
|||||||
|
|
||||||
let studentList = ref([
|
let studentList = ref([
|
||||||
{
|
{
|
||||||
img: "./static/img/student-img.png",
|
|
||||||
src: "https://app.gter.net/image/miniApp/mp3/1.mp3",
|
src: "https://app.gter.net/image/miniApp/mp3/1.mp3",
|
||||||
serial: 0,
|
img: "./static/img/student-img.png",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: "https://app.gter.net/image/miniApp/mp3/2.mp3",
|
src: "https://app.gter.net/image/miniApp/mp3/2.mp3",
|
||||||
img: "./static/img/student-img-2.png",
|
img: "./static/img/student-img-2.png",
|
||||||
serial: 1,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: "https://app.gter.net/image/miniApp/mp3/3.mp3",
|
src: "https://app.gter.net/image/miniApp/mp3/3.mp3",
|
||||||
img: "./static/img/student-img-3.png",
|
img: "./static/img/student-img-3.png",
|
||||||
serial: 2,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: "https://app.gter.net/image/miniApp/mp3/4.mp3",
|
src: "https://app.gter.net/image/miniApp/mp3/4.mp3",
|
||||||
img: "./static/img/student-img-4.png",
|
img: "./static/img/student-img-4.png",
|
||||||
serial: 3,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: "https://app.gter.net/image/miniApp/mp3/4.mp3",
|
src: "https://app.gter.net/image/miniApp/mp3/4.mp3",
|
||||||
img: "./static/img/student-img-5.png",
|
img: "./static/img/student-img-5.png",
|
||||||
serial: 4,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: "https://app.gter.net/image/miniApp/mp3/4.mp3",
|
src: "https://app.gter.net/image/miniApp/mp3/4.mp3",
|
||||||
img: "./static/img/student-img-6.png",
|
img: "./static/img/student-img-6.png",
|
||||||
serial: 5,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: "https://app.gter.net/image/miniApp/mp3/4.mp3",
|
src: "https://app.gter.net/image/miniApp/mp3/4.mp3",
|
||||||
img: "./static/img/student-img-7.png",
|
img: "./static/img/student-img-7.png",
|
||||||
serial: 6,
|
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const cutStudent = (serial) => {
|
const cutStudent = (order) => {
|
||||||
let index = studentList.value.findIndex((item) => item.serial == serial);
|
// 找到目标元素和第一个元素
|
||||||
console.log("index", index);
|
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];
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const generateRandomString = () => {
|
||||||
|
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
||||||
|
let result = "";
|
||||||
|
const length = 6;
|
||||||
|
|
||||||
|
for (let i = 0; i < length; i++) {
|
||||||
|
const randomIndex = Math.floor(Math.random() * chars.length);
|
||||||
|
result += chars.charAt(randomIndex);
|
||||||
|
}
|
||||||
|
|
||||||
|
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 };
|
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 };
|
||||||
|
|||||||
Reference in New Issue
Block a user