diff --git a/pages/catEye/catEye.vue b/pages/catEye/catEye.vue index 1845169..66d25a5 100644 --- a/pages/catEye/catEye.vue +++ b/pages/catEye/catEye.vue @@ -7,9 +7,9 @@ {{ $bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0] ? catEyeMode[ - $bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0]?.catEyeMode - 1 + $bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0]?.catEyeMode ].name - : '' + : "" }} @@ -75,7 +75,7 @@ const value = computed(() => { const list = [] if ($bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0]) { - list.push($bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0].catEyeMode - 1) + list.push($bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0].catEyeMode) if ($bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0].catEyeMode === 4) { if ( $bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0].catEyeModeConfig diff --git a/pages/catEyeMode/catEyeMode.vue b/pages/catEyeMode/catEyeMode.vue index 58eeb77..d9f3167 100644 --- a/pages/catEyeMode/catEyeMode.vue +++ b/pages/catEyeMode/catEyeMode.vue @@ -3,6 +3,58 @@ + + + + + {{ catEyeMode[0].name }}: + + 适合门口较为安全的环境。 + 仅发生特定事件才录像,并可查看实时画面。 + 一般情况下,满电可使用7-8个月 + + + 查看 + + + {{ catEyeMode[0].name }}: + {{ catEyeMode[1].name }}: - 适合门口较为安全的环境。 - 仅发生特定事件才录像,并可查看实时画面。 - 一般情况下,满电可使用7-8个月 有人逗留或发生特定事件才录像,可随时查看实时画面。 + 一般情况下,满电可使用5~6个月。 查看 - {{ catEyeMode[1].name }}:{{ catEyeMode[2].name }}: - 有人逗留或发生特定事件才录像,可随时查看实时画面。 - 一般情况下,满电可使用5~6个月。 适合门口人员复杂、较不安全的环境。 + 有人出现就录像,可随时查看实时画面。 + 一般情况下,满电可使用2~4个月。 查看 {{ catEyeMode[2].name }}: - - 适合门口人员复杂、较不安全的环境。 - 有人出现就录像,可随时查看实时画面。 - 一般情况下,满电可使用2~4个月。 - - - 查看 - - - - - - - - {{ catEyeMode[3].name }}: { const list = [] if ($bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0]) { - list.push($bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0].catEyeMode - 1) + list.push($bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0].catEyeMode) if ($bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0].catEyeMode === 4) { if ( $bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0].catEyeModeConfig @@ -331,7 +331,7 @@ const toCustom = () => { if ( !$bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0] || - $bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0].catEyeMode !== 4 + $bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0].catEyeMode !== 3 ) { uni.showToast({ title: '请先选择自定义模式', @@ -352,7 +352,7 @@ const updateCatEyeConfig = index => { if ( $bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0] && - $bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0].catEyeMode === index + 1 + $bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0].catEyeMode === index ) { return } @@ -363,7 +363,7 @@ type: 'catEyeConfig', params: [ { - catEyeMode: index + 1, + catEyeMode: index, catEyeModeConfig: $bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0] ? $bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0].catEyeModeConfig : { diff --git a/pages/customCatEye/customCatEye.vue b/pages/customCatEye/customCatEye.vue index 0a222d1..e90cc89 100644 --- a/pages/customCatEye/customCatEye.vue +++ b/pages/customCatEye/customCatEye.vue @@ -105,8 +105,8 @@ const value = computed(() => { const list = [] if ($bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0]) { - list.push($bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0].catEyeMode - 1) - if ($bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0].catEyeMode === 4) { + list.push($bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0].catEyeMode) + if ($bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0].catEyeMode === 3) { if ( $bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0].catEyeModeConfig .recordStartTime === 0 && diff --git a/pages/openDirection/openDirection.vue b/pages/openDirection/openDirection.vue index 37e4b19..34ffcf3 100644 --- a/pages/openDirection/openDirection.vue +++ b/pages/openDirection/openDirection.vue @@ -60,7 +60,7 @@ const pending = ref(false) onMounted(() => { - value.value = $bluetooth.currentLockSetting.lockSettingInfo.openDirection + value.value = $bluetooth.currentLockSetting.lockSettingInfo.openDirectionValue }) const updateValue = async val => { diff --git a/pages/passageMode/passageMode.vue b/pages/passageMode/passageMode.vue index 0a1555e..1de220b 100644 --- a/pages/passageMode/passageMode.vue +++ b/pages/passageMode/passageMode.vue @@ -201,7 +201,7 @@ autoUnlock: autoUnlock.value } - if (check.value && data.startDate >= data.endDate) { + if (!data.isAllDay && check.value && data.startDate >= data.endDate) { uni.showToast({ title: '开始时间不能大于结束时间', icon: 'none' diff --git a/pages/realTimePicture/realTimePicture.vue b/pages/realTimePicture/realTimePicture.vue index 783d46a..d19023a 100644 --- a/pages/realTimePicture/realTimePicture.vue +++ b/pages/realTimePicture/realTimePicture.vue @@ -108,7 +108,7 @@ const value = computed(() => { const list = [] if ($bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0]) { - list.push($bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0].catEyeMode - 1) + list.push($bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0].catEyeMode) if ($bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0].catEyeMode === 4) { if ( $bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0].catEyeModeConfig diff --git a/pages/setting/setting.vue b/pages/setting/setting.vue index 49ff5a1..a2afb14 100644 --- a/pages/setting/setting.vue +++ b/pages/setting/setting.vue @@ -5,7 +5,9 @@ @click="toJump('lockInfo')" > 基本信息 - + + + 面容开锁 - + + + 消息提醒 - + + + 猫眼设置 - + + + 开门方向设置 - + + + 电机功率设置 - + + + 锁时间 - + + + 上传数据 - + + + 锁升级 - + + + 删除 + >删除 + { const list = [] if ($bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0]) { - list.push($bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0].catEyeMode - 1) + list.push($bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0].catEyeMode) if ($bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0].catEyeMode === 4) { if ( $bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0].catEyeModeConfig diff --git a/stores/bluetooth.js b/stores/bluetooth.js index 499c992..1fde736 100644 --- a/stores/bluetooth.js +++ b/stores/bluetooth.js @@ -551,10 +551,10 @@ export const useBluetoothStore = defineStore('ble', { }) break case subCmdIds.updateSetting: - that.updateCurrentLockInfo({ - ...that.currentLockInfo, - token: decrypted.slice(5, 9) - }) + // that.updateCurrentLockInfo({ + // ...that.currentLockInfo, + // token: decrypted.slice(5, 9) + // }) characteristicValueCallback({ code: decrypted[2] }) @@ -2932,6 +2932,7 @@ export const useBluetoothStore = defineStore('ble', { ) contentArray.set(md5Array, withParams ? 71 + params.length : 71) + console.log('加密前:', Array.from(contentArray)) const cebArray = sm4.encrypt(contentArray, this.currentLockInfo.commKey, { mode: 'ecb',