From 0b033d0e6de14cd9bb05c1c3d8dd917ee6ef6343 Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Tue, 2 Jun 2026 12:30:29 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=B8=B8=E6=88=8F=E7=8E=8B):=20=E5=8F=96?= =?UTF-8?q?=E6=B6=88=E5=B1=95=E7=A4=BA=E5=9B=BE=E7=9A=84=E5=8C=BA=E5=9F=9F?= =?UTF-8?q?=E5=8C=BA=E5=88=86=EF=BC=8C=E9=98=BF=E8=AF=AD=E5=92=8C=E9=9D=9E?= =?UTF-8?q?=E9=98=BF=E8=AF=AD=E5=8C=BA=E9=83=BD=E5=B1=95=E7=A4=BA=E5=90=8C?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E5=A5=96=E5=8A=B1=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Ranking/GamesKing/index.vue | 32 ++------------------------- 1 file changed, 2 insertions(+), 30 deletions(-) diff --git a/src/views/Ranking/GamesKing/index.vue b/src/views/Ranking/GamesKing/index.vue index 5423d53..ffd87bf 100644 --- a/src/views/Ranking/GamesKing/index.vue +++ b/src/views/Ranking/GamesKing/index.vue @@ -981,7 +981,6 @@ import { computed, onMounted, onUnmounted, ref } from 'vue' import { closePage, viewUserInfo } from '@/utils/appBridge.js' import { connectToApp } from '@/utils/appConnector.js' import { useLangStore } from '@/stores/lang' -import { getUserId } from '@/utils/userStore.js' import { getPngUrl, getWebpUrl } from '@/config/imagePaths.js' import { preloadImages, preloadImagesIdle } from '@/utils/image/imagePreloader.js' import { handleAvatarImageError, handleRewardImageError } from '@/utils/image/imageHandler.js' @@ -994,7 +993,6 @@ import { getRankingListAndMyRanking, // 获取排行榜和我的排名 getHistoryTopOne, // 获取历史榜首 } from '@/api/activity.js' -import { getRegionByUserId } from '@/api/wallet.js' import BackgroundLayer from '@/components/BackgroundLayer.vue' import itemCenter from '@/components/itemCenter.vue' @@ -1024,18 +1022,11 @@ const getImgName = (filename) => { return currentLangType.value === 'ar' ? `${filename}_ar` : filename } -const userRegion = ref(null) -const isNotArabicUserRegion = computed(() => { - return Boolean(userRegion.value?.regionCode && userRegion.value.regionCode !== 'AR') -}) -const getRegionImgName = (defaultFilename, notArabicFilename) => { - return getImgName(isNotArabicUserRegion.value ? notArabicFilename : defaultFilename) -} const dailyPopUpImageName = computed(() => { - return getRegionImgName('dailyPopUp_20260520', 'dailyPopUp_NOT_AR_20260529') + return getImgName('dailyPopUp_20260602') }) const specialRewardsImageName = computed(() => { - return getRegionImgName('specialRewards_20260520', 'specialRewards_NOT_AR_20260529') + return getImgName('specialRewards_20260602') }) const { @@ -1111,24 +1102,6 @@ const checkShow = () => { // 倒计时 const Days = ref(0) -// 获取用户所在的区域信息 -const apiGetRegionByUserId = async () => { - try { - const userId = getUserId() - if (!userId) { - console.warn('用户ID为空,跳过用户区域获取') - return - } - - const response = await getRegionByUserId(userId) - if (response.status) { - userRegion.value = response.body - } - } catch (error) { - console.error('获取用户区域失败:', error) - } -} - const Hours = ref(0) const Minutes = ref(0) const Second = ref(0) @@ -1430,7 +1403,6 @@ const preloadOtherImages = async () => { // 使用工具函数连接APP const connectToAppHandler = async () => { await connectToApp(async () => { - await apiGetRegionByUserId() await completePreloading() preloadOtherImages() checkShow()