From b21160d81ef9ee93d330744ba6186dd4dd541b35 Mon Sep 17 00:00:00 2001 From: yuyongdong Date: Tue, 23 Apr 2024 21:00:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8A=A9=E5=8A=9B=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/errorDialog/index.js | 4 +++ src/views/home/calenView.vue | 8 ++---- src/views/home/index.vue | 41 +++++++++++++++++++++++++---- src/views/home/ruleDialog.vue | 10 +++---- 4 files changed, 46 insertions(+), 17 deletions(-) diff --git a/src/components/errorDialog/index.js b/src/components/errorDialog/index.js index 4b9c67b..5035fc5 100644 --- a/src/components/errorDialog/index.js +++ b/src/components/errorDialog/index.js @@ -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.' diff --git a/src/views/home/calenView.vue b/src/views/home/calenView.vue index d5f670d..68748fa 100644 --- a/src/views/home/calenView.vue +++ b/src/views/home/calenView.vue @@ -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') }, // 签到后更新签到状态 diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 896329e..47dd075 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -83,7 +83,7 @@

Invite Your Friends - +

@@ -293,6 +293,9 @@ {{ formatDateGMT(activityData.endTime) }}

+
+ +
@@ -748,7 +751,7 @@ - +
@@ -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.
+ 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.
+ 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; diff --git a/src/views/home/ruleDialog.vue b/src/views/home/ruleDialog.vue index 4dde5a6..2dd9ab7 100644 --- a/src/views/home/ruleDialog.vue +++ b/src/views/home/ruleDialog.vue @@ -9,12 +9,8 @@
-
Invitation Rules
-
- Invite friends using your unique link and boost your rewards as they participate in tasks, explore, and engage in boosting activities. -
-
- Earn instant bonuses: gain an additional 10% of the points your friends earn, excluding points from their invitations. +
{{ title }}
+
Confirm
@@ -26,6 +22,8 @@ export default { props: { ruleDialogVisible: Boolean, + title: String, + desc: String, }, data() { return {