From 2de3b42e64456650740bd4ce9a013f196b3e693e Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 21 Apr 2021 17:11:12 +0800
Subject: [PATCH] 视频录取开始位置更换
---
src/page/index/logo.vue | 53 ++++++++++++++++++++++++++++-------------------------
1 files changed, 28 insertions(+), 25 deletions(-)
diff --git a/src/page/index/logo.vue b/src/page/index/logo.vue
index e7b5548..1dc459f 100644
--- a/src/page/index/logo.vue
+++ b/src/page/index/logo.vue
@@ -385,31 +385,7 @@
if (response.data.data.length > 0) {
that.deviceId = response.data.data[0].id;
that.form = response.data.data[0];
- newAxios
- .post(
- "/api_control",
- {},
- {
- params: {
- param: JSON.stringify({ PktType: "GetAccessToken" }),
- },
- }
- )
- .then((res) => {
- newAxios
- .get(
- `https://web.byisf.com:18000/GetPlayUrl?deviceCode=${that.form.serialNumber}&chl=${that.form.channelNumber}`
- )
- .then((result) => {
- axios({
- method: "post",
- url: `/api/blade-jfpts/rvideo/rVoids`,
- params: {
- url: result.data.data.flv,
- },
- }).then((resdata) => {});
- });
- });
+
if (
response.data.data[0].waringType == "紧急求救" &&
response.data.data[0].alarmId == userId
@@ -866,8 +842,35 @@
},
onDialogTableVisible() {
+ var that = this;
Recorder.getPermission().then(() => {});
this.videoConversationReal = true;
+
+ newAxios
+ .post(
+ "/api_control",
+ {},
+ {
+ params: {
+ param: JSON.stringify({ PktType: "GetAccessToken" }),
+ },
+ }
+ )
+ .then((res) => {
+ newAxios
+ .get(
+ `https://web.byisf.com:18000/GetPlayUrl?deviceCode=${that.form.serialNumber}&chl=${that.form.channelNumber}`
+ )
+ .then((result) => {
+ axios({
+ method: "post",
+ url: `/api/blade-jfpts/rvideo/rVoids`,
+ params: {
+ url: result.data.data.flv,
+ },
+ }).then((resdata) => {});
+ });
+ });
},
},
};
--
Gitblit v1.9.3