From 6739c54297cdfca25ddc4c5b25a74a53532da7c5 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期三, 11 十二月 2024 19:17:11 +0800
Subject: [PATCH] ll
---
h5/pages/driver/index.vue | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/h5/pages/driver/index.vue b/h5/pages/driver/index.vue
index 56e65be..74f39ce 100644
--- a/h5/pages/driver/index.vue
+++ b/h5/pages/driver/index.vue
@@ -111,6 +111,20 @@
driverInfo: uni.getStorageSync('driverInfo'),
}
+ },
+ onLoad() {
+ const ywinfo = uni.getStorageSync('ywinfo') || {}
+ if(ywinfo.ywid && ywinfo.type == 0){
+ setTimeout(() => {
+ uni.removeStorageSync('ywinfo')
+ }, 500)
+ const yw = ywinfo.yw
+ if(yw == 7){
+ this.jump('/pages/driver/reservedDetail?id=' + ywinfo.ywid)
+ }else if(yw == 8){
+ this.jump('/pages/driver/taskDetail?id=' + ywinfo.ywid)
+ }
+ }
},
onShow() {
this.initData()
@@ -133,7 +147,7 @@
})
},
loginOut() {
- logoutPost()
+ logoutPost({isH5: 1})
this.$store.commit('empty')
window.location.href = app_url
},
--
Gitblit v1.9.3