This commit is contained in:
yixu
2025-09-14 19:15:51 +08:00
parent e26aae5805
commit ac5d579a8c
3 changed files with 25 additions and 23 deletions

View File

@@ -9,7 +9,6 @@ import Haibao from "@/libs/haibao";
import mask from "../assets/images/haibao-mask.png";
import haibaoCoverBorder from "../assets/images/haibao-cover.png";
import bg from "../assets/images/haibao-bg.png"
import userPicture from "../assets/images/home-bg.png"; //TODO: globalStore.result_url 这里得图片后面要换成用户参榜的图片
defineProps({
show: true
@@ -101,14 +100,14 @@ const handleHaibao = async () => {
})
})
}
let userPictureVal = userPicture;
const getBackgroundImage = () => {
if (globalStore.result_url) {
return userPictureVal = globalStore.result_url;
} else {
return userPictureVal;
}
};
// let userPictureVal = userPicture;
// const getBackgroundImage = () => {
// if (globalStore.result_url) {
// return userPictureVal = globalStore.result_url;
// } else {
// return userPictureVal;
// }
// };
</script>
<template>
@@ -173,7 +172,7 @@ const getBackgroundImage = () => {
.fullsection {
position: fixed;
top: 0;
top: 25vw;
left: 0;
width: 100%;
height: 100%;
@@ -185,6 +184,7 @@ const getBackgroundImage = () => {
.haibao {
position: relative;
top: -25vw;
width: 70vw;
height: 119.444444vw;
background-image: url("../assets/images/haibao-cover.webp");