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) }}
+
-
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 {