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 @@ - + 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 @@ + + + + + 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 @@ + + + + + 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 } ]