From 8c45e7f4eb3d48e556dbe58050e40c3f56f05039 Mon Sep 17 00:00:00 2001 From: kron Date: Thu, 25 Sep 2025 14:22:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Header.vue | 19 +++++++- src/components/RingBarChart.vue | 24 ++++++--- src/pages/point-book.vue | 84 +++++++++++++++++--------------- src/static/hot1.png | Bin 0 -> 1581 bytes src/static/hot2.png | Bin 0 -> 1558 bytes src/static/hot3.png | Bin 0 -> 1550 bytes src/static/hot4.png | Bin 0 -> 1506 bytes src/static/reward-us.png | Bin 0 -> 5625 bytes 8 files changed, 79 insertions(+), 48 deletions(-) create mode 100644 src/static/hot1.png create mode 100644 src/static/hot2.png create mode 100644 src/static/hot3.png create mode 100644 src/static/hot4.png create mode 100644 src/static/reward-us.png diff --git a/src/components/Header.vue b/src/components/Header.vue index 470b173..4f941bd 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -59,10 +59,15 @@ const loading = ref(false); const showLoader = ref(false); const pointBook = ref(null); const showProgress = ref(false); +const heat = ref(0); const updateLoading = (value) => { loading.value = value; }; +const updateHot = (value) => { + heat.value = value; +}; + onMounted(() => { const pages = getCurrentPages(); const currentPage = pages[pages.length - 1]; @@ -75,13 +80,15 @@ onMounted(() => { ) { showLoader.value = true; } - uni.$on("update-header-loading", updateLoading); if (currentPage.route === "pages/team-battle") { showProgress.value = true; } + uni.$on("update-header-loading", updateLoading); + uni.$on("update-hot", updateHot); }); onBeforeUnmount(() => { uni.$off("update-header-loading", updateLoading); + uni.$off("update-hot", updateHot); }); @@ -110,6 +117,11 @@ onBeforeUnmount(() => { borderColor="#333" /> {{ user.nickName }} + @@ -248,12 +260,15 @@ onBeforeUnmount(() => { align-items: center; justify-content: flex-start; } -.user-header > image { +.user-header > image:first-child { width: 40px; height: 40px; border-radius: 50%; border: 2rpx solid #333; } +.user-header > image:last-child { + width: 36rpx; +} .user-header > text:nth-child(2) { font-weight: 500; font-size: 30rpx; diff --git a/src/components/RingBarChart.vue b/src/components/RingBarChart.vue index ab09b71..deb9bf3 100644 --- a/src/components/RingBarChart.vue +++ b/src/components/RingBarChart.vue @@ -42,14 +42,15 @@ const ringText = (ring) => {