From b3059e1a596b4fb05a708f3c3ac0ff3bc369d06b Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期四, 12 十二月 2024 16:03:27 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/dmvisit
---
h5/pages/driver/index.vue | 23 ++++++++++++++++++++---
1 files changed, 20 insertions(+), 3 deletions(-)
diff --git a/h5/pages/driver/index.vue b/h5/pages/driver/index.vue
index ae867f4..29134b3 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,9 +147,12 @@
})
},
loginOut() {
- logoutPost({isH5: 1})
- this.$store.commit('empty')
- window.location.href = app_url
+ logoutPost({isH5: 1}).then(res => {
+ this.$store.commit('empty')
+ setTimeout(() => {
+ window.location.href = app_url
+ }, 300)
+ })
},
taskClick(item) {
const status = item.status
--
Gitblit v1.9.3