|
|
@@ -7,7 +7,7 @@
|
|
|
<!-- 用户信息头部 -->
|
|
|
<view class="header">
|
|
|
<image class="avatar" src="/static/images/login/2.png" mode="aspectFill"></image>
|
|
|
- <text class="user-name">{{ userName }}</text>
|
|
|
+ <text class="user-name">{{ nickName }}({{ userName }})</text>
|
|
|
</view>
|
|
|
|
|
|
<!-- 信息卡片区域 -->
|
|
|
@@ -80,6 +80,7 @@
|
|
|
const userDept = ref<string>('')
|
|
|
const userRole = ref<string>('')
|
|
|
const isNewVersion = ref<boolean>(false)
|
|
|
+ const nickName = ref<string>('')
|
|
|
|
|
|
// 版本信息
|
|
|
const manifestVersion = manifest.versionName as string | null
|
|
|
@@ -333,18 +334,20 @@
|
|
|
checkVersion();
|
|
|
const userInfo = getUserInfo()
|
|
|
if (userInfo != null) {
|
|
|
-
|
|
|
- const nickName = userInfo['nickName'] as string | null
|
|
|
+ const nickNameRaw = userInfo['nickName'] as string | null
|
|
|
const phone = userInfo['phone'] as string | null
|
|
|
+ const userNameRaw = userInfo['userName'] as string | null
|
|
|
|
|
|
const isKey = getStoreIsKey();
|
|
|
if(isKey == "1"){
|
|
|
- userName.value = decryptAES(nickName ?? '')
|
|
|
+ userName.value = decryptAES(userNameRaw ?? '')
|
|
|
+ nickName.value = decryptAES(nickNameRaw ?? '')
|
|
|
if (phone != null && phone.length > 0) {
|
|
|
userPhone.value = decryptAES(phone ?? '')
|
|
|
}
|
|
|
}else{
|
|
|
- userName.value = nickName ?? ''
|
|
|
+ userName.value = userNameRaw ?? ''
|
|
|
+ nickName.value = nickNameRaw ?? ''
|
|
|
if (phone != null && phone.length > 0) {
|
|
|
userPhone.value = phone
|
|
|
}
|