update
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
<div
|
<div
|
||||||
class="carousel-track"
|
class="carousel-track"
|
||||||
:style="{
|
:style="{
|
||||||
transform: `translateX(calc(-${currentIndex * 104}% + ${currentIndex * 13.2}vw))`,
|
transform: `translateX(calc(-${currentIndex * 72 }vw))`,
|
||||||
transition: isTransitioning ? 'transform 0.3s ease' : 'none'
|
transition: isTransitioning ? 'transform 0.3s ease' : 'none'
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
@@ -438,8 +438,9 @@ onUnmounted(() => {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
margin-left: 3vw;
|
||||||
/* 20px 0 -> 5.33vw 0 */
|
/* 20px 0 -> 5.33vw 0 */
|
||||||
padding: 5.33vw 0;
|
/* padding: 5.33vw 0; */
|
||||||
}
|
}
|
||||||
|
|
||||||
.carousel-slide {
|
.carousel-slide {
|
||||||
@@ -455,7 +456,7 @@ onUnmounted(() => {
|
|||||||
width: calc(100% - 42.67vw);
|
width: calc(100% - 42.67vw);
|
||||||
|
|
||||||
/* 0 20px -> 0 5.33vw */
|
/* 0 20px -> 0 5.33vw */
|
||||||
margin: 0 5.33vw;
|
margin: 0 2vw;
|
||||||
|
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@@ -534,13 +535,13 @@ onUnmounted(() => {
|
|||||||
|
|
||||||
.carousel-container {
|
.carousel-container {
|
||||||
/* 0 10px -> 0 2.67vw */
|
/* 0 10px -> 0 2.67vw */
|
||||||
padding: 0 2.67vw;
|
/* padding: 0 2.67vw; */
|
||||||
}
|
}
|
||||||
|
|
||||||
.carousel-slide {
|
.carousel-slide {
|
||||||
min-width: calc(100% - 12vw);
|
min-width: calc(100% - 12vw);
|
||||||
width: calc(100% - 12vw);
|
width: calc(100% - 12vw);
|
||||||
margin: 0 2.67vw;
|
/* margin: 0 2.67vw; */
|
||||||
}
|
}
|
||||||
|
|
||||||
.carousel-track {
|
.carousel-track {
|
||||||
|
|||||||
@@ -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.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_CAP_SCAN = result.json.constants.MAX_CAP_SCAN
|
||||||
globalStore.MAX_INVITE_DAILY = result.json.constants.MAX_INVITE_DAILY
|
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)
|
globalToastEvent.emit(ToastType.MOUNTED)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<ModalTransition class="todolist" :show="show">
|
<ModalTransition class="todolist" :show="show">
|
||||||
<div class="todolist-wrapper">
|
<div class="todolist-wrapper">
|
||||||
<div class="btn-group">
|
<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
|
<!-- <div
|
||||||
class="btn-share"
|
class="btn-share"
|
||||||
:class="{'has': globalStore.inviteCount >= globalStore.MAX_INVITE_DAILY}"
|
:class="{'has': globalStore.inviteCount >= globalStore.MAX_INVITE_DAILY}"
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ export const globalStore = reactive({
|
|||||||
draw_chances: 0,
|
draw_chances: 0,
|
||||||
game_chances: 0,
|
game_chances: 0,
|
||||||
lotteryCount: 0,
|
lotteryCount: 0,
|
||||||
|
inviteCount:0,
|
||||||
result_url: '',
|
result_url: '',
|
||||||
mergeId: 61,
|
mergeId: 61,
|
||||||
generateStatus: false,
|
generateStatus: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user