修改样式

This commit is contained in:
有果 2026-03-25 14:50:39 +08:00
parent bdefe87d9b
commit 2e5bdc34be

View File

@ -239,7 +239,16 @@
}" shape="circle"> }" shape="circle">
取消 取消
</uv-button> </uv-button>
<uv-button :customStyle="{
<uv-button v-if="[3, 7].includes(Number(state.selectItem?.lockTypeId))" @click="RemoteOpen" :customStyle="{
height: '86rpx',
background: '#FB322E',
color: '#fff',
fontSize: '32rpx',
}" color="#FB322E" shape="circle">
一键开锁
</uv-button>
<uv-button v-else @click="GetLockPwd" :customStyle="{
height: '86rpx', height: '86rpx',
background: '#FB322E', background: '#FB322E',
color: '#fff', color: '#fff',
@ -951,6 +960,30 @@ const cancelMoveOutRqt = (item) => {
} }
}) })
} }
//
function RemoteOpen() {
uni.showLoading({mask:true})
getLockApi.RemoteOpen({ lockMac: state.value.selectItem.lockMac,input: '',siteId:state.value.selectItem.siteId }).then(res => {
state.tryPWDCount++
if(res.data.isSuccess) {
uni.showToast({
title:t('door.UnlockSuccessful'),
duration:3000,
icon:'none'
})
uni.hideLoading()
} else {
uni.hideLoading()
uni.showToast({
title:res.data.message,
duration:3000,
icon:'none'
})
}
})
}
const lockPwd = ref('') const lockPwd = ref('')
// //
function GetLockPwd() { function GetLockPwd() {
@ -966,7 +999,7 @@ function GetLockPwd() {
}) })
} else { } else {
uni.hideLoading() uni.hideLoading()
lockPwd.value = res.data lockPwd.value = res.data.password
} }
}) })
} }
@ -1516,6 +1549,7 @@ onShow(() => {
.header { .header {
width: 100%; width: 100%;
padding: 20rpx; padding: 20rpx;
padding-bottom: 36rpx;
:deep(.uv-tabs__wrapper__nav__item) { :deep(.uv-tabs__wrapper__nav__item) {
height: 80rpx !important; height: 80rpx !important;