Browse Source

体育馆监控完成升级

lite
‘daijinzheng@xingtongworld.com’ 3 years ago
parent
commit
cf39e5b8b7
  1. 37
      src/views/ty/index.vue

37
src/views/ty/index.vue

@ -42,18 +42,19 @@
<div class="center">
<!-- v-for=" item in videoData" :key="item.key" -->
<!-- <div class="item" v-for=" item in videoData" :key="item.key">
<div class="item" v-for=" item in videoData" :key="item.key">
<video style="width: 68%;margin-top: 0.3rem;height: 70%;margin-left: 0.3rem;" :id="item.key" autoplay></video>
</div> -->
<div class="item" style="position: relative;">
<video style="width: 68%;height: 70%;position: absolute;top: 0.3rem;left: 0.3rem;" id="camera0" autoplay></video>
</div>
<!-- <div class="item" style="position: relative;">
<video style="width: 68%;height: 70%;position: absolute;top: 0.3rem;left: 0.3rem;" id="camera0"
autoplay></video>
</div>
<div class="item">
<video style="width: 68%;margin-top: 0.3rem;height: 70%;margin-left: 0.3rem;" id="camera1" autoplay></video>
</div>
<div class="item">
<video style="width: 68%;margin-top: 0.3rem;height: 70%;margin-left: 0.3rem;" id="camera2" autoplay></video>
</div>
</div> -->
</div>
<div class="right">
@ -724,6 +725,7 @@ export default {
var jsonParseJson = JSON.parse(baseviodejson);
console.log(jsonParseJson);
this.videoData = jsonParseJson
console.log(this.videoData);
// this.day_num = tmpdata.day.noRepeatInNum
// this.week_num_num = tmpdata.week.noRepeatInNum
// this.mon_num = tmpdata.month.noRepeatInNum
@ -945,10 +947,11 @@ export default {
//
init() {
let _that = this;
_that.getPubKey(function () {
//
var appkey = "29940726"; //appkey
var secret = _that.setEncrypt("SkTCnQdFbNW4Z2suNj8P"); //secret
var appkey = _that.videoData[0].appkey; //appkey
var secret = _that.setEncrypt(_that.videoData[0].secret); //secret
var ip = "192.168.66.13"; //IP
var playMode = 0; //0-1-
var port = 443; //HTTPS443
@ -984,8 +987,8 @@ export default {
let height = document.querySelector("#camera0").offsetHeight;
_that.oWebControl0.JS_Resize(width, height); // resize
console.log(oData);
console.log(width,height);
_that.getVideoFun('05edddc148b141c5930301af43154942')
console.log(width, height);
_that.getVideoFun(_that.videoData[0].cameraIndexCode)
});
});
},
@ -993,8 +996,8 @@ export default {
let _that = this;
this.getPubKey2(function () {
//
var appkey = "29940726"; //appkey
var secret = _that.setEncrypt2("SkTCnQdFbNW4Z2suNj8P"); //secret
var appkey = _that.videoData[1].appkey; //appkey
var secret = _that.setEncrypt2(_that.videoData[1].secret); //secret
var ip = "192.168.66.13"; //IP
var playMode = 0; //0-1-
var port = 443; //HTTPS443
@ -1030,8 +1033,8 @@ export default {
let height2 = document.querySelector("#camera1").offsetHeight;
_that.oWebControl1.JS_Resize(width2, height2); // resize
console.log(oData);
console.log(width2,height2);
_that.getVideoFun2('05edddc148b141c5930301af43154942')
console.log(width2, height2);
_that.getVideoFun2(_that.videoData[1].cameraIndexCode)
});
});
},
@ -1039,8 +1042,8 @@ export default {
let _that = this;
this.getPubKey3(function () {
//
var appkey = "29940726"; //appkey
var secret = _that.setEncrypt3("SkTCnQdFbNW4Z2suNj8P"); //secret
var appkey = _that.videoData[2].appkey; //appkey
var secret = _that.setEncrypt3(_that.videoData[2].secret); //secret
var ip = "192.168.66.13"; //IP
var playMode = 0; //0-1-
var port = 443; //HTTPS443
@ -1076,8 +1079,8 @@ export default {
let height3 = document.querySelector("#camera2").offsetHeight;
_that.oWebControl2.JS_Resize(width3, height3); // resize
console.log(oData);
console.log(width3,height3);
_that.getVideoFun3('05edddc148b141c5930301af43154942')
console.log(width3, height3);
_that.getVideoFun3(_that.videoData[2].cameraIndexCode)
});
});
},

Loading…
Cancel
Save