From e8e0e31be5f27e657de6f07f57a20fdf70e9bb9b Mon Sep 17 00:00:00 2001 From: liukangdong <898885815@qq.com> Date: 星期一, 17 六月 2024 18:12:20 +0800 Subject: [PATCH] '' --- 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