From e2525e1ed686dc305e562757c3a00b37ac3beec4 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期五, 21 六月 2024 16:24:32 +0800
Subject: [PATCH] time
---
h5/pages/staff/index.vue | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/h5/pages/staff/index.vue b/h5/pages/staff/index.vue
index aa3b76f..c1748bf 100644
--- a/h5/pages/staff/index.vue
+++ b/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>
@@ -87,7 +88,9 @@
},
onShow() {
- this.getTaskInfo()
+ if(this.userInfo && this.userInfo.name){
+ this.getTaskInfo()
+ }
},
methods: {
jump(path){
--
Gitblit v1.9.3