fix(视频): 更换webview在线地址

This commit is contained in:
风花一世月 2024-07-14 22:49:21 +08:00
parent 8383f214d9
commit e3fde71b2d
3 changed files with 16 additions and 4 deletions

View File

@ -2,8 +2,8 @@
"name" : "物联网可视化", "name" : "物联网可视化",
"appid" : "__UNI__604B8F1", "appid" : "__UNI__604B8F1",
"description" : "", "description" : "",
"versionName" : "1.0.26", "versionName" : "1.0.27",
"versionCode" : 1026, "versionCode" : 1027,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {

View File

@ -310,6 +310,13 @@
// "navigationStyle":"custom" // "navigationStyle":"custom"
// // #endif // // #endif
} }
},
{
"path": "video-webview",
"style": {
"navigationBarTitleText": "视频监控详情"
// "navigationStyle":"custom"
}
} }
] ]
} }
@ -395,6 +402,11 @@
"path": "pages/video/video-list", // "path": "pages/video/video-list", //
"query": "" //onLoad "query": "" //onLoad
}, },
{
"name": "视频监控webview", //
"path": "pages/video/video-webview", //
"query": "" //onLoad
},
{ {
"name": "消息", // "name": "消息", //
"path": "pages/tabbar/new", // "path": "pages/tabbar/new", //

View File

@ -15,7 +15,7 @@
isWebview:false, isWebview:false,
deviceObj:null, deviceObj:null,
channeList:[], channeList:[],
webviewUrl:'https://static-mp-e1ad9848-99ba-4f1e-84ca-72802ff6ff6e.next.bspapp.com/video-html/index.html' webviewUrl:'https://v2-test.gkiiot.com/video/web/h5/index.html'
} }
}, },
onLoad(option) { onLoad(option) {
@ -40,7 +40,7 @@
// }) // })
this.$nextTick(()=>{ this.$nextTick(()=>{
this.$set(this,'channeList',res.data.list); this.$set(this,'channeList',res.data.list);
let url = 'https://static-mp-e1ad9848-99ba-4f1e-84ca-72802ff6ff6e.next.bspapp.com/video-html/index.html?deviceObj=' + encodeURIComponent(JSON.stringify(this.deviceObj)) + '&channeList='+encodeURIComponent(JSON.stringify(channeList)) let url = 'https://v2-test.gkiiot.com/video/web/h5/index.html?deviceObj=' + encodeURIComponent(JSON.stringify(this.deviceObj)) + '&channeList='+encodeURIComponent(JSON.stringify(channeList))
this.$set(this,'webviewUrl',url); this.$set(this,'webviewUrl',url);
this.isWebview = true; this.isWebview = true;
}) })