chore(cp排行榜): 调整样式,补充翻译
This commit is contained in:
parent
3d0471d45c
commit
b217655395
@ -463,5 +463,6 @@
|
|||||||
"consecutive_check_in_reward": "مكافأة تسجيل الدخول المتتالية",
|
"consecutive_check_in_reward": "مكافأة تسجيل الدخول المتتالية",
|
||||||
"check_in_successful": "تم تسجيل الدخول بنجاح.",
|
"check_in_successful": "تم تسجيل الدخول بنجاح.",
|
||||||
"you_get": "لقد حصلت على",
|
"you_get": "لقد حصلت على",
|
||||||
"not_enough_pieces": "ليس لديك قطع كافية"
|
"not_enough_pieces": "ليس لديك قطع كافية",
|
||||||
|
"confirm_item_exchange": "هل أنت متأكد أنك تريد تبديل العنصر الحالي؟"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -463,5 +463,6 @@
|
|||||||
"consecutive_check_in_reward": "Consecutive Check-in Reward",
|
"consecutive_check_in_reward": "Consecutive Check-in Reward",
|
||||||
"check_in_successful": "Check-in successful.",
|
"check_in_successful": "Check-in successful.",
|
||||||
"you_get": "You Get",
|
"you_get": "You Get",
|
||||||
"not_enough_pieces": "You don't have enough pieces"
|
"not_enough_pieces": "You don't have enough pieces",
|
||||||
|
"confirm_item_exchange": "Are you sure you want to exchange the current item?"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -463,5 +463,6 @@
|
|||||||
"consecutive_check_in_reward": "连续签到奖励",
|
"consecutive_check_in_reward": "连续签到奖励",
|
||||||
"check_in_successful": "签到成功。",
|
"check_in_successful": "签到成功。",
|
||||||
"you_get": "您获得了",
|
"you_get": "您获得了",
|
||||||
"not_enough_pieces": "您没有足够的碎片"
|
"not_enough_pieces": "您没有足够的碎片",
|
||||||
|
"confirm_item_exchange": "您确定要兑换当前物品吗?"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<!-- 规则&倒计时 -->
|
<!-- 规则&倒计时 -->
|
||||||
<itemCenter :imgUrl="imageUrl('checkInRule')" :contentStyle="`inset: 8vw 28vw 105vw;`">
|
<itemCenter
|
||||||
|
:imgUrl="imageUrl(getImgName('checkInRule'))"
|
||||||
|
:contentStyle="`inset: 8vw 28vw 105vw;`"
|
||||||
|
>
|
||||||
<div class="timeBox">
|
<div class="timeBox">
|
||||||
<div class="timeText" style="">{{ Days }}D</div>
|
<div class="timeText" style="">{{ Days }}D</div>
|
||||||
<div class="timeText timeGap"></div>
|
<div class="timeText timeGap"></div>
|
||||||
|
|||||||
@ -76,16 +76,29 @@
|
|||||||
|
|
||||||
<!-- 排行榜 -->
|
<!-- 排行榜 -->
|
||||||
<div style="position: relative; display: flex; flex-direction: column; gap: 2vw">
|
<div style="position: relative; display: flex; flex-direction: column; gap: 2vw">
|
||||||
<!-- 取消按钮 -->
|
<!-- 帮助按钮 -->
|
||||||
<img v-smart-img :src="imageUrl('helpBt')" alt="" class="helpBt" @click="helpShow = true" />
|
<img v-smart-img :src="imageUrl('helpBt')" alt="" class="helpBt" @click="helpShow = true" />
|
||||||
|
|
||||||
|
<!-- 第一名排名图片 -->
|
||||||
|
<itemCenter
|
||||||
|
style="width: 9vw"
|
||||||
|
class="rankingBg"
|
||||||
|
:imgUrl="imageUrl(`top1RankingBg`)"
|
||||||
|
:flip="true"
|
||||||
|
:contentStyle="``"
|
||||||
|
>
|
||||||
|
<img :src="imageUrl('num1')" alt="" style="width: 3vw; display: block" />
|
||||||
|
</itemCenter>
|
||||||
|
|
||||||
<!-- 前三名 -->
|
<!-- 前三名 -->
|
||||||
<TopUser
|
<div style="margin-top: 2vw; display: flex; flex-direction: column; gap: 2vw">
|
||||||
v-for="(value, index) in 3"
|
<TopUser
|
||||||
:ranking="index + 1 + ''"
|
v-for="(value, index) in 3"
|
||||||
:rankingItem="RankingHasTop3[index] || {}"
|
:ranking="index + 1 + ''"
|
||||||
:rewards="rewardsTop3[index] || {}"
|
:rankingItem="RankingHasTop3[index] || {}"
|
||||||
/>
|
:rewards="rewardsTop3[index] || {}"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- 从第4名开始 -->
|
<!-- 从第4名开始 -->
|
||||||
<itemCenter
|
<itemCenter
|
||||||
@ -95,14 +108,21 @@
|
|||||||
:contentStyle="`padding: 0 5%;justify-content: flex-start;`"
|
:contentStyle="`padding: 0 5%;justify-content: flex-start;`"
|
||||||
>
|
>
|
||||||
<!-- 排名 -->
|
<!-- 排名 -->
|
||||||
<div style="width: 10vw; display: flex; justify-content: center; align-items: center">
|
<itemCenter
|
||||||
<img
|
style="width: 9vw"
|
||||||
v-smart-img
|
:imgUrl="imageUrl(`top1RankingBg`)"
|
||||||
v-for="(digit, index) in getRankDigits(item.rank)"
|
:flip="true"
|
||||||
:src="getDigitImageUrl(digit)"
|
:contentStyle="``"
|
||||||
style="display: block; width: 3vw; object-fit: cover"
|
>
|
||||||
/>
|
<div class="rankingText">
|
||||||
</div>
|
<img
|
||||||
|
v-smart-img
|
||||||
|
v-for="(digit, index) in getRankDigits(item.rank)"
|
||||||
|
:src="getDigitImageUrl(digit)"
|
||||||
|
style="display: block; width: 3vw; object-fit: cover"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</itemCenter>
|
||||||
|
|
||||||
<!-- 头像 -->
|
<!-- 头像 -->
|
||||||
<div style="width: 36vw">
|
<div style="width: 36vw">
|
||||||
@ -665,4 +685,29 @@ onUnmounted(() => {
|
|||||||
right: unset;
|
right: unset;
|
||||||
left: 3vw;
|
left: 3vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.rankingBg {
|
||||||
|
position: absolute;
|
||||||
|
z-index: 3;
|
||||||
|
top: 6vw;
|
||||||
|
left: 3vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rankingText {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
[dir='rtl'] .rankingText {
|
||||||
|
flex-direction: row-reverse;
|
||||||
|
}
|
||||||
|
|
||||||
|
[dir='rtl'] .rankingBg {
|
||||||
|
left: unset;
|
||||||
|
right: 3vw;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
style="
|
style="
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
top: 17vw;
|
top: 12vw;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 25vw;
|
height: 25vw;
|
||||||
@ -63,7 +63,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 顶部距离 -->
|
<!-- 顶部距离 -->
|
||||||
<div style="height: 27vw"></div>
|
<div style="height: 22vw"></div>
|
||||||
<!-- 贡献值 -->
|
<!-- 贡献值 -->
|
||||||
<div style="height: 17vw; display: flex; justify-content: center; align-items: center">
|
<div style="height: 17vw; display: flex; justify-content: center; align-items: center">
|
||||||
<div style="color: #fff; font-weight: 700">
|
<div style="color: #fff; font-weight: 700">
|
||||||
@ -141,7 +141,15 @@
|
|||||||
<!-- 第二三名 -->
|
<!-- 第二三名 -->
|
||||||
<div v-else style="height: 65%; padding: 0 7%; display: flex; align-items: center">
|
<div v-else style="height: 65%; padding: 0 7%; display: flex; align-items: center">
|
||||||
<!-- 排名 -->
|
<!-- 排名 -->
|
||||||
<img :src="imageUrl(`top${ranking}Ranking`)" alt="" style="width: 8vw" />
|
<itemCenter
|
||||||
|
style="width: 9vw"
|
||||||
|
class="rankingBg"
|
||||||
|
:imgUrl="imageUrl(`top${ranking}RankingBg`)"
|
||||||
|
:flip="true"
|
||||||
|
:contentStyle="``"
|
||||||
|
>
|
||||||
|
<img :src="imageUrl(`num${ranking}`)" alt="" style="width: 3vw; display: block" />
|
||||||
|
</itemCenter>
|
||||||
|
|
||||||
<!-- 头像 -->
|
<!-- 头像 -->
|
||||||
<div style="width: 36vw; position: relative">
|
<div style="width: 36vw; position: relative">
|
||||||
|
|||||||
@ -177,6 +177,7 @@
|
|||||||
<!-- 有伴侣和排名 -->
|
<!-- 有伴侣和排名 -->
|
||||||
<itemCenter
|
<itemCenter
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
|
:flip="true"
|
||||||
v-if="myRanking?.cpUserId"
|
v-if="myRanking?.cpUserId"
|
||||||
:imgUrl="imageUrl('myRankingBg')"
|
:imgUrl="imageUrl('myRankingBg')"
|
||||||
:contentStyle="`padding: 0 5%;justify-content: flex-start;`"
|
:contentStyle="`padding: 0 5%;justify-content: flex-start;`"
|
||||||
@ -1092,7 +1093,7 @@
|
|||||||
|
|
||||||
<!-- 内容 -->
|
<!-- 内容 -->
|
||||||
<div style="color: rgba(0, 0, 0, 0.4); font-size: 0.8em; font-weight: 500">
|
<div style="color: rgba(0, 0, 0, 0.4); font-size: 0.8em; font-weight: 500">
|
||||||
Are you sure you want to exchange the current item?
|
{{ t('confirm_item_exchange') }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 按钮 -->
|
<!-- 按钮 -->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user