Commit a5a74a5b authored by 张伯涛's avatar 张伯涛

ar参数

parent 90dfc7b9
...@@ -89,8 +89,10 @@ export default { ...@@ -89,8 +89,10 @@ export default {
const serverIP = localStorage.getItem("SERVEICE"); const serverIP = localStorage.getItem("SERVEICE");
if (serverIP === "http://192.168.1.252:8001" ) { if (serverIP === "http://192.168.1.252:8001" ) {
this.arIp = this.raData.ip; this.arIp = this.raData.ip;
this.domainId = 0;
} else { } else {
this.arIp = "111.160.132.74"; this.arIp = "111.160.132.74";
this.domainId = 103;
} }
const urlParams = new URLSearchParams(window.location.search); const urlParams = new URLSearchParams(window.location.search);
...@@ -108,7 +110,7 @@ export default { ...@@ -108,7 +110,7 @@ export default {
// const height = window.innerHeight-25; // const height = window.innerHeight-25;
// const protocolType = this.protocolType // const protocolType = this.protocolType
const protocolType = 'https' const protocolType = 'https'
const domainId = 103 const domainId = this.domainId
const title = 'AR车间' const title = 'AR车间'
this.control = new ARWebControl( this.control = new ARWebControl(
"ar-div", "ar-div",
...@@ -125,7 +127,9 @@ export default { ...@@ -125,7 +127,9 @@ export default {
// 程序挂载成功 // 程序挂载成功
window.addEventListener("ar_start", event => { window.addEventListener("ar_start", event => {
console.log('kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk') console.log('kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk')
setTimeout(function () {
this.videoLoading = false this.videoLoading = false
}, 3000);
}); });
window.addEventListener("ar_loaded", event => { window.addEventListener("ar_loaded", event => {
console.log('ar_loadedar_loadedar_loadedar_loadedar_loaded') console.log('ar_loadedar_loadedar_loadedar_loadedar_loaded')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment