no message
This commit is contained in:
@@ -3,22 +3,22 @@ const search = createApp({
|
||||
setup() {
|
||||
const trait = [
|
||||
{
|
||||
icon: "./img/headset-icon.png",
|
||||
icon: "./static/img/headset-icon.png",
|
||||
title: "音乐创作",
|
||||
text: "朴见潮音,2024 年成立于广州,是专注 AI 音乐领域的创新工作室。短短一年便跻身于AI音乐浪潮先锋品牌!",
|
||||
},
|
||||
{
|
||||
icon: "./img/mv-icon.png",
|
||||
icon: "./static/img/mv-icon.png",
|
||||
title: "MV创作",
|
||||
text: "以 AI 技术为核心,整合音乐创作、MV 制作、教学培训、发行级重制等业务,为创作者和爱好者打造一站式平台。",
|
||||
},
|
||||
{
|
||||
icon: "./img/train-icon.png",
|
||||
icon: "./static/img/train-icon.png",
|
||||
title: "教学培训",
|
||||
text: "工作室运用多种 AI 工具,突破传统创作局限,支持流行、摇滚等多元风格创作,满足个性化需求。",
|
||||
},
|
||||
{
|
||||
icon: "./img/remake-icon.png",
|
||||
icon: "./static/img/remake-icon.png",
|
||||
title: "发行级重制",
|
||||
text: "构建全流程服务体系,从 AI 音乐创作、MV 视觉呈现,到零基础教学,再到发行级重制提升品质,实现作品价值最大化。",
|
||||
},
|
||||
@@ -90,25 +90,25 @@ const search = createApp({
|
||||
const element = document.querySelector(`.${state}`);
|
||||
|
||||
if (!element) return;
|
||||
element.scrollIntoView({
|
||||
element.scrollIntoView({
|
||||
behavior: "smooth",
|
||||
});
|
||||
};
|
||||
|
||||
// 向上滚动到上一页
|
||||
const scrollToPrevious = () => {
|
||||
const currentIndex = ['introduce', 'works', 'custom', 'student'].indexOf(pointerState.value);
|
||||
const currentIndex = ["introduce", "works", "custom", "student"].indexOf(pointerState.value);
|
||||
if (currentIndex > 0) {
|
||||
const prevState = ['introduce', 'works', 'custom', 'student'][currentIndex - 1];
|
||||
const prevState = ["introduce", "works", "custom", "student"][currentIndex - 1];
|
||||
changePointer(prevState);
|
||||
}
|
||||
};
|
||||
|
||||
// 向下滚动到下一页
|
||||
const scrollToNext = () => {
|
||||
const currentIndex = ['introduce', 'works', 'custom', 'student'].indexOf(pointerState.value);
|
||||
const currentIndex = ["introduce", "works", "custom", "student"].indexOf(pointerState.value);
|
||||
if (currentIndex < 3) {
|
||||
const nextState = ['introduce', 'works', 'custom', 'student'][currentIndex + 1];
|
||||
const nextState = ["introduce", "works", "custom", "student"][currentIndex + 1];
|
||||
changePointer(nextState);
|
||||
}
|
||||
};
|
||||
@@ -335,6 +335,51 @@ const search = createApp({
|
||||
},
|
||||
]);
|
||||
|
||||
return { 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 };
|
||||
let studentIndex = ref(0);
|
||||
|
||||
let studentList = ref([
|
||||
{
|
||||
img: "./static/img/student-img.png",
|
||||
src: "https://app.gter.net/image/miniApp/mp3/1.mp3",
|
||||
serial: 0,
|
||||
},
|
||||
{
|
||||
src: "https://app.gter.net/image/miniApp/mp3/2.mp3",
|
||||
img: "./static/img/student-img-2.png",
|
||||
serial: 1,
|
||||
},
|
||||
{
|
||||
src: "https://app.gter.net/image/miniApp/mp3/3.mp3",
|
||||
img: "./static/img/student-img-3.png",
|
||||
serial: 2,
|
||||
},
|
||||
{
|
||||
src: "https://app.gter.net/image/miniApp/mp3/4.mp3",
|
||||
img: "./static/img/student-img-4.png",
|
||||
serial: 3,
|
||||
},
|
||||
{
|
||||
src: "https://app.gter.net/image/miniApp/mp3/4.mp3",
|
||||
img: "./static/img/student-img-5.png",
|
||||
serial: 4,
|
||||
},
|
||||
{
|
||||
src: "https://app.gter.net/image/miniApp/mp3/4.mp3",
|
||||
img: "./static/img/student-img-6.png",
|
||||
serial: 5,
|
||||
},
|
||||
{
|
||||
src: "https://app.gter.net/image/miniApp/mp3/4.mp3",
|
||||
img: "./static/img/student-img-7.png",
|
||||
serial: 6,
|
||||
},
|
||||
]);
|
||||
|
||||
const cutStudent = (serial) => {
|
||||
let index = studentList.value.findIndex((item) => item.serial == serial);
|
||||
console.log("index", index);
|
||||
};
|
||||
|
||||
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 };
|
||||
},
|
||||
}).mount("#appIndex");
|
||||
|
||||
Reference in New Issue
Block a user