| | |
| | | <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> |
| | |
| | | <span class="dot"></span> |
| | | </span> |
| | | </div> |
| | | <div v-else class="sub-text">授权失败</div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | |
| | | redirectCount: 0, |
| | | errorMessage: '' |
| | | } |
| | | }, |
| | | watch() { |
| | |
| | | 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), |
| | |
| | | if (res.data.code == 0) { |
| | | window.location.replace(res.data.data) |
| | | } else { |
| | | this.errorFlag = true |
| | | this.$message.error(res.data.msg) |
| | | } |
| | | }) |
| | |
| | | const path = localStorage.getItem('verify_url') |
| | | if (path) { |
| | | this.$router.replace(path) |
| | | } else { |
| | | this.$router.replace('/h5/noVerAccess') |
| | | } |
| | | } else { |
| | | this.$router.replace({ |