修复密码与电子钥匙显示bug

This commit is contained in:
范鹏 2024-09-05 17:23:28 +08:00
parent a0757c7c52
commit 3ba74c1c21
6 changed files with 5 additions and 4 deletions

View File

@ -18,7 +18,8 @@
<up-swipe-action-item ref="swipeItem" :options="options" v-for="(key, index) in keyList"
:key="key.keyboardPwdId" :threshold="50" @click="deleteKey(key)">
<view class="key" @click="toKeyDetail(key)">
<image class="key-left" :src="key.headUrl" mode="aspectFill"></image>
<image class="key-left" :src="key.headUrl === '' ? '/static/images/icon_user.png' : key.headUrl"
mode="aspectFill"></image>
<view class="key-right">
<view style="display: flex;">
<view class="key-right-top">{{ key.keyName }}</view>
@ -338,7 +339,7 @@ page {
width: 574rpx;
.key-right-top {
max-width: 450rpx;
max-width: 400rpx;
font-size: 32rpx;
font-weight: bold;
padding-bottom: 6rpx;

View File

@ -18,7 +18,7 @@
<up-swipe-action-item ref="swipeItem" :options="options" v-for="(password, index) in passwordList"
:key="password.keyboardPwdId" :threshold="50" @click="deletePassword(password)">
<view class="password" @click="toPasswordDetail(password)">
<image class="password-left" src="/static/images/icon_lock_transparent.png" mode="aspectFill"></image>
<image class="password-left" src="/static/images/icon_password.png" mode="aspectFill"></image>
<view class="password-right">
<view style="display: flex; align-items: center">
<view class="password-right-top">{{ password.keyboardPwdName }}</view>

BIN
static/images/icon_password.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
static/images/icon_user.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

BIN
static/images/img.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -107,7 +107,7 @@ export const useLockStore = defineStore('lock', {
},
getKeyStatus(keyStatus) {
if(keyStatus === 110401) {
return '正常'
return ''
} else if(keyStatus === 110403) {
return '未生效'
} else if(keyStatus === 110402) {