diff --git a/api/monitorList.js b/api/monitorList.js new file mode 100644 index 0000000..120ad05 --- /dev/null +++ b/api/monitorList.js @@ -0,0 +1,11 @@ +import request from '@/utils/request' +import apiUrl from '@/utils/api' + +// 根据用户ID查询门店列表 +export function listMonitorData(id) { + return request({ + baseUrl: apiUrl, + url: `/mall/device/getDevice/${id}`, + method: 'get' + }) +} diff --git a/manifest.json b/manifest.json index afd0a1b..677977b 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name" : "海驰24", - "appid" : "__UNI__F8B45C3", + "appid" : "__UNI__7302921", "description" : "111", "versionName" : "1.2.6", "versionCode" : 106, diff --git a/nativeplugins/ry-ipc-video/android/ipc-video-plugin-release.aar b/nativeplugins/ry-ipc-video/android/ipc-video-plugin-release.aar index 3c62e94..127b991 100644 Binary files a/nativeplugins/ry-ipc-video/android/ipc-video-plugin-release.aar and b/nativeplugins/ry-ipc-video/android/ipc-video-plugin-release.aar differ diff --git a/nativeplugins/ry-ipc-video/android/ry-ipc-video.aar b/nativeplugins/ry-ipc-video/android/ry-ipc-video.aar deleted file mode 100644 index cc58f06..0000000 Binary files a/nativeplugins/ry-ipc-video/android/ry-ipc-video.aar and /dev/null differ diff --git a/package_a/monitor/monitor.nvue b/package_a/monitor/monitor.nvue index 6d1ec68..2afcfde 100644 --- a/package_a/monitor/monitor.nvue +++ b/package_a/monitor/monitor.nvue @@ -38,26 +38,33 @@ 设备类型: - 单体(IPC) - 主机(NVR) + 单体(IPC) + 主机(NVR) - + 通道: - - CH1 - CH2 - CH3 - CH4 - + + + + + CH{{ index + 1 }} + + + 清晰度: - 高清 - 标清 + + 标清 @@ -77,12 +84,13 @@ export default { data() { return { - deviceUid: 'HLTY036190SYNSK', // 默认使用你 Demo 里的测试 UID + deviceUid: '', // 默认使用你 Demo 里的测试 UID isPlaying: false, isRecording: false, // 是否正在录像 statusMsg: '等待操作', currentChannel: 0, // 0对应CH1, 1对应CH2... - currentStreamType: 1, // 1为高清(主码流),2为标清(子码流) + totalChannel: 1, // 设备的总通道数,默认为1,由上个页面传过来 + currentStreamType: 1, // 0为高清(主码流),1为标清(子码流) isNvr: true // 是否为 NVR 设备 } }, @@ -90,10 +98,18 @@ if (options && options.uid) { this.deviceUid = options.uid; } + // 接收总通道数 + if (options && options.channel) { + this.totalChannel = parseInt(options.channel); + // 如果通道数不合理(比如0或者NaN),给个默认值 + if (!this.totalChannel || this.totalChannel <= 0) { + this.totalChannel = 1; + } + } // 如果上个页面传了 isNvr 参数,这里可以接收 if (options && typeof options.isNvr !== 'undefined') { // options.isNvr 通常传过来是字符串 'true' 或 'false' - this.isNvr = options.isNvr === 'true'; + this.isNvr = options.isNvr; } }, onUnload() { @@ -373,6 +389,14 @@ flex-direction: row; flex: 1; } +.channel-scroll { + flex: 1; + flex-direction: row; +} +.channel-group { + flex-direction: row; + padding-bottom: 10rpx; /* 预留一点底部空间,防止被遮挡 */ +} .option-btn { padding: 10rpx 20rpx; font-size: 26rpx; diff --git a/package_a/monitorList/monitorList.vue b/package_a/monitorList/monitorList.vue new file mode 100644 index 0000000..5e75806 --- /dev/null +++ b/package_a/monitorList/monitorList.vue @@ -0,0 +1,227 @@ + + + + + diff --git a/package_a/playback/playback.nvue b/package_a/playback/playback.nvue index 4ed1c85..85c9f10 100644 --- a/package_a/playback/playback.nvue +++ b/package_a/playback/playback.nvue @@ -33,10 +33,26 @@ 设备类型: - 单体(IPC) - 主机(NVR) + 单体(IPC) + 主机(NVR) + + 通道: + + + + + CH{{ index + 1 }} + + + + @@ -62,27 +78,34 @@