chore(cp排行榜): 调整样式
This commit is contained in:
parent
306a23e50f
commit
704416cfa2
@ -49,7 +49,7 @@
|
|||||||
width="50%"
|
width="50%"
|
||||||
style="display: block"
|
style="display: block"
|
||||||
/>
|
/>
|
||||||
<div style="font-size: 0.8em; font-weight: 700; color: gray">
|
<div style="font-size: 0.8em; font-weight: 700; color: #ff3b76">
|
||||||
{{ prize.prizeName }}
|
{{ prize.prizeName }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
<div style="width: 100%; position: relative">
|
<div style="width: 100%; position: relative">
|
||||||
<itemCenter
|
<itemCenter
|
||||||
:imgUrl="imageUrl('rewardBg')"
|
:imgUrl="imageUrl('rewardBg')"
|
||||||
|
flip="true"
|
||||||
:contentStyle="`inset: 4vw 6vw 10vw;`"
|
:contentStyle="`inset: 4vw 6vw 10vw;`"
|
||||||
:class="{
|
:class="{
|
||||||
'grayscale-container':
|
'grayscale-container':
|
||||||
@ -15,6 +16,7 @@
|
|||||||
<itemCenter
|
<itemCenter
|
||||||
v-for="(goods, index) in dailyConfigs"
|
v-for="(goods, index) in dailyConfigs"
|
||||||
:imgUrl="imageUrl('rewardGoodsBg')"
|
:imgUrl="imageUrl('rewardGoodsBg')"
|
||||||
|
flip="true"
|
||||||
:contentStyle="`flex-direction: column;justify-content: space-between;align-items: center;`"
|
:contentStyle="`flex-direction: column;justify-content: space-between;align-items: center;`"
|
||||||
:style="getGridPosition(index)"
|
:style="getGridPosition(index)"
|
||||||
>
|
>
|
||||||
|
|||||||
@ -77,21 +77,7 @@
|
|||||||
<!-- 排行榜 -->
|
<!-- 排行榜 -->
|
||||||
<div style="position: relative; display: flex; flex-direction: column; gap: 2vw">
|
<div style="position: relative; display: flex; flex-direction: column; gap: 2vw">
|
||||||
<!-- 取消按钮 -->
|
<!-- 取消按钮 -->
|
||||||
<img
|
<img v-smart-img :src="imageUrl('helpBt')" alt="" class="helpBt" @click="helpShow = true" />
|
||||||
v-smart-img
|
|
||||||
:src="imageUrl('helpBt')"
|
|
||||||
alt=""
|
|
||||||
style="
|
|
||||||
display: block;
|
|
||||||
width: 8vw;
|
|
||||||
object-fit: cover;
|
|
||||||
position: absolute;
|
|
||||||
z-index: 3;
|
|
||||||
top: 0;
|
|
||||||
right: 3vw;
|
|
||||||
"
|
|
||||||
@click="helpShow = true"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<!-- 前三名 -->
|
<!-- 前三名 -->
|
||||||
<TopUser
|
<TopUser
|
||||||
@ -105,6 +91,7 @@
|
|||||||
<itemCenter
|
<itemCenter
|
||||||
v-for="item in showRanking"
|
v-for="item in showRanking"
|
||||||
:imgUrl="imageUrl(`rankingItemBg`)"
|
:imgUrl="imageUrl(`rankingItemBg`)"
|
||||||
|
flip="true"
|
||||||
:contentStyle="`padding: 0 5%;justify-content: flex-start;`"
|
:contentStyle="`padding: 0 5%;justify-content: flex-start;`"
|
||||||
>
|
>
|
||||||
<!-- 排名 -->
|
<!-- 排名 -->
|
||||||
@ -127,8 +114,27 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
|
position: relative;
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
|
<!-- 情侣标志 -->
|
||||||
|
<div
|
||||||
|
style="
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<img
|
||||||
|
:src="imageUrl(`rankingCoupleSign`)"
|
||||||
|
alt=""
|
||||||
|
style="width: 15vw; display: block; object-fit: cover"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- 情侣1头像 -->
|
<!-- 情侣1头像 -->
|
||||||
<img
|
<img
|
||||||
v-smart-img
|
v-smart-img
|
||||||
@ -644,4 +650,19 @@ onUnmounted(() => {
|
|||||||
[dir='rtl'] .timeBox {
|
[dir='rtl'] .timeBox {
|
||||||
flex-direction: row-reverse;
|
flex-direction: row-reverse;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.helpBt {
|
||||||
|
display: block;
|
||||||
|
width: 8vw;
|
||||||
|
object-fit: cover;
|
||||||
|
position: absolute;
|
||||||
|
z-index: 3;
|
||||||
|
top: 0;
|
||||||
|
right: 3vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
[dir='rtl'] .helpBt {
|
||||||
|
right: unset;
|
||||||
|
left: 3vw;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div style="width: 100%">
|
<div style="width: 100%">
|
||||||
<itemCenter :imgUrl="BorderImgUrl" :contentStyle="`display:block;`">
|
<itemCenter :imgUrl="BorderImgUrl" flip="true" :contentStyle="`display:block;`">
|
||||||
<!-- 第一名 -->
|
<!-- 第一名 -->
|
||||||
<div v-if="isTopOne" style="width: 98vw; height: 80%; position: relative">
|
<div v-if="isTopOne" style="width: 98vw; height: 80%; position: relative">
|
||||||
<!-- 查看个人信息按钮 -->
|
<!-- 查看个人信息按钮 -->
|
||||||
@ -239,7 +239,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 奖励 -->
|
<!-- 奖励 -->
|
||||||
<div style="position: absolute; bottom: 0; left: 15vw; right: 4vw; height: 13.5vw">
|
<div class="reward-wrapper">
|
||||||
<div style="height: 100%; display: flex; align-items: center; overflow: hidden">
|
<div style="height: 100%; display: flex; align-items: center; overflow: hidden">
|
||||||
<!-- 滚动容器 -->
|
<!-- 滚动容器 -->
|
||||||
<div class="scroll-wrapper">
|
<div class="scroll-wrapper">
|
||||||
@ -377,6 +377,19 @@ const clickReward = (item) => {
|
|||||||
font-size: 0.6em;
|
font-size: 0.6em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.reward-wrapper {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
left: 15vw;
|
||||||
|
right: 4vw;
|
||||||
|
height: 13.5vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
[dir='rtl'] .reward-wrapper {
|
||||||
|
left: 4vw;
|
||||||
|
right: 15vw;
|
||||||
|
}
|
||||||
|
|
||||||
.scroll-wrapper {
|
.scroll-wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
|
|||||||
@ -969,14 +969,11 @@
|
|||||||
alt=""
|
alt=""
|
||||||
style="width: 10vw; min-width: 0; object-fit: cover; display: block"
|
style="width: 10vw; min-width: 0; object-fit: cover; display: block"
|
||||||
/>
|
/>
|
||||||
<div style="font-weight: 590; font-size: 0.9em">
|
<div style="font-weight: 590; font-size: 0.9em; direction: ltr; text-align: left">
|
||||||
{{ record?.prize?.prizeName }}
|
{{ record?.prize?.prizeName }}
|
||||||
</div>
|
</div>
|
||||||
<div v-if="record.prize?.days" style="font-weight: 590; font-size: 0.9em">
|
|
||||||
*{{ record?.prize?.days }}Days
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div style="font-weight: 510; font-size: 0.8em; direction: ltr; text-align: left">
|
||||||
<div style="font-weight: 510; font-size: 0.8em">
|
|
||||||
{{ formatUTCCustom(record.drawTime) }}
|
{{ formatUTCCustom(record.drawTime) }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -1053,11 +1050,27 @@
|
|||||||
display: block;
|
display: block;
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
<div style="min-width: 0; font-weight: 590; font-size: 0.9em">
|
<div
|
||||||
|
style="
|
||||||
|
min-width: 0;
|
||||||
|
font-weight: 590;
|
||||||
|
font-size: 0.9em;
|
||||||
|
direction: ltr;
|
||||||
|
text-align: left;
|
||||||
|
"
|
||||||
|
>
|
||||||
{{ record.changeType == 2 ? '-' : '+' }}{{ record.changeAmount }}
|
{{ record.changeType == 2 ? '-' : '+' }}{{ record.changeAmount }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="min-width: 0; font-weight: 510; font-size: 0.8em">
|
<div
|
||||||
|
style="
|
||||||
|
min-width: 0;
|
||||||
|
font-weight: 510;
|
||||||
|
font-size: 0.8em;
|
||||||
|
direction: ltr;
|
||||||
|
text-align: left;
|
||||||
|
"
|
||||||
|
>
|
||||||
{{ formatUTCCustom(record.createdAt) }}
|
{{ formatUTCCustom(record.createdAt) }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -1673,9 +1686,13 @@ const preloadCriticalImages = async () => {
|
|||||||
// 排行榜
|
// 排行榜
|
||||||
imageUrl(`timeBg`),
|
imageUrl(`timeBg`),
|
||||||
imageUrl('helpBt'),
|
imageUrl('helpBt'),
|
||||||
imageUrl(`top1Ranking`),
|
imageUrl(`top1`),
|
||||||
|
imageUrl(`top2-3`),
|
||||||
imageUrl(`top2Ranking`),
|
imageUrl(`top2Ranking`),
|
||||||
|
imageUrl(`top2Frame`),
|
||||||
imageUrl(`top3Ranking`),
|
imageUrl(`top3Ranking`),
|
||||||
|
imageUrl(`top3Frame`),
|
||||||
|
imageUrl(`rankingCoupleSign`),
|
||||||
imageUrl(`rankingItemBg`),
|
imageUrl(`rankingItemBg`),
|
||||||
imageUrl('distribution'),
|
imageUrl('distribution'),
|
||||||
imageUrl(`num0`),
|
imageUrl(`num0`),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user