diff --git a/main.js b/main.js
index 76f8d808..5f35f937 100644
--- a/main.js
+++ b/main.js
@@ -93,11 +93,11 @@ if (process.env.NODE_ENV === 'development') {
} else {
// 生产环境
console.log('生产环境')
- Vue.prototype.url_config = 'http://117.146.73.156:9809/'// 中新建项目
- Vue.prototype.work_url = 'http://117.146.73.156:19997'// 工作流地址 通用
+ // Vue.prototype.url_config = 'http://117.146.73.156:9809/'// 中新建项目
+ // Vue.prototype.work_url = 'http://117.146.73.156:19997'// 工作流地址 通用
// Vue.prototype.url_config = 'http://121.37.106.37:9809/' // 测试环境
- // Vue.prototype.url_config = 'http://101.43.164.214:11111/'
- // Vue.prototype.work_url = 'http://101.43.164.214:11131'// 工作流地址 通用
+ Vue.prototype.url_config = 'http://101.43.164.214:11111/'
+ Vue.prototype.work_url = 'http://101.43.164.214:11131'// 工作流地址 通用
// Vue.prototype.url_config = 'http://10.168.1.105:11111/' // 线上地址
// Vue.prototype.url_config = 'http://10.168.1.104:11111/' // 线上地址
// Vue.prototype.url_config = 'http://47.93.215.234:9809/' // 鞍钢线上地址(弃用)
diff --git a/manifest.json b/manifest.json
index da9aeefd..34145834 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
"name" : "智慧安全", //中建四局
"appid" : "__UNI__4AA4101",
"description" : "",
- "versionName" : "1.3.6",
- "versionCode" : 136,
+ "versionName" : "1.3.8",
+ "versionCode" : 138,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
diff --git a/pages/videoManage/playVideo.vue b/pages/videoManage/playVideo.vue
index f4f05b48..2d4232c5 100644
--- a/pages/videoManage/playVideo.vue
+++ b/pages/videoManage/playVideo.vue
@@ -7,7 +7,21 @@
-
+
+
+
+
+
+
+
+
+
+
+
{{videoInfo.videoName}}
@@ -26,7 +40,7 @@
-
+
视频回放
@@ -45,6 +59,16 @@
videoFlag: false,
typeName: "",
videoConfig:{},
+ accessToken: "",
+ webviewStyles: {
+ height: '225px',
+ width: '100%'
+ },
+ webviewConfig: {
+ progress: false, // 是否显示进度条
+ scalable: false // 是否允许缩放
+ },
+ pageTop: 44
};
},
onLoad(options) {
@@ -58,6 +82,11 @@
}
this.getUseProjectVideoConfig();
},
+ onReady(){
+ this.$nextTick(() => {
+ this.setHeight()
+ })
+ },
computed: {
playUrlFilter(){
//
@@ -69,9 +98,55 @@
// }
// console.log(url);
return this.url
+ },
+ isYsy(){
+ return this.videoInfo?.videoType == 1
+ },
+ ysyPlayUrl() {
+ // 萤石云播放地址
+ return `https://open.ys7.com/ezopen/h5/iframe?url=${this.playUrlFilter}&template=simple&autoplay=1&accessToken=${this.accessToken}`
}
},
methods:{
+ setHeight() {
+ if(!this.isYsy){
+ return
+ }
+ let height = 0; //定义动态的高度变量,如高度为定值,可以直接写
+ let statusbar = 0
+ uni.getSystemInfo({
+ //成功获取的回调函数,返回值为系统信息
+ success: (sysinfo) => {
+ statusbar = sysinfo.statusBarHeight;
+ height = sysinfo.windowHeight; //自行修改,自己需要的高度 此处如底部有其他内容,可以直接---(-50)这种
+ },
+ complete: () => {}
+ });
+ this.pageTop = statusbar + 44 + 'px'
+
+ // #ifdef APP-PLUS
+ let currentWebview = this.$scope.$getAppWebview(); //获取当前web-view
+ setTimeout(function() {
+ let wv = currentWebview.children()[0];
+
+ wv.setStyle({ //设置web-view距离顶部的距离以及自己的高度,单位为px
+ top: statusbar + 44 , //此处是距离顶部的高度,页面的头部
+ height: 225 , //webview的高度
+ scalable: false, //webview的页面是否可以缩放,双指放大缩小,
+ position: "static"
+ })
+ wv.addEventListener('loaded', (e) => {
+ console.log('loaded', e)
+ wv.setStyle({ //设置web-view距离顶部的距离以及自己的高度,单位为px
+ top: statusbar + 44 , //此处是距离顶部的高度,页面的头部
+ height: 225 , //webview的高度
+ scalable: false, //webview的页面是否可以缩放,双指放大缩小,
+ position: "static"
+ })
+ })
+ }, 100); //如页面初始化调用需要写延迟
+ // #endif
+ },
getUseProjectVideoConfig() {
var that = this
let requestData = {
@@ -115,7 +190,9 @@
success(res){
switch (that.videoInfo.videoType){
case 1:
- that.url=res.result.videoInfo.hdFlvAddress
+ // that.url=res.result.videoInfo.hdFlvAddress
+ that.url=res.result.videoInfo
+ that.accessToken = res.result.accessToken
break;
default:
that.url=res.result.videoInfo.url
@@ -389,4 +466,9 @@
// margin-top: -20px;
// margin-left: -22px;
// }
+
+// 添加web-view相关样式
+/deep/ web-view {
+ background-color: #000;
+}