nft 缺少文案

This commit is contained in:
yuyongdong 2024-04-18 16:01:44 +08:00
parent bed6ac4211
commit 97b8af0ead
5 changed files with 31 additions and 102 deletions

View File

@ -34,13 +34,14 @@ let errmsg = err
errmsg = 'Can not be empty'
} else if(errmsg.indexOf('need connect discord first') > -1) {
errmsg = 'need connect discord first'
} else if(errmsg.indexOf('Invalid Voucher Code' > -1)) {
} else if(errmsg.indexOf('Invalid Voucher Code') > -1) {
console.log(errmsg,'errmsg')
errmsg = 'Invalid Voucher Code'
} else if(errmsg.indexOf('already claimed') > -1) {
errmsg = 'already claimed'
} else if(errmsg.indexOf('had no role')) {
} else if(errmsg.indexOf('had no role') > -1) {
errmsg = 'had no role'
} else if(errmsg.indexOf('have not join guild')) {
} else if(errmsg.indexOf('have not join guild') > -1) {
errmsg = 'have not join guild'
}

View File

@ -95,7 +95,7 @@
<div class="icon">
<img src="@/assets/box/Invite_icon.png" alt="">
</div>
<div>Copy Chest Link</div>
<div class="copy-text">{{ boxData.bounsCount }}/{{ boxData.maxBounsCount }} Copy Chest Link</div>
</div>
</div>
</div>
@ -262,9 +262,7 @@ export default {
pageBoxList: [],
boxData: {},
userData: {},
boostingList: [
],
boostingList: [],
pageSize: 6,
currentPage: 1,
recordsDialogVisible: false,
@ -272,87 +270,6 @@ export default {
recordsPageSize: 8,
recordsCurrentPage: 1,
boostingDialogVisible: false,
// myRecordsList: [
// {
// username: 'username',
// name: 'username',
// points: '12',
// address: 'addressaddress',
// post: '0000',
// },
// {
// username: 'username',
// name: 'username',
// points: '12',
// address: 'addressaddress',
// post: '0000',
// },
// {
// username: 'username',
// name: 'username',
// points: '12',
// address: 'addressaddress',
// post: '0000',
// },
// {
// username: 'username',
// name: 'username',
// points: '12',
// address: 'addressaddress',
// post: '0000',
// },
// {
// username: 'username',
// name: 'username',
// points: '12',
// address: 'addressaddress',
// post: '0000',
// },
// {
// username: 'username',
// name: 'username',
// points: '12',
// address: 'addressaddress',
// post: '0000',
// },
// {
// username: 'username',
// name: 'username',
// points: '12',
// address: 'addressaddress',
// post: '0000',
// },
// {
// username: 'username',
// name: 'username',
// points: '12',
// address: 'addressaddress',
// post: '0000',
// },
// {
// username: 'username',
// name: 'username',
// points: '12',
// address: 'addressaddress',
// post: '0000',
// },
// {
// username: 'username',
// name: 'username',
// points: '12',
// address: 'addressaddress',
// post: '0000',
// },
// {
// username: 'username',
// name: 'username',
// points: '12',
// address: 'addressaddress',
// post: '0000',
// }
// ],
myRecordsList: [],
boostingPageSize: 6,
boostingCurrentPage: 1,
@ -485,6 +402,7 @@ export default {
// alert(`,: ${JSON.stringify(data)}`)
this.getMyBoxList()
this.openBoxLog()
this.boostingList = []
this.isLoading = false
this.$emit('awardDialog', data)
localStorage.removeItem(storeageKey)
@ -823,7 +741,7 @@ export default {
justify-content: center;
align-items: center;
padding: 20px 0px;
font-size: 12px;
font-size: 14px;
background: url('@/assets/box/button_copy.png') no-repeat;
background-size: 100% 100%;
border-radius: 20px;

View File

@ -280,7 +280,7 @@
</div>
<Calen ref="renewCheck" :activityData='activityData' />
<div class="rewards">
<p>Consecutive Check-in Rewards</p>
<p>Accumulative Check-in Rewards</p>
<div v-if="gameStateData.totalStat" class="rewards-list">
<li v-for="(item, index) in gameStateData.totalStat" :key="index">
<div class="center no-state" v-if="item.state == 0">
@ -364,7 +364,7 @@
</div>
</div>
<div class="rewards">
<p>Accumulative Check-in Rewards</p>
<p>Consecutive Check-in Rewards</p>
<div v-if="gameStateData.seqStat" class="rewards-list">
<li v-for="(item, index) in gameStateData.seqStat" :key="index">
<div class="center no-state" v-if="item.state == 0">

View File

@ -31,7 +31,7 @@
<div class="quest-item">
<div class="content-rewards-left">
<div class="img-logo">
<a :href="item.link" target="_blank">
<a v-if="item.link != ''" :href="item.link" target="_blank">
<img src="./../../assets/home/twitter.png" alt />
</a>
</div>
@ -41,18 +41,20 @@
</div>
</div>
<div class="chain">
<a :href="`https://etherscan.io/address/${item.contract}`" target="_blank">
<a v-if="item.contract != ''" :href="`https://etherscan.io/address/${item.contract}`" target="_blank">
<img src="@/assets/common/logo-etherscan.png" alt="">
</a>
</div>
<div class="Rewards">
<div class="box-img">
<img src="@/assets/box/box01.png" alt />
<img :src="require(`@/assets/box/box0${item.tier}.png`)" alt />
</div>
<div v-if="token != null" class="btn">
<div class="is-btn">
<div v-if="item.status == 0" class="check-no" @click.stop="chickNftClaim(item.contract)">Chick</div>
<div v-else-if="item.status == 1" class="check-yes">
<div v-if="item.status == 0" class="check-no" @click.stop="chickNftClaim(item.contract)">
<span>Verify</span>
</div>
<div v-if="item.status == 1" class="check-yes">
<img src="@/assets/home/check-yes.png" alt />
</div>
</div>
@ -161,32 +163,40 @@ export default {
},
// NFT holder
async chickNftClaim(contract) {
async chickNftClaim(contract, step) {
let discordId = JSON.parse(localStorage.getItem("userData")).discordId
if(discordId) {
try {
let { errcode, errmsg, data } = await apiClaimNft(contract);
console.log(errcode, errmsg, data)
if (!errcode) {
this.getNftList()
this.nftsList = []
this.getNftList(step)
this.$emit('awardDialog',data)
} else if(errcode == 10 || errcode == 20) {
this.beginCountdown(step)
this.$showErr(errmsg)
} else if(errcode == 13) {
this.$showErr(errmsg)
this.beginCountdown(step)
this.$showErr(`${errmsg}`)
} else if(errcode == 14) {
this.beginCountdown(step)
this.$showErr(errmsg)
} else if(errcode == 21) {
this.beginCountdown(step)
this.$showErr(errmsg)
}
} catch (err) {
this.beginCountdown(step)
this.$message.error(`claim partner reward error: ${err}`);
}
} else {
this.beginCountdown(step)
this.$showErr('need connect discord first')
}
},
beginCountdown() {
this.timeLeft = parseInt(this.time);
beginCountdown(step) {
this.timeLeft = parseInt(step);
let timer = setInterval(() => {
this.timeLeft--;
if (this.timeLeft <= 0) {

View File

@ -30,7 +30,7 @@
</div>
<div class="list-btm" v-if="token">
<div class="ranking" v-if="usesRank == '-'">{{ usesRank }}</div>
<div class="ranking" v-else-if="usesRank >= 100">Outside the Top 100</div>
<div class="ranking" v-else-if="usesRank >= 100">Outside the Top 100+</div>
<div class="ranking" v-else>{{ usesRank+1 }}</div>
</div>
<div class="list-btm" v-else>