liukangdong
2024-06-21 e2525e1ed686dc305e562757c3a00b37ac3beec4
h5/pages/staff/index.vue
@@ -1,8 +1,9 @@
<template>
   <view class="main_app">
      <view class="title_wrap">
         <view class="name">{{ userInfo.realname || '' }},欢迎登录~</view>
         <view class="btn" @click="loginOut">退出登录</view>
         <view class="name" v-if="userInfo.realname">{{ userInfo.realname || '' }},欢迎登录~</view>
         <view class="name" v-else>请先登录</view>
         <view class="btn" @click="loginOut">{{ userInfo.realname ? '退出登录' : '去登录' }}</view>
      </view>
      <view class="banner_wrap">
         <view class="h1">安泰物流</view>
@@ -84,7 +85,12 @@
   },
   onLoad(){
      console.log('userInfo', this.userInfo);
      this.getTaskInfo()
   },
   onShow() {
      if(this.userInfo && this.userInfo.name){
         this.getTaskInfo()
      }
   },
   methods: {
      jump(path){