chore(总排行榜): 新增阿语翻译

This commit is contained in:
hzj 2025-12-10 16:30:16 +08:00
parent dad3accdcb
commit c095d7885a
6 changed files with 111 additions and 41 deletions

View File

@ -345,5 +345,13 @@
"working_days_desc": "أيام العمل (يتم احتساب ساعتين كيوم واحد):", "working_days_desc": "أيام العمل (يتم احتساب ساعتين كيوم واحد):",
"new_bd_leaders_bound": "قادة BD مربوطون جدد:", "new_bd_leaders_bound": "قادة BD مربوطون جدد:",
"new_bds_bound": "BD مربوطون جدد:", "new_bds_bound": "BD مربوطون جدد:",
"new_agencies_bound": "وكالات مربوطة جديدة:" "new_agencies_bound": "وكالات مربوطة جديدة:",
"ranking_wealth": "الثروة",
"ranking_charm": "السحر",
"ranking_room": "الغرفة",
"ranking_daily": "اليومي",
"ranking_weekly": "الأسبوعي",
"ranking_monthly": "الشهري",
"ranking_hourly": "بالساعة"
} }

View File

@ -345,5 +345,13 @@
"working_days_desc": "Working days (2 hours counted as one day):", "working_days_desc": "Working days (2 hours counted as one day):",
"new_bd_leaders_bound": "New BD Leaders bound:", "new_bd_leaders_bound": "New BD Leaders bound:",
"new_bds_bound": "New BDs bound:", "new_bds_bound": "New BDs bound:",
"new_agencies_bound": "New agencies bound:" "new_agencies_bound": "New agencies bound:",
"ranking_wealth": "Wealth",
"ranking_charm": "Charm",
"ranking_room": "Room",
"ranking_daily": "Daily",
"ranking_weekly": "Weekly",
"ranking_monthly": "Monthly",
"ranking_hourly": "Hourly"
} }

View File

@ -345,5 +345,13 @@
"working_days_desc": "工作天数每2小时计为1天", "working_days_desc": "工作天数每2小时计为1天",
"new_bd_leaders_bound": "新绑定BD主管", "new_bd_leaders_bound": "新绑定BD主管",
"new_bds_bound": "新绑定BD", "new_bds_bound": "新绑定BD",
"new_agencies_bound": "新绑定代理:" "new_agencies_bound": "新绑定代理:",
"ranking_wealth": "财富",
"ranking_charm": "魅力",
"ranking_room": "房间",
"ranking_daily": "日榜",
"ranking_weekly": "周榜",
"ranking_monthly": "月榜",
"ranking_hourly": "小时榜"
} }

View File

@ -38,7 +38,6 @@ const langStore = useLangStore() // 直接使用 import 的函数
const RankingPage = [ const RankingPage = [
'/top-list', //排行榜 '/top-list', //排行榜
'/weekly-star', //每周明星 '/weekly-star', //每周明星
'/ranking', //总排行榜
] ]
// 活动页面 // 活动页面

View File

@ -54,7 +54,7 @@
style="" style=""
:style="{ color: rankingType == 'Wealth' ? '#FFB760' : '#fff' }" :style="{ color: rankingType == 'Wealth' ? '#FFB760' : '#fff' }"
> >
Wealth {{ t('ranking_wealth') }}
</div> </div>
<div <div
class="tab" class="tab"
@ -62,7 +62,7 @@
style="" style=""
:style="{ color: rankingType == 'Charm' ? '#60FF83' : '#fff' }" :style="{ color: rankingType == 'Charm' ? '#60FF83' : '#fff' }"
> >
Charm {{ t('ranking_charm') }}
</div> </div>
<div <div
class="tab" class="tab"
@ -70,7 +70,7 @@
style="" style=""
:style="{ color: rankingType == 'Room' ? '#9B60FF' : '#fff' }" :style="{ color: rankingType == 'Room' ? '#9B60FF' : '#fff' }"
> >
Room {{ t('ranking_room') }}
</div> </div>
<!-- 推出键 --> <!-- 推出键 -->
@ -93,8 +93,8 @@
border-radius: 32px; border-radius: 32px;
backdrop-filter: blur(32px); backdrop-filter: blur(32px);
display: flex; display: grid;
justify-content: space-between; grid-template-columns: repeat(3, 1fr);
" "
:style="{ border, background }" :style="{ border, background }"
> >
@ -103,28 +103,36 @@
:class="{ tagActive: selectedTimeTab == 'Hourly' }" :class="{ tagActive: selectedTimeTab == 'Hourly' }"
@click="changeDateType('Hourly')" @click="changeDateType('Hourly')"
> >
Hourly {{ t('ranking_hourly') }}
</div> --> </div> -->
<div <div class="tabItem">
class="tag" <div
:class="{ tagActive: selectedTimeTab == 'Daily' }" class="tag"
@click="changeDateType('Daily')" :class="{ tagActive: selectedTimeTab == 'Daily' }"
> @click="changeDateType('Daily')"
Daily >
{{ t('ranking_daily') }}
</div>
</div> </div>
<div
class="tag" <div class="tabItem">
:class="{ tagActive: selectedTimeTab == 'Weekly' }" <div
@click="changeDateType('Weekly')" class="tag"
> :class="{ tagActive: selectedTimeTab == 'Weekly' }"
Weekly @click="changeDateType('Weekly')"
>
{{ t('ranking_weekly') }}
</div>
</div> </div>
<div
class="tag" <div class="tabItem">
:class="{ tagActive: selectedTimeTab == 'Monthly' }" <div
@click="changeDateType('Monthly')" class="tag"
> :class="{ tagActive: selectedTimeTab == 'Monthly' }"
Monthly @click="changeDateType('Monthly')"
>
{{ t('ranking_monthly') }}
</div>
</div> </div>
</div> </div>
</div> </div>
@ -170,14 +178,13 @@
</div> </div>
<!-- 第四名开始 --> <!-- 第四名开始 -->
<div style="margin: 3% 10px 0"> <div style="margin: 3% 10px 0; display: grid; gap: 2vw">
<div <div
v-for="(userInfo, index) in RankingFromTop4" v-for="(userInfo, index) in RankingFromTop4"
:key="userInfo.id" :key="userInfo.id"
style=" style="
border-radius: 12px; border-radius: 12px;
backdrop-filter: blur(32px); backdrop-filter: blur(32px);
margin: 5px 0;
padding: 3%; padding: 3%;
display: flex; display: flex;
@ -191,18 +198,31 @@
<!-- 基本信息 --> <!-- 基本信息 -->
<div <div
style=" style="
width: 75%; flex: 1;
min-width: 0; min-width: 0;
align-self: stretch;
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
gap: 4px; gap: 8px;
" "
> >
<!-- 排名 --> <!-- 排名 -->
<div style="width: 10%; display: flex; justify-content: center; align-items: center"> <div
style="
width: auto;
min-width: 0;
align-self: stretch;
display: flex;
justify-content: center;
align-items: center;
"
>
<div style="font-weight: 700">{{ index + 4 }}</div> <div style="font-weight: 700">{{ index + 4 }}</div>
</div> </div>
<!-- 头像 --> <!-- 头像 -->
<img <img
v-smart-img v-smart-img
@ -210,7 +230,7 @@
alt="" alt=""
style=" style="
display: block; display: block;
width: 15%; width: 3em;
aspect-ratio: 1/1; aspect-ratio: 1/1;
border-radius: 50%; border-radius: 50%;
object-fit: cover; object-fit: cover;
@ -218,10 +238,13 @@
:style="{ borderRadius: rankingType === 'Room' ? '10%' : '50%' }" :style="{ borderRadius: rankingType === 'Room' ? '10%' : '50%' }"
@error="handleAvatarImageError" @error="handleAvatarImageError"
/> />
<!-- 名称 -->
<div <div
style=" style="
flex: 1;
min-width: 0; min-width: 0;
width: calc(100% - 10% - 15% - 8px);
font-weight: 700; font-weight: 700;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
@ -233,12 +256,21 @@
</div> </div>
<!-- 贡献值 --> <!-- 贡献值 -->
<div style="flex: 1; min-width: 0; display: flex; align-items: center; width: 30%"> <div
style="
width: auto;
min-width: 0;
align-self: stretch;
display: flex;
align-items: center;
"
>
<img <img
v-smart-img v-smart-img
src="/src/assets/icon/coin.png" src="/src/assets/icon/coin.png"
alt="" alt=""
style="display: block; width: 25%; aspect-ratio: 1/1" style="display: block; width: 1.3em; aspect-ratio: 1/1"
/> />
<div style="font-weight: 500; color: rgba(248, 182, 45, 1)"> <div style="font-weight: 500; color: rgba(248, 182, 45, 1)">
{{ userInfo.quantityFormat }} {{ userInfo.quantityFormat }}
@ -333,6 +365,7 @@
<script setup> <script setup>
import { computed, onMounted, ref, watch, watchEffect } from 'vue' import { computed, onMounted, ref, watch, watchEffect } from 'vue'
import { useRoute } from 'vue-router' import { useRoute } from 'vue-router'
import { useI18n } from 'vue-i18n'
import { isInApp, closePage, viewUserInfo, gotoRoom } from '@/utils/appBridge.js' import { isInApp, closePage, viewUserInfo, gotoRoom } from '@/utils/appBridge.js'
import { connectToApp } from '@/utils/appConnector.js' import { connectToApp } from '@/utils/appConnector.js'
import { preloadImages } from '@/utils/imagePreloader' import { preloadImages } from '@/utils/imagePreloader'
@ -344,6 +377,7 @@ import { getWealthRanking, getCharmRanking, getRoomRanking, getMyRanking } from
import TopUser from './components/topUser.vue' import TopUser from './components/topUser.vue'
const route = useRoute() const route = useRoute()
const { t, locale } = useI18n()
// OSSURL // OSSURL
const imageUrl = (filename) => getPngUrl('Ranking/Overall/', filename) const imageUrl = (filename) => getPngUrl('Ranking/Overall/', filename)
@ -464,6 +498,7 @@ const RankingTop3 = computed(() => {
// //
const RankingFromTop4 = computed(() => { const RankingFromTop4 = computed(() => {
return showRanking.value.filter((_, index) => index >= 3) return showRanking.value.filter((_, index) => index >= 3)
// return []
}) })
// //
@ -621,9 +656,15 @@ onMounted(() => {
font-size: 1em; font-size: 1em;
} }
.tabItem {
display: flex;
justify-content: center;
align-items: center;
}
.tag { .tag {
font-weight: 510; font-weight: 510;
padding: 4px 4%; padding: 4px 10%;
} }
.tagActive { .tagActive {

View File

@ -68,14 +68,20 @@
<div style="width: 60%; position: relative"> <div style="width: 60%; position: relative">
<img v-smart-img :src="coinNumBgUrl" alt="" width="100%" style="display: block" /> <img v-smart-img :src="coinNumBgUrl" alt="" width="100%" style="display: block" />
<div <div
style="position: absolute; inset: 0; display: flex; align-items: center; padding: 3% 5%" style="
position: absolute;
inset: 0;
display: flex;
justify-content: center;
align-items: center;
padding: 3% 5%;
"
> >
<img <img
v-smart-img v-smart-img
src="/src/assets/icon/coin.png" src="/src/assets/icon/coin.png"
alt="" alt=""
width="25%" style="display: block; width: 1.3em"
style="display: block"
/> />
<div <div
style=" style="