修改助力弹窗提示
This commit is contained in:
parent
967d8260b1
commit
b21160d81e
@ -64,6 +64,10 @@ let errmsg = err
|
||||
errmsg = "Verification failed due to high traffic. Please attempt to verify again or try later"
|
||||
} else if(errmsg.indexOf('already claimed') > -1) {
|
||||
errmsg = "Already received"
|
||||
} else if(errmsg.indexOf('You have already boosted the chest') > -1
|
||||
|| errmsg.indexOf('The chest’s boost count has reached the upper limit') > -1
|
||||
|| errmsg.indexOf('Today’s boost count has been exhausted') > -1) {
|
||||
// keep the errmsg
|
||||
} else {
|
||||
// 请重试
|
||||
errmsg = 'An unknown on-chain interaction error has occurred. Our technical team cannot resolve this issue directly. Please use a blockchain explorer to check your wallet address and determine if the transaction was recorded or if another issue exists.'
|
||||
|
@ -99,12 +99,8 @@ export default {
|
||||
async getCheckinClaimLeak(days) {
|
||||
let res = await apiCheckinClaimLeak(days)
|
||||
let { errcode,errmsg} = res
|
||||
if(errcode) {
|
||||
this.$showErr(errmsg)
|
||||
} else {
|
||||
this.getCheckInit()
|
||||
this.$emit('getCheckinLeak')
|
||||
}
|
||||
this.getCheckInit()
|
||||
this.$emit('getCheckinLeak')
|
||||
},
|
||||
|
||||
// 签到后更新签到状态
|
||||
|
@ -83,7 +83,7 @@
|
||||
<!-- <p></p> -->
|
||||
<p>
|
||||
Invite Your Friends
|
||||
<span @click="ruleDialogVisible = true">
|
||||
<span @click="inviteRuleVisible">
|
||||
<img src="@/assets/home/Icon_.png" alt />
|
||||
</span>
|
||||
</p>
|
||||
@ -293,6 +293,9 @@
|
||||
<span>{{ formatDateGMT(activityData.endTime) }}</span>
|
||||
</p>
|
||||
</div>
|
||||
<div class="event-rule" @click="calenRuleVisible">
|
||||
<img src="@/assets/home/Icon_.png" alt />
|
||||
</div>
|
||||
</div>
|
||||
<Calen ref="renewCheck" :activityData="activityData" @getCheckinLeak="getCheckinLeak" />
|
||||
<div class="rewards">
|
||||
@ -748,7 +751,7 @@
|
||||
<!-- Loading -->
|
||||
<Loading :Loading="isLoading" />
|
||||
|
||||
<RuleDialog :ruleDialogVisible="ruleDialogVisible" @handleClose="ruleHandleClose" />
|
||||
<RuleDialog :ruleDialogVisible="ruleDialogVisible" @handleClose="ruleHandleClose" :title="inviteTitle" :desc="inviteDesc" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -820,6 +823,10 @@ export default {
|
||||
}
|
||||
],
|
||||
ruleDialogVisible: false,
|
||||
inviteTitle: "",
|
||||
inviteDesc: "",
|
||||
inviteTitle: "",
|
||||
inviteDesc: "",
|
||||
inWhiteList: 0,
|
||||
activityData: {},
|
||||
baseTasks: [],
|
||||
@ -1329,7 +1336,6 @@ export default {
|
||||
this.$showErr(err);
|
||||
return;
|
||||
}
|
||||
return
|
||||
let serTimeId = setInterval(async () => {
|
||||
try {
|
||||
let { errcode, errmsg, data } = await apiUsercheckin();
|
||||
@ -1359,6 +1365,7 @@ export default {
|
||||
}
|
||||
}, 3000);
|
||||
},
|
||||
// 领取补签奖励
|
||||
getCheckinLeak() {
|
||||
this.getGameStat();
|
||||
},
|
||||
@ -1540,6 +1547,20 @@ export default {
|
||||
return date;
|
||||
},
|
||||
|
||||
// 规则弹窗
|
||||
calenRuleVisible() {
|
||||
this.ruleDialogVisible = true
|
||||
this.inviteTitle = "Invitation Rules"
|
||||
this.inviteDesc = `Invite friends using your unique link and boost your rewards as they participate in tasks, explore, and engage in boosting activities.<br />
|
||||
Earn instant bonuses: gain an additional 10% of the points your friends earn, excluding points from their invitations.`
|
||||
},
|
||||
inviteRuleVisible() {
|
||||
this.ruleDialogVisible = true
|
||||
this.inviteTitle = "Invitation Rules"
|
||||
this.inviteDesc = `Invite friends using your unique link and boost your rewards as they participate in tasks, explore, and engage in boosting activities.<br />
|
||||
Earn instant bonuses: gain an additional 10% of the points your friends earn, excluding points from their invitations.`
|
||||
},
|
||||
|
||||
// 外链跳转
|
||||
openLink() {
|
||||
window.open(
|
||||
@ -2648,7 +2669,7 @@ export default {
|
||||
.event-icon {
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
margin-right: 10px;
|
||||
margin-right: 5px;
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
@ -2665,7 +2686,7 @@ export default {
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: 70px;
|
||||
margin-right: 10px;
|
||||
margin-right: 5px;
|
||||
> span {
|
||||
display: inline-block;
|
||||
color: #8e5cd4;
|
||||
@ -2676,6 +2697,16 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
.event-rule {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin-left: 10px;
|
||||
cursor: pointer;
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
.calen-content {
|
||||
border-radius: 25px;
|
||||
|
@ -9,12 +9,8 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="points-title">Invitation Rules</div>
|
||||
<div>
|
||||
Invite friends using your unique link and boost your rewards as they participate in tasks, explore, and engage in boosting activities.
|
||||
</div>
|
||||
<div>
|
||||
Earn instant bonuses: gain an additional 10% of the points your friends earn, excluding points from their invitations.
|
||||
<div class="points-title">{{ title }}</div>
|
||||
<div v-html="desc">
|
||||
</div>
|
||||
</div>
|
||||
<div class="btn" @click="ExploreDialog">Confirm</div>
|
||||
@ -26,6 +22,8 @@
|
||||
export default {
|
||||
props: {
|
||||
ruleDialogVisible: Boolean,
|
||||
title: String,
|
||||
desc: String,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
Loading…
x
Reference in New Issue
Block a user