From 423155b8134694c2f2e68f6d3f5239ba0541b0cf Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 31 十二月 2024 18:10:35 +0800
Subject: [PATCH] ll

---
 h5/pages/wdata/home.vue |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/h5/pages/wdata/home.vue b/h5/pages/wdata/home.vue
index 980e35b..8509eaa 100644
--- a/h5/pages/wdata/home.vue
+++ b/h5/pages/wdata/home.vue
@@ -52,7 +52,7 @@
 				let uri = encodeURIComponent(url)
 				let authURL =
 					`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appID}&redirect_uri=${uri}&response_type=code&scope=snsapi_base#wechat_redirect`
-				// window.location.href = authURL
+				window.location.href = authURL
 			}
 		},
 		methods: {
@@ -66,7 +66,7 @@
 				loginDriverWithCode({
 					phone,
 					code,
-					openid: this.$store.state.openId || '000'
+					openid: this.$store.state.openId || '111'
 				}).then(res => {
 					if (res && res.code == 200) {
 						if (res.data) {
@@ -74,9 +74,11 @@
 							getUserInfo().then(ress => {
 								this.$store.commit('setDriverInfo', ress.data)
 							})
-							uni.navigateTo({
-								url: '/pages/wdata/list'
-							})
+							setTimeout(() => {
+								uni.navigateTo({
+									url: '/pages/wdata/list'
+								})
+							}, 300)
 						}
 					}
 				})
@@ -89,7 +91,7 @@
 				sendSms({
 					phone: this.form.phone
 				}).then(res => {
-					this.countDown = 60
+					this.countDown = 10
 					setInterval(() => {
 						if (this.countDown == 0) return
 						this.countDown--

--
Gitblit v1.9.3