更新合约, 修改获取白单数量的方法, 修改白单提示文字

This commit is contained in:
CounterFire2023 2024-06-27 12:51:52 +08:00
parent e7613a4c35
commit 87d8bc7a9c

View File

@ -188,10 +188,10 @@
</span> </span>
</div> </div>
</div> </div>
<div v-if="isOpenClaim == 2" class="amount"> <div v-if="isOpenClaim == 2" class="amount nowrap">
<span>{{statusTxt}}</span> <span>{{statusTxt}}</span>
</div> </div>
<div v-if="isOpenClaim == 1" class="amount">{{statusTxt}}</div> <div v-if="isOpenClaim == 1" class="amount nowrap">{{statusTxt}}</div>
</div> </div>
<div class="join-btm-right" @click="hasNot"> <div class="join-btm-right" @click="hasNot">
<div <div
@ -246,10 +246,10 @@
</span> </span>
</div> </div>
</div> </div>
<div v-if="isOpenClaim == 2" class="amount"> <div v-if="isOpenClaim == 2" class="amount nowrap">
<span>{{statusTxt}}</span> <span>{{statusTxt}}</span>
</div> </div>
<div v-if="isOpenClaim == 1" class="amount">{{statusTxt}}</div> <div v-if="isOpenClaim == 1" class="amount nowrap">{{statusTxt}}</div>
</div> </div>
<div v-if="!getAddress" class="join-btm-right"> <div v-if="!getAddress" class="join-btm-right">
<div <div
@ -433,10 +433,10 @@
</span> </span>
</div> </div>
</div> </div>
<div v-if="isOpenClaim == 2" class="amount"> <div v-if="isOpenClaim == 2" class="amount nowrap">
<span>{{statusTxt}}</span> <span>{{statusTxt}}</span>
</div> </div>
<div v-if="isOpenClaim == 1" class="amount">{{statusTxt}}</div> <div v-if="isOpenClaim == 1" class="amount nowrap">{{statusTxt}}</div>
</div> </div>
<div v-if="!getAddress" class="join-btm-right"> <div v-if="!getAddress" class="join-btm-right">
<div <div
@ -1010,13 +1010,13 @@ const getIsWhite = async () => {
if (getAddress.value) { if (getAddress.value) {
const [num1, num2, minted] = await fetchWLCount(getAddress.value) const [num1, num2, minted] = await fetchWLCount(getAddress.value)
if (num1 > 0 && num2 > 0) { if (num1 > 0 && num2 > 0) {
statusTxt.value = 'Eligible for minting in Guaranteed and FCFS rounds' statusTxt.value = 'Guaranteed & FCFS Minting Eligible'
} else if (num1 > 0) { } else if (num1 > 0) {
statusTxt.value = 'Boom! you are on the Guaranteed Whitelist' statusTxt.value = 'Congrats!Guaranteed Whitelisted'
} else if (num2 > 0) { } else if (num2 > 0) {
statusTxt.value = 'Congrats,you are on the fcfs whitelist' statusTxt.value = 'Congrats!FCFS Whitelisted!'
} else { } else {
statusTxt.value = 'Regrettably, you are not on the whitelist' statusTxt.value = 'Not on the whitelist'
} }
let whiteAmount = num1 - minted let whiteAmount = num1 - minted
// 2, mint // 2, mint
@ -2857,4 +2857,12 @@ onMounted(() => {
} }
} }
} }
.nowrap {
text-wrap: nowrap;
white-space: nowrap;
span {
text-wrap: nowrap;
white-space: nowrap;
}
}
</style> </style>