1. 添加开关锁开始提示
2. 完善首页钥匙类型显示
This commit is contained in:
parent
932cab1a49
commit
2329997e8e
@ -125,6 +125,10 @@ export default {
|
|||||||
uni.vibrateLong()
|
uni.vibrateLong()
|
||||||
this.pending = true
|
this.pending = true
|
||||||
this.$refs.loading.open()
|
this.$refs.loading.open()
|
||||||
|
uni.showToast({
|
||||||
|
title: `正在尝试${type === 'close' ? '关' : '开'}锁……`,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
if(this.currentLockInfo.lockSetting.appUnlockOnline) {
|
if(this.currentLockInfo.lockSetting.appUnlockOnline) {
|
||||||
const result = await this.getNetToken()
|
const result = await this.getNetToken()
|
||||||
if(!result) {
|
if(!result) {
|
||||||
|
|||||||
@ -118,7 +118,7 @@ export const useLockStore = defineStore('lock', {
|
|||||||
this.lockTotal = data.total
|
this.lockTotal = data.total
|
||||||
for(let i = 0; i < data.groupList.length; i++) {
|
for(let i = 0; i < data.groupList.length; i++) {
|
||||||
for (let j = 0; j < data.groupList[i].lockList.length; j++) {
|
for (let j = 0; j < data.groupList[i].lockList.length; j++) {
|
||||||
if(data.groupList[i].lockList[j].keyType === 2 && data.groupList[i].lockList[j].keyStatus === 110401) {
|
if((data.groupList[i].lockList[j].keyType === 2 || data.groupList[i].lockList[j].keyType === 4) && data.groupList[i].lockList[j].keyStatus === 110401) {
|
||||||
const now = new Date().getTime()
|
const now = new Date().getTime()
|
||||||
const diffInMilliseconds = data.groupList[i].lockList[j].endDate - now
|
const diffInMilliseconds = data.groupList[i].lockList[j].endDate - now
|
||||||
const millisecondsPerDay = 24 * 60 * 60 * 1000
|
const millisecondsPerDay = 24 * 60 * 60 * 1000
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user