From c9eaeedc0d78727d974fe4e5f63b3cfec4375d5d Mon Sep 17 00:00:00 2001 From: kron Date: Thu, 4 Sep 2025 13:54:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/about-us.vue | 10 ++-- src/pages/be-vip.vue | 1 + src/pages/device-intro.vue | 104 ++++++++++++++++++++++++++++--------- src/pages/index.vue | 3 +- src/pages/ranking.vue | 3 +- 5 files changed, 89 insertions(+), 32 deletions(-) diff --git a/src/pages/about-us.vue b/src/pages/about-us.vue index ca23cf9..a5928e5 100644 --- a/src/pages/about-us.vue +++ b/src/pages/about-us.vue @@ -9,11 +9,11 @@ const { user } = storeToRefs(store); const isIos = ref(false); const openLink = () => { - uni.navigateTo({ - url: - "/pages/webview?url=" + - encodeURIComponent("https://www.beian.miit.gov.cn/"), - }); + // uni.navigateTo({ + // url: + // "/pages/webview?url=" + + // encodeURIComponent("https://beian.miit.gov.cn/"), + // }); }; onMounted(() => { const deviceInfo = uni.getDeviceInfo(); diff --git a/src/pages/be-vip.vue b/src/pages/be-vip.vue index d987c06..b4b3412 100644 --- a/src/pages/be-vip.vue +++ b/src/pages/be-vip.vue @@ -234,6 +234,7 @@ onBeforeUnmount(() => { padding: 12px 0; border-radius: 10px; text-align: center; + font-size: 27rpx; } .vip-content { max-height: 62%; diff --git a/src/pages/device-intro.vue b/src/pages/device-intro.vue index 85e9c27..a0bfcf7 100644 --- a/src/pages/device-intro.vue +++ b/src/pages/device-intro.vue @@ -1,46 +1,100 @@ diff --git a/src/pages/index.vue b/src/pages/index.vue index 12214c7..d60cc58 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -59,6 +59,7 @@ const toRankListPage = () => { onShow(async () => { const rankList = await getRankListAPI(); + console.log("排行数据", rankList); updateRank(rankList); const token = uni.getStorageSync("token"); if (token) { @@ -173,7 +174,7 @@ const comingSoon = () => { - + {{ rankData.rank.length }} diff --git a/src/pages/ranking.vue b/src/pages/ranking.vue index 8492231..fc74f90 100644 --- a/src/pages/ranking.vue +++ b/src/pages/ranking.vue @@ -191,7 +191,7 @@ onShow(async () => { - 积分:{{ rankData.user.scores }} + 积分:{{ Math.max(0, rankData.user.scores) }} @@ -511,6 +511,7 @@ onShow(async () => { padding: 7px 10px; text-align: center; border-radius: 20px; + font-size: 30rpx; } .rank-item { width: calc(100% - 30px);