From b94daf4ea357eafce26f37a1f0a799d55cbfa1a4 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期一, 24 二月 2025 16:38:21 +0800
Subject: [PATCH] ll
---
h5/pages/staff/index.vue | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/h5/pages/staff/index.vue b/h5/pages/staff/index.vue
index 20f1ebf..6cb007b 100644
--- a/h5/pages/staff/index.vue
+++ b/h5/pages/staff/index.vue
@@ -1,10 +1,10 @@
<template>
<view class="main_app">
<view class="title_wrap">
- <view class="name" v-if="userInfo.realname">{{ userInfo.realname || "" }}锛屾杩庣櫥褰曪綖</view>
+ <view class="name" v-if="userInfo.realname">{{ userInfo.realname || userInfo.username || "" }}锛屾杩庣櫥褰曪綖</view>
<view class="name" v-else>璇峰厛鐧诲綍</view>
<view class="btn" @click="loginOut">{{
- userInfo.realname ? "閫�鍑虹櫥褰�" : "鍘荤櫥褰�"
+ userInfo.username ? "璐﹀彿瑙g粦" : "鍘荤櫥褰�"
}}</view>
</view>
<view class="banner_wrap">
@@ -145,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/sendACarDetail')
+ this.jump('/pages/staff/vehicle/sendACarDetail?id=' + ywinfo.ywid)
}
}, 100)
}
@@ -167,7 +167,7 @@
},
checkAuth(str) {
- const permissions = this.userInfo.permissions
+ const permissions = this.userInfo.permissions || []
return permissions.indexOf(str) > -1
},
loginOut() {
@@ -226,9 +226,9 @@
width: 144rpx;
height: 56rpx;
border-radius: 36rpx;
- border: 1rpx solid $uni-color-primary;
+ border: 1rpx solid #B2B2B2;
font-size: 26rpx;
- color: $uni-color-primary;
+ color: #666666;
display: flex;
justify-content: center;
align-items: center;
--
Gitblit v1.9.3