This commit is contained in:
xiaoaojiao
2025-12-26 20:49:36 +08:00
parent 13ecd16fbe
commit 81a13aa8b1
4 changed files with 9 additions and 7 deletions

View File

@@ -21,7 +21,7 @@
<div
class="carousel-track"
:style="{
transform: `translateX(calc(-${currentIndex * 104}% + ${currentIndex * 13.2}vw))`,
transform: `translateX(calc(-${currentIndex * 72 }vw))`,
transition: isTransitioning ? 'transform 0.3s ease' : 'none'
}"
>
@@ -438,8 +438,9 @@ onUnmounted(() => {
display: flex;
flex-direction: row;
width: 100%;
margin-left: 3vw;
/* 20px 0 -> 5.33vw 0 */
padding: 5.33vw 0;
/* padding: 5.33vw 0; */
}
.carousel-slide {
@@ -455,7 +456,7 @@ onUnmounted(() => {
width: calc(100% - 42.67vw);
/* 0 20px -> 0 5.33vw */
margin: 0 5.33vw;
margin: 0 2vw;
flex-shrink: 0;
cursor: pointer;
@@ -534,13 +535,13 @@ onUnmounted(() => {
.carousel-container {
/* 0 10px -> 0 2.67vw */
padding: 0 2.67vw;
/* padding: 0 2.67vw; */
}
.carousel-slide {
min-width: calc(100% - 12vw);
width: calc(100% - 12vw);
margin: 0 2.67vw;
/* margin: 0 2.67vw; */
}
.carousel-track {

View File

@@ -313,7 +313,7 @@ const initUserGameInfos = async (refresh_official, refresh_cap_scan) => {
globalStore.CONSUME_POINT_1_PER_DRAW = result.json.constants.CONSUME_POINT_1_PER_DRAW
globalStore.MAX_CAP_SCAN = result.json.constants.MAX_CAP_SCAN
globalStore.MAX_INVITE_DAILY = result.json.constants.MAX_INVITE_DAILY
globalStore.MAX_INVITE_DAILY = result.json.invitees
globalStore.inviteCount = result.json.invitees
globalToastEvent.emit(ToastType.MOUNTED)
}

View File

@@ -2,7 +2,7 @@
<ModalTransition class="todolist" :show="show">
<div class="todolist-wrapper">
<div class="btn-group">
<div class="btn-share" :class="globalStore.MAX_INVITE_DAILY === globalStore.MAX_INVITE_DAILY ? 'has' : ''" @click="openHaibao($event)"></div>
<div class="btn-share" :class="globalStore.inviteCount === globalStore.MAX_INVITE_DAILY ? 'has' : ''" @click="openHaibao($event)"></div>
<!-- <div
class="btn-share"
:class="{'has': globalStore.inviteCount >= globalStore.MAX_INVITE_DAILY}"