jiangping
2024-12-26 6c5165f73c90fbd4e22e4f9a39497b5a25ee37f9
h5/pages/staff/index.vue
@@ -53,7 +53,8 @@
      stagingHead,
      wxAuthorize,
      refreshToken,
      app_url
      app_url,
      delHkUserOpenid
   } from '@/api'
   export default {
      data() {
@@ -144,7 +145,7 @@
               } else if (yw == 7) {
                  this.jump('/pages/staff/task/driver?id=' + ywinfo.ywid)
               } else if (yw == 5) {
                  this.jump('/pages/staff/vehicle/index')
                  this.jump('/pages/staff/vehicle/sendACarDetail')
               }
            }, 100)
         }
@@ -166,17 +167,31 @@
         },
         checkAuth(str) {
            const permissions = this.userInfo.permissions
            const permissions = this.userInfo.permissions || []
            return permissions.indexOf(str) > -1
         },
         loginOut() {
            logoutPost({
               isH5: 1
            }).then(res => {
               this.$store.commit('empty')
               setTimeout(() => {
                  window.location.href = app_url
               }, 300)
            }).then(res => {
               const userInfo = uni.getStorageSync('userInfo')
               const openId = uni.getStorageSync('openId')
               this.$store.commit('empty')
               if(openId){
                  delHkUserOpenid({
                     userName: userInfo.username,
                     openId
                  }).then(ress => {
                     setTimeout(() => {
                        window.location.href = app_url
                     }, 300)
                  })
               }else{
                  setTimeout(() => {
                     window.location.href = app_url
                  }, 300)
               }
            })
         },
         getTaskInfo() {