chore(周星活动页): 样式调整
This commit is contained in:
parent
7b5fb1998f
commit
1c6a228a79
@ -41,26 +41,26 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 倒计时 -->
|
<!-- 倒计时 -->
|
||||||
<div style="display: flex; justify-content: center; margin-top: -10%">
|
<div style="display: flex; justify-content: center; margin-top: 0%">
|
||||||
<div style="width: 15%">
|
<div style="width: 20%">
|
||||||
<itemCenter :imgUrl="imageUrl('dayBg')">
|
<itemCenter :imgUrl="imageUrl('dayBg')">
|
||||||
<div class="timeText">{{ Days }}D</div>
|
<div class="timeText">{{ Days }}D</div>
|
||||||
</itemCenter>
|
</itemCenter>
|
||||||
</div>
|
</div>
|
||||||
<div class="timeText timeGap" style="width: 6px"></div>
|
<div class="timeText timeGap" style="width: 6px"></div>
|
||||||
<div style="width: 15%">
|
<div style="width: 20%">
|
||||||
<itemCenter :imgUrl="imageUrl('hourAndMinBg')">
|
<itemCenter :imgUrl="imageUrl('hourAndMinBg')">
|
||||||
<div class="timeText">{{ Hours }}</div>
|
<div class="timeText">{{ Hours }}</div>
|
||||||
</itemCenter>
|
</itemCenter>
|
||||||
</div>
|
</div>
|
||||||
<div class="timeText timeGap">:</div>
|
<div class="timeText timeGap">:</div>
|
||||||
<div style="width: 15%">
|
<div style="width: 20%">
|
||||||
<itemCenter :imgUrl="imageUrl('hourAndMinBg')">
|
<itemCenter :imgUrl="imageUrl('hourAndMinBg')">
|
||||||
<div class="timeText">{{ Minutes }}</div>
|
<div class="timeText">{{ Minutes }}</div>
|
||||||
</itemCenter>
|
</itemCenter>
|
||||||
</div>
|
</div>
|
||||||
<div class="timeText timeGap">:</div>
|
<div class="timeText timeGap">:</div>
|
||||||
<div style="width: 15%">
|
<div style="width: 20%">
|
||||||
<itemCenter :imgUrl="imageUrl('secBg')">
|
<itemCenter :imgUrl="imageUrl('secBg')">
|
||||||
<div class="timeText">{{ Second }}</div>
|
<div class="timeText">{{ Second }}</div>
|
||||||
</itemCenter>
|
</itemCenter>
|
||||||
@ -68,7 +68,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 切换按钮 -->
|
<!-- 切换按钮 -->
|
||||||
<div style="margin: 22% 0 8% 0; display: flex; justify-content: space-around">
|
<div style="margin: 10% 0 8% 0; display: flex; justify-content: space-around">
|
||||||
<div style="width: 30%" @click="handleBt('Ranking')">
|
<div style="width: 30%" @click="handleBt('Ranking')">
|
||||||
<itemCenter :imgUrl="rankingShow ? imageUrl('btActive') : imageUrl('btNoActive')">
|
<itemCenter :imgUrl="rankingShow ? imageUrl('btActive') : imageUrl('btNoActive')">
|
||||||
<div class="btTitle">Ranking</div>
|
<div class="btTitle">Ranking</div>
|
||||||
@ -91,10 +91,11 @@
|
|||||||
<!-- Ranking -->
|
<!-- Ranking -->
|
||||||
<div
|
<div
|
||||||
v-show="rankingShow"
|
v-show="rankingShow"
|
||||||
style="position: relative; width: 90%; left: 50%; transform: translateX(-50%)"
|
style="position: relative; width: 100%; left: 50%; transform: translateX(-50%)"
|
||||||
>
|
>
|
||||||
<!-- 背景板 -->
|
<!-- 背景板 -->
|
||||||
<div>
|
<div>
|
||||||
|
<!-- 头部背景 -->
|
||||||
<img
|
<img
|
||||||
v-smart-img
|
v-smart-img
|
||||||
:src="imageUrl('RankingMain')"
|
:src="imageUrl('RankingMain')"
|
||||||
@ -102,6 +103,7 @@
|
|||||||
width="100%"
|
width="100%"
|
||||||
style="display: block"
|
style="display: block"
|
||||||
/>
|
/>
|
||||||
|
<!-- 用户项 -->
|
||||||
<img
|
<img
|
||||||
v-smart-img
|
v-smart-img
|
||||||
:src="imageUrl('RankingItem')"
|
:src="imageUrl('RankingItem')"
|
||||||
@ -111,12 +113,13 @@
|
|||||||
v-for="value in showRanking.length - 1"
|
v-for="value in showRanking.length - 1"
|
||||||
v-if="showRanking.length > 1"
|
v-if="showRanking.length > 1"
|
||||||
/>
|
/>
|
||||||
|
<!-- 底框 -->
|
||||||
<img
|
<img
|
||||||
v-smart-img
|
v-smart-img
|
||||||
:src="imageUrl('RankingBottomBorder')"
|
:src="imageUrl('RankingBottomBorder')"
|
||||||
alt=""
|
alt=""
|
||||||
width="100%"
|
width="100%"
|
||||||
style="display: block; margin-top: -12%"
|
style="display: block; margin-top: -9%"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -180,7 +183,7 @@
|
|||||||
<!-- 第四名开始 -->
|
<!-- 第四名开始 -->
|
||||||
<itemCenter
|
<itemCenter
|
||||||
v-for="listItem in showRanking"
|
v-for="listItem in showRanking"
|
||||||
style="margin-top: 3%; position: relative"
|
style="margin-top: 3.3vw; position: relative"
|
||||||
@click="viewUserInfo(listItem.userId)"
|
@click="viewUserInfo(listItem.userId)"
|
||||||
:imgUrl="imageUrl('itemUser')"
|
:imgUrl="imageUrl('itemUser')"
|
||||||
:contentStyle="`justify-content: flex-start;padding: 0 3%;gap: 8px;`"
|
:contentStyle="`justify-content: flex-start;padding: 0 3%;gap: 8px;`"
|
||||||
@ -291,17 +294,17 @@
|
|||||||
style="display: flex; flex-direction: column; align-items: center; gap: 20px"
|
style="display: flex; flex-direction: column; align-items: center; gap: 20px"
|
||||||
>
|
>
|
||||||
<!-- top模块 -->
|
<!-- top模块 -->
|
||||||
<div v-for="(topItem, topIndex) in rewardsList" style="position: relative; width: 90%">
|
<div v-for="(topItem, topIndex) in rewardsList" style="position: relative; width: 100%">
|
||||||
<!-- top背景图 -->
|
<!-- top背景图 -->
|
||||||
<img v-smart-img :src="imageUrl('topBg')" alt="" style="width: 100%; display: block" />
|
<img v-smart-img :src="imageUrl('topBg')" alt="" style="width: 100%; display: block" />
|
||||||
<!-- 标题 -->
|
<!-- 标题 -->
|
||||||
<div
|
<div
|
||||||
style="
|
style="
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 6%;
|
top: 7%;
|
||||||
left: 25%;
|
left: 25%;
|
||||||
right: 25%;
|
right: 25%;
|
||||||
height: 11%;
|
height: 8.5%;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -349,9 +352,10 @@
|
|||||||
|
|
||||||
<!-- Exchange -->
|
<!-- Exchange -->
|
||||||
<div v-show="exchargeShow" style="display: flex; justify-content: center">
|
<div v-show="exchargeShow" style="display: flex; justify-content: center">
|
||||||
<div style="position: relative; width: 90%">
|
<div style="position: relative; width: 100%">
|
||||||
<!-- 背景图 -->
|
<!-- 背景图 -->
|
||||||
<img v-smart-img :src="imageUrl('longBg')" alt="" style="width: 100%; display: block" />
|
<img v-smart-img :src="imageUrl('longBg')" alt="" style="width: 100%; display: block" />
|
||||||
|
|
||||||
<!-- 标题 -->
|
<!-- 标题 -->
|
||||||
<div
|
<div
|
||||||
style="
|
style="
|
||||||
@ -370,6 +374,8 @@
|
|||||||
>
|
>
|
||||||
Props
|
Props
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- 内容 -->
|
||||||
<div
|
<div
|
||||||
style="
|
style="
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -888,6 +894,7 @@ const RankingHasTop3 = computed(() => {
|
|||||||
// 展示用的榜单
|
// 展示用的榜单
|
||||||
const showRanking = computed(() => {
|
const showRanking = computed(() => {
|
||||||
return Ranking.value.filter((_, index) => index >= 3)
|
return Ranking.value.filter((_, index) => index >= 3)
|
||||||
|
// return []
|
||||||
})
|
})
|
||||||
|
|
||||||
// 选中要兑换的商品
|
// 选中要兑换的商品
|
||||||
@ -1188,6 +1195,7 @@ onUnmounted(() => {
|
|||||||
|
|
||||||
.timeText {
|
.timeText {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
font-size: 1.3em;
|
||||||
font-weight: 860;
|
font-weight: 860;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user