From 38712ae83223cb244020e255fc37e1ce35775c45 Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期四, 09 四月 2026 13:53:40 +0800
Subject: [PATCH] 优化
---
src/views/h5/login/redirect.vue | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/src/views/h5/login/redirect.vue b/src/views/h5/login/redirect.vue
index 07fa156..31ac4a7 100644
--- a/src/views/h5/login/redirect.vue
+++ b/src/views/h5/login/redirect.vue
@@ -7,7 +7,8 @@
<path d="M395.6 380.4c0 54.7 26.5 103.5 67.6 134.4-3.6 9.8-7.9 19.2-12.8 28.1-4.9 8.9-10.4 17.4-16.6 25.4-6.2 8-13.1 15.4-20.6 22.2-7.5 6.8-15.7 12.8-24.4 17.9-8.7 5.1-18 9.3-27.6 12.5-9.6 3.2-19.6 5.3-29.8 6.3-10.2 1-20.5 0.9-30.6-0.4-10.1-1.3-20-3.8-29.4-7.4-9.4-3.6-18.3-8.3-26.6-14-8.3-5.7-15.9-12.2-22.7-19.6-6.8-7.4-12.7-15.5-17.6-24.3-4.9-8.8-8.8-18.2-11.5-28-2.7-9.8-4.2-19.9-4.5-30.2-0.3-10.3 0.8-20.5 3.2-30.5 2.4-10 6.1-19.6 10.9-28.7 4.8-9.1 10.7-17.5 17.5-25.2 6.8-7.7 14.5-14.5 22.9-20.4 8.4-5.9 17.5-10.8 27.1-14.6 9.6-3.8 19.7-6.4 30-7.9 10.3-1.5 20.8-1.8 31.2-0.7 10.4 1.1 20.6 3.6 30.3 7.4 9.7 3.8 18.8 8.8 27.1 15 8.3 6.2 15.8 13.4 22.4 21.5 6.6 8.1 12.2 16.9 16.6 26.3 4.4 9.4 7.6 19.3 9.5 29.6z" fill="#07C160"/>
</svg>
</div>
- <div class="sub-text">
+ 12222222223333
+ <div class="sub-text" v-if="!errorFlag">
寰俊鎺堟潈涓�
<span class="dots">
<span class="dot"></span>
@@ -15,6 +16,7 @@
<span class="dot"></span>
</span>
</div>
+ <div v-else class="sub-text">鎺堟潈澶辫触</div>
</div>
</div>
</template>
@@ -30,7 +32,8 @@
},
data() {
return {
-
+ redirectCount: 0,
+ errorMessage: ''
}
},
watch() {
@@ -49,10 +52,17 @@
this.authSuccess()
} else {
this.redirectUrl()
+ this.redirectCount = localStorage.getItem('weChatRedirectCount') || 0
+ this.redirectCount = Number(this.redirectCount) + 1
+ localStorage.setItem('weChatRedirectCount', redirectCount)
}
},
methods: {
redirectUrl() {
+ if (this.redirectCount > 1) {
+ this.errorFlag = true
+ return
+ }
const params = {
targetId: '',
redirectUrl: encodeURIComponent(window.location.href),
@@ -61,6 +71,7 @@
if (res.data.code == 0) {
window.location.replace(res.data.data)
} else {
+ this.errorFlag = true
this.$message.error(res.data.msg)
}
})
@@ -79,6 +90,8 @@
const path = localStorage.getItem('verify_url')
if (path) {
this.$router.replace(path)
+ } else {
+ this.$router.replace('/h5/noVerAccess')
}
} else {
this.$router.replace({
--
Gitblit v1.8.0