diff --git a/api/setting.js b/api/setting.js
index d172262..cd1f0a9 100644
--- a/api/setting.js
+++ b/api/setting.js
@@ -127,3 +127,12 @@ export function addNoticeRequest(data) {
data
})
}
+
+// 更新猫眼设置
+export function updateCatEyeConfigRequest(data) {
+ return request({
+ url: '/lockSetting/updateCatEyeConfig',
+ method: 'POST',
+ data
+ })
+}
diff --git a/constant/catEyeMode.js b/constant/catEyeMode.js
new file mode 100644
index 0000000..ef6758e
--- /dev/null
+++ b/constant/catEyeMode.js
@@ -0,0 +1,26 @@
+export const catEyeMode = {
+ 0: {
+ name: '省电模式',
+ text1: '有人按门铃或发生异常事件时',
+ text2: '不录像',
+ text3: '/',
+ text4: '有人按门铃或发生异常事件时'
+ },
+ 1: {
+ name: '逗留抓拍模式',
+ text1: '有人出现、按门铃或发生异常事件时',
+ text2: '逗留达到10秒',
+ text3: '约1.5米',
+ text4: '随时'
+ },
+ 2: {
+ name: '实时监控模式',
+ text1: '有人出现、按门铃或发生异常事件时',
+ text2: '立即录像',
+ text3: '约1.5米',
+ text4: '随时'
+ },
+ 3: {
+ name: '自定义模式'
+ }
+}
diff --git a/pages.json b/pages.json
index f689b07..b0d5986 100644
--- a/pages.json
+++ b/pages.json
@@ -484,6 +484,34 @@
"navigationBarTitleText": "指纹列表",
"disableScroll": true
}
+ },
+ {
+ "path": "pages/catEyeMode/catEyeMode",
+ "style": {
+ "navigationBarTitleText": "猫眼工作模式",
+ "disableScroll": true
+ }
+ },
+ {
+ "path": "pages/customCatEye/customCatEye",
+ "style": {
+ "navigationBarTitleText": "自定义模式",
+ "disableScroll": true
+ }
+ },
+ {
+ "path": "pages/realTimePicture/realTimePicture",
+ "style": {
+ "navigationBarTitleText": "实时画面",
+ "disableScroll": true
+ }
+ },
+ {
+ "path": "pages/videoSlot/videoSlot",
+ "style": {
+ "navigationBarTitleText": "录像时段",
+ "disableScroll": true
+ }
}
],
"globalStyle": {
diff --git a/pages/catEye/catEye.vue b/pages/catEye/catEye.vue
index 16c4023..1845169 100644
--- a/pages/catEye/catEye.vue
+++ b/pages/catEye/catEye.vue
@@ -1,8 +1,245 @@
-
+
+
+ 猫眼工作模式
+
+
+ {{
+ $bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0]
+ ? catEyeMode[
+ $bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0]?.catEyeMode - 1
+ ].name
+ : ''
+ }}
+
+
+
+
+
+ 自动亮屏
+
+
+
+ 亮屏持续时间
+
+
+ {{ $bluetooth.currentLockSetting.lockSettingInfo.autoLightScreenTime }}秒
+
+
+
+
+
+ 逗留警告
+
+
+
+ 异常警告
+
+
+
-
+
diff --git a/pages/customCatEye/customCatEye.vue b/pages/customCatEye/customCatEye.vue
new file mode 100644
index 0000000..0a222d1
--- /dev/null
+++ b/pages/customCatEye/customCatEye.vue
@@ -0,0 +1,331 @@
+
+
+
+ 录像时段
+
+ {{ duration }}
+
+
+
+
+
+ 有人出现时录像
+ {{
+ recordingTimeObject.value === 0
+ ? '有人在门口出现不录像'
+ : recordingTimeObject.value === 1
+ ? '有人在门口出现立即录像'
+ : `有人在门口出现${recordingTimeObject.name}后开始录像`
+ }}
+ 有人按门铃时立即录像
+
+
+ {{ recordingTimeObject.name }}
+
+
+
+
+
+ 人体侦测距离
+ 有人出现在门口{{
+ detectionDistanceObject.name.match(/\d+(\.\d+)?米/)[0]
+ }}范围时启动录像
+
+
+ {{ detectionDistanceObject.name }}
+
+
+
+
+ 实时画面
+
+
+ {{
+ $bluetooth.currentLockSetting.lockSettingInfo.catEyeConfig[0].catEyeModeConfig
+ .realTimeMode === 0
+ ? '发生事件时查看'
+ : '实时查看'
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/realTimePicture/realTimePicture.vue b/pages/realTimePicture/realTimePicture.vue
new file mode 100644
index 0000000..783d46a
--- /dev/null
+++ b/pages/realTimePicture/realTimePicture.vue
@@ -0,0 +1,192 @@
+
+
+
+
+
+
+
+ 发生事件时查看
+
+
+ 仅当门锁发生事件或有人按门铃时,才能在门锁首页查看实时画面。
+
+
+
+
+
+
+
+
+ 实时查看
+
+
+ 指定时问内,无论门锁是否发生安全事件或有人按门铃,都能在门锁首页随时查看实时画面;电池续航时问将会缩短。
+
+
+
+
+
+
+
+
+
diff --git a/pages/videoSlot/videoSlot.vue b/pages/videoSlot/videoSlot.vue
new file mode 100644
index 0000000..0561ac9
--- /dev/null
+++ b/pages/videoSlot/videoSlot.vue
@@ -0,0 +1,256 @@
+
+
+
+
+
+
+
+ 全天
+
+
+
+
+
+
+
+
+
+ 自定义时间
+
+
+
+ 开始时间
+ {{ columns[0][startIndex[0]] }}:{{ columns[1][startIndex[1]] }}
+
+
+
+ 结束时间
+ {{ columns[0][endIndex[0]] }}:{{ columns[1][endIndex[1]] }}
+
+
+
+
+
+
+ 确定
+
+
+
+
+
+
+
diff --git a/stores/basic.js b/stores/basic.js
index b89cfb8..8ee3321 100644
--- a/stores/basic.js
+++ b/stores/basic.js
@@ -356,6 +356,26 @@ const pages = [
name: 'coercionFingerprint',
path: '/pages/coercionFingerprint/coercionFingerprint',
tabBar: false
+ },
+ {
+ name: 'catEyeMode',
+ path: '/pages/catEyeMode/catEyeMode',
+ tabBar: false
+ },
+ {
+ name: 'customCatEye',
+ path: '/pages/customCatEye/customCatEye',
+ tabBar: false
+ },
+ {
+ name: 'realTimePicture',
+ path: '/pages/realTimePicture/realTimePicture',
+ tabBar: false
+ },
+ {
+ name: 'videoSlot',
+ path: '/pages/videoSlot/videoSlot',
+ tabBar: false
}
]