修改助力弹窗提示
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"
|
errmsg = "Verification failed due to high traffic. Please attempt to verify again or try later"
|
||||||
} else if(errmsg.indexOf('already claimed') > -1) {
|
} else if(errmsg.indexOf('already claimed') > -1) {
|
||||||
errmsg = "Already received"
|
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 {
|
} 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.'
|
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) {
|
async getCheckinClaimLeak(days) {
|
||||||
let res = await apiCheckinClaimLeak(days)
|
let res = await apiCheckinClaimLeak(days)
|
||||||
let { errcode,errmsg} = res
|
let { errcode,errmsg} = res
|
||||||
if(errcode) {
|
this.getCheckInit()
|
||||||
this.$showErr(errmsg)
|
this.$emit('getCheckinLeak')
|
||||||
} else {
|
|
||||||
this.getCheckInit()
|
|
||||||
this.$emit('getCheckinLeak')
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// 签到后更新签到状态
|
// 签到后更新签到状态
|
||||||
|
@ -83,7 +83,7 @@
|
|||||||
<!-- <p></p> -->
|
<!-- <p></p> -->
|
||||||
<p>
|
<p>
|
||||||
Invite Your Friends
|
Invite Your Friends
|
||||||
<span @click="ruleDialogVisible = true">
|
<span @click="inviteRuleVisible">
|
||||||
<img src="@/assets/home/Icon_.png" alt />
|
<img src="@/assets/home/Icon_.png" alt />
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
@ -293,6 +293,9 @@
|
|||||||
<span>{{ formatDateGMT(activityData.endTime) }}</span>
|
<span>{{ formatDateGMT(activityData.endTime) }}</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="event-rule" @click="calenRuleVisible">
|
||||||
|
<img src="@/assets/home/Icon_.png" alt />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Calen ref="renewCheck" :activityData="activityData" @getCheckinLeak="getCheckinLeak" />
|
<Calen ref="renewCheck" :activityData="activityData" @getCheckinLeak="getCheckinLeak" />
|
||||||
<div class="rewards">
|
<div class="rewards">
|
||||||
@ -748,7 +751,7 @@
|
|||||||
<!-- Loading -->
|
<!-- Loading -->
|
||||||
<Loading :Loading="isLoading" />
|
<Loading :Loading="isLoading" />
|
||||||
|
|
||||||
<RuleDialog :ruleDialogVisible="ruleDialogVisible" @handleClose="ruleHandleClose" />
|
<RuleDialog :ruleDialogVisible="ruleDialogVisible" @handleClose="ruleHandleClose" :title="inviteTitle" :desc="inviteDesc" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -820,6 +823,10 @@ export default {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
ruleDialogVisible: false,
|
ruleDialogVisible: false,
|
||||||
|
inviteTitle: "",
|
||||||
|
inviteDesc: "",
|
||||||
|
inviteTitle: "",
|
||||||
|
inviteDesc: "",
|
||||||
inWhiteList: 0,
|
inWhiteList: 0,
|
||||||
activityData: {},
|
activityData: {},
|
||||||
baseTasks: [],
|
baseTasks: [],
|
||||||
@ -1329,7 +1336,6 @@ export default {
|
|||||||
this.$showErr(err);
|
this.$showErr(err);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
return
|
|
||||||
let serTimeId = setInterval(async () => {
|
let serTimeId = setInterval(async () => {
|
||||||
try {
|
try {
|
||||||
let { errcode, errmsg, data } = await apiUsercheckin();
|
let { errcode, errmsg, data } = await apiUsercheckin();
|
||||||
@ -1359,6 +1365,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}, 3000);
|
}, 3000);
|
||||||
},
|
},
|
||||||
|
// 领取补签奖励
|
||||||
getCheckinLeak() {
|
getCheckinLeak() {
|
||||||
this.getGameStat();
|
this.getGameStat();
|
||||||
},
|
},
|
||||||
@ -1540,6 +1547,20 @@ export default {
|
|||||||
return date;
|
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() {
|
openLink() {
|
||||||
window.open(
|
window.open(
|
||||||
@ -2648,7 +2669,7 @@ export default {
|
|||||||
.event-icon {
|
.event-icon {
|
||||||
width: 35px;
|
width: 35px;
|
||||||
height: 35px;
|
height: 35px;
|
||||||
margin-right: 10px;
|
margin-right: 5px;
|
||||||
img {
|
img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@ -2665,7 +2686,7 @@ export default {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
width: 70px;
|
width: 70px;
|
||||||
margin-right: 10px;
|
margin-right: 5px;
|
||||||
> span {
|
> span {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
color: #8e5cd4;
|
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 {
|
.calen-content {
|
||||||
border-radius: 25px;
|
border-radius: 25px;
|
||||||
|
@ -9,12 +9,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="points-title">Invitation Rules</div>
|
<div class="points-title">{{ title }}</div>
|
||||||
<div>
|
<div v-html="desc">
|
||||||
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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn" @click="ExploreDialog">Confirm</div>
|
<div class="btn" @click="ExploreDialog">Confirm</div>
|
||||||
@ -26,6 +22,8 @@
|
|||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
ruleDialogVisible: Boolean,
|
ruleDialogVisible: Boolean,
|
||||||
|
title: String,
|
||||||
|
desc: String,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user