From 1f9ff39a9da38fddbce0aafd875d06df62c3e1c0 Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Mon, 22 Sep 2025 14:50:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E7=89=87=E5=B1=95=E7=A4=BA):=20?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=9B=BE=E7=89=87=E5=BC=95=E5=85=A5=E6=96=B9?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/WeeklyStar/WeeklyStar.vue | 160 ++++++++-------------------- 1 file changed, 46 insertions(+), 114 deletions(-) diff --git a/src/views/WeeklyStar/WeeklyStar.vue b/src/views/WeeklyStar/WeeklyStar.vue index 6c650e1..eeb4abb 100644 --- a/src/views/WeeklyStar/WeeklyStar.vue +++ b/src/views/WeeklyStar/WeeklyStar.vue @@ -5,7 +5,7 @@ - +
- +
{{ Days }}D
- +
{{ Hours }}
:
- +
{{ Minutes }}
:
- +
{{ Second }}
@@ -66,35 +61,17 @@
- +
Ranking
- +
Rewards
- +
Exchange
@@ -109,14 +86,9 @@ >
+ -
- +
- +
- +
- +
- +
@@ -405,11 +360,7 @@ align-items: center; " > - +
- +
- +
- +
- +
@@ -618,11 +556,7 @@
- +
- +
- +
- +
{ + const fileName = Path2D.split('/').pop().split('.')[0] + return [fileName, module.default] + }) +) const isInAppEnvironment = ref(false) // 检测是否在APP环境中 const helpInfoShow = ref(false) //帮助模块 @@ -876,7 +807,7 @@ const gifts = ref([]) // 本周礼物 const historyRankingTop1 = ref([]) // 历史榜首 const historyIndex = ref(0) const showTopOne = computed(() => { - return historyRankingTop1.value[historyIndex.value] + return historyRankingTop1.value[historyIndex.value] || {} }) const exchangeGoodsList = ref([]) @@ -919,9 +850,10 @@ const handleImageError = (e, type) => { } } +// 头像资源出错处理 const defaultAvatarUrl = (e) => { console.log('头像资源出错') - e.target.src = '/src/assets/images/WeeklyStar/defaultAvatar.png' + e.target.src = images.defaultAvatar } // 选中要兑换的商品 @@ -1162,7 +1094,7 @@ onUnmounted(() => { width: 100vw; min-height: 100vh; background-color: #311300; - background-image: url(../../assets/images/WeeklyStar/bg.png); + background-image: url('@/assets/images/WeeklyStar/bg.png'); background-size: 100% auto; background-repeat: no-repeat; position: relative;