修改大屏显示

master
夜笙歌 11 months ago
parent 0e44ff2e4e
commit 10dc6ebd9f

@ -124,6 +124,7 @@ import boardIndex from './boardIndex'
let getDateIntervalFun = null
let isClickLink = null
let clickLinkTime = null
const isAMRT = () => {
return new Promise((resolve, reject) => {
const fun = () => {
@ -587,285 +588,232 @@ export default {
// }
const viewer = new AMRT.Viewer('container', {offline: true})
viewer.sceneManager.setBackground('http://10.100.72.10:8900/docs/img/bg.jpg')
viewer.controls.setTarget(321.2619851034551, -68.14384719285539, -14.54458931238174)
viewer.controls.setPosition(324.86156622859767, 1621.3543644968465, 1351.2054516306407)
viewer.controls.setTarget(285.6140415831262, -66.96447327588656, -15.909577343207037)
viewer.controls.setPosition(289.21362270826876, 1559.17755547545135, 1298.62483706445185)
let modelArr = [
// {
// url: '../../models/01-01-01/',
// link: '1'
// },
// {
// url: '../../models/01-01-02/',
// link: '2'
// },
// {
// url: '../../models/01-01-03/',
// link: '3'
// },
// {
// url: '../../models/01-01-04/',
// link: '4'
// },
// {
// url: '../../models/01-01-05/',
// link: '5'
// },
// {
// url: '../../models/01-01-06/',
// link: '6'
// },
// {
// url: '../../models/01-02-01/',
// link: '7'
// },
// {
// url: '../../models/01-02-02/',
// link: '8'
// },
// {
// url: '../../models/01-02-03/',
// link: '9'
// },
// {
// url: '../../models/01-02-04/',
// link: '10'
// },
// {
// url: '../../models/01-02-05/',
// link: '11'
// },
// {
// url: '../../models/01-02-06/',
// link: '12'
// },
// {
// url: '../../models/01-02-07/',
// link: '13'
// },
// {
// url: '../../models/01-03/',
// link: '14'
// },
// {
// url: '../../models/01-04/',
// link: '15'
// },
{
url:'../../models/01-01-01/',
link:''
url: '../../models/01changfang/',
link: '16'
},
{
url:'../../models/01-01-02/',
link:''
},
{
url:'../../models/01-01-03/',
link:''
},
{
url:'../../models/01-01-04/',
link:''
},
{
url:'../../models/01-01-05/',
link:''
},
{
url:'../../models/01-01-06/',
link:''
},
{
url:'../../models/01-02-01/',
link:''
},
{
url:'../../models/01-02-02/',
link:''
},
{
url:'../../models/01-02-03/',
link:''
},
{
url:'../../models/01-02-04/',
link:''
},
{
url:'../../models/01-02-05/',
link:''
},
{
url:'../../models/01-02-06/',
link:''
},
{
url:'../../models/01-02-07/',
link:''
},
{
url:'../../models/01-03/',
link:''
},
{
url:'../../models/01-04/',
link:''
},
{
url:'../../models/01changfang/',
link:''
},
{
url:'../../models/02-01/',
link:''
},
{
url:'../../models/02-01-01/',
link:''
},
{
url:'../../models/02-01-02-01/',
link:''
},
{
url:'../../models/02-01-02-02/',
link:''
},
{
url:'../../models/02-01-03-01/',
link:''
},
{
url:'../../models/02-01-03-02/',
link:''
},
{
url:'../../models/02-02/',
link:''
},
{
url:'../../models/02-02-01/',
link:''
},
{
url:'../../models/02-02-02/',
link:''
},
{
url:'../../models/02-03/',
link:''
},
{
url:'../../models/02-03-1/',
link:''
},
{
url:'../../models/02-03-pt-01/',
link:''
},
{
url:'../../models/02-03-pt-02/',
link:''
},
{
url:'../../models/02-03-pt-03/',
link:''
},
{
url:'../../models/02-03-pt-04/',
link:''
},
{
url:'../../models/02-03-pt-05/',
link:''
},
{
url:'../../models/02-03-pt-06/',
link:''
},
{
url:'../../models/02-04/',
link:''
},
{
url:'../../models/02-04-01-01/',
link:''
},
{
url:'../../models/02-04-01-02/',
link:''
},
{
url:'../../models/02-04-02/',
link:''
},
{
url:'../../models/02-05/',
link:''
},
{
url:'../../models/02changfang/',
link:''
},
{
url:'../../models/03-01-01/',
link:''
},
{
url:'../../models/03-01-02/',
link:''
},
{
url:'../../models/03-02-01/',
link:''
},
{
url:'../../models/03-02-02/',
link:''
},
{
url:'../../models/03-02-03/',
link:''
},
{
url:'../../models/03-02-04/',
link:''
},
{
url:'../../models/03-02-05/',
link:''
},
{
url:'../../models/03-03/',
link:''
},
{
url:'../../models/03-04/',
link:''
},
{
url:'../../models/03-05/',
link:''
},
{
url:'../../models/03-06/',
link:''
},
{
url:'../../models/03-07/',
link:''
},
{
url:'../../models/03-08/',
link:''
},
{
url:'../../models/03-09/',
link:''
},
{
url:'../../models/03-10/',
link:''
},
// {
// url: '../../models/02-01/',
// link: '20'
// },
// {
// url: '../../models/02-01-01/',
// link: '21'
// },
// {
// url: '../../models/02-01-02-01/',
// link: '22'
// },
// {
// url: '../../models/02-01-02-02/',
// link: '23'
// },
// {
// url: '../../models/02-01-03-01/',
// link: '24'
// },
// {
// url: '../../models/02-01-03-02/',
// link: '25'
// },
// {
// url: '../../models/02-02/',
// link: '26'
// },
// {
// url: '../../models/02-02-01/',
// link: '27'
// },
// {
// url: '../../models/02-02-02/',
// link: '28'
// },
// {
// url: '../../models/02-03/',
// link: '29'
// },
// {
// url: '../../models/02-03-1/',
// link: '30'
// },
// {
// url: '../../models/02-03-pt-01/',
// link: '31'
// },
// {
// url: '../../models/02-03-pt-02/',
// link: '32'
// },
// {
// url: '../../models/02-03-pt-03/',
// link: '33'
// },
// {
// url: '../../models/02-03-pt-04/',
// link: '34'
// },
// {
// url: '../../models/02-03-pt-05/',
// link: '35'
// },
// {
// url: '../../models/02-03-pt-06/',
// link: '36'
// },
// {
// url: '../../models/02-04/',
// link: '37'
// },
// {
// url: '../../models/02-04-01-01/',
// link: '38'
// },
// {
// url: '../../models/02-04-01-02/',
// link: '39'
// },
// {
// url: '../../models/02-04-02/',
// link: '40'
// },
// {
// url: '../../models/02-05/',
// link: '41'
// },
// {
// url: '../../models/02changfang/',
// link: '42'
// },
// '1733002676922355712',
// '1733002653367144448',
// '1733000805830758400',
// '1733000710250958848',
// '1733000650326937600',
// '1733000643133706240',
// '1733000491190849536',
// '1733000457527365632',
// '1733000436912361472',
// '1733000276484427776',
// '1733000223309041664',
// '1733000212462571520',
//
// '1733000038533173248',
// '1733000034217234432',
// '1732999987471716352',
// '1732999849172930560',
// '1732999837521154048',
// '1732999828495011840',
// '1732999786233204736',
// '1732999740666286080',
// '1732999667089805312',
// '1732999638983774208',
// '1732999634021912576',
// '1732999618410713088',
//
// '1732999607128035328',
// '1732999597858623488',
// '1732999559069700096',
// '1732999554745372672',
// '1732999550429433856',
// '1732999507391680512',
// '1732999493042966528',
// '1732999471010287616',
// '1732999442811981824',
// '1732999424952635392',
// '1732999411254038528',
// '1732999390441902080',
// '1732999384255303680',
// '1732999376583921664',
// '1732999305662435328',
// '1732999305557577728',
// '1732999301107421184',
// {
// url: '../../models/03-01-01/',
// link: '51'
// },
// {
// url: '../../models/03-01-02/',
// link: '52'
// },
// {
// url: '../../models/03-02-01/',
// link: '53'
// },
// {
// url: '../../models/03-02-02/',
// link: '54'
// },
// {
// url: '../../models/03-02-03/',
// link: '55'
// },
// {
// url: '../../models/03-02-04/',
// link: '56'
// },
// {
// url: '../../models/03-02-05/',
// link: '57'
// },
// {
// url: '../../models/03-03/',
// link: '58'
// },
// {
// url: '../../models/03-04/',
// link: '59'
// },
// {
// url: '../../models/03-05/',
// link: '60'
// },
// {
// url: '../../models/03-06/',
// link: '61'
// },
// {
// url: '../../models/03-07/',
// link: '62'
// },
// {
// url: '../../models/03-08/',
// link: '63'
// },
// {
// url: '../../models/03-09/',
// link: '64'
// },
// {
// url: '../../models/03-10/',
// link: '65'
// },
// 1-1
// '1733052342019952640',
// '1733052332985421824',
// '1733052278396555264',
// '1733052278291697664',
// '1733052273975758848',
// '1733052268669964288',
]
let num = 10
@ -882,7 +830,18 @@ export default {
setModel(num, num + 1)
}
m.on('click', function () {
console.log(val.url,val.link)
if (val.link) {
if (isClickLink === val.link) {
console.log(val.link)
isClickLink = null
} else {
clickLinkTime && clearTimeout(clickLinkTime);
isClickLink = val.link
clickLinkTime = setTimeout(() => {
isClickLink = null
}, 500)
}
}
})
}
})
@ -892,12 +851,12 @@ export default {
// viewer.operator.enabled = true
viewer.controls.enablePan = false
viewer.controls.enableRotate = false
viewer.controls.enableZoom = false
// viewer.controls.enableZoom = false
// setInterval(() => {
// console.log(viewer.controls.getView())
//
// }, 1000)
setInterval(() => {
console.log(viewer.controls.getView())
}, 1000)
//
// viewer.controls.startAutoRotate(1)
@ -956,6 +915,7 @@ export default {
color: #d6eaed;
letter-spacing: 10px;
}
.logo {
background-image: url("../../assets/board/logo.png");
background-repeat: no-repeat;
@ -1118,7 +1078,8 @@ export default {
.whiteSpan {
color: white;
}
.titleBg{
.titleBg {
background-image: url("../../assets/model/model/titleBg.png");
background-repeat: no-repeat;
background-size: 100% 100%;

Loading…
Cancel
Save