修改大屏显示

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

@ -124,6 +124,7 @@ import boardIndex from './boardIndex'
let getDateIntervalFun = null let getDateIntervalFun = null
let isClickLink = null let isClickLink = null
let clickLinkTime = null
const isAMRT = () => { const isAMRT = () => {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const fun = () => { const fun = () => {
@ -587,285 +588,232 @@ export default {
// } // }
const viewer = new AMRT.Viewer('container', {offline: true}) const viewer = new AMRT.Viewer('container', {offline: true})
viewer.sceneManager.setBackground('http://10.100.72.10:8900/docs/img/bg.jpg') viewer.sceneManager.setBackground('http://10.100.72.10:8900/docs/img/bg.jpg')
viewer.controls.setTarget(321.2619851034551, -68.14384719285539, -14.54458931238174) viewer.controls.setTarget(285.6140415831262, -66.96447327588656, -15.909577343207037)
viewer.controls.setPosition(324.86156622859767, 1621.3543644968465, 1351.2054516306407) viewer.controls.setPosition(289.21362270826876, 1559.17755547545135, 1298.62483706445185)
let modelArr = [ let modelArr = [
{ // {
url:'../../models/01-01-01/', // url: '../../models/01-01-01/',
link:'' // link: '1'
}, // },
{ // {
url:'../../models/01-01-02/', // url: '../../models/01-01-02/',
link:'' // link: '2'
}, // },
{ // {
url:'../../models/01-01-03/', // url: '../../models/01-01-03/',
link:'' // link: '3'
}, // },
{ // {
url:'../../models/01-01-04/', // url: '../../models/01-01-04/',
link:'' // link: '4'
}, // },
{ // {
url:'../../models/01-01-05/', // url: '../../models/01-01-05/',
link:'' // link: '5'
}, // },
{ // {
url:'../../models/01-01-06/', // url: '../../models/01-01-06/',
link:'' // link: '6'
}, // },
{ // {
url:'../../models/01-02-01/', // url: '../../models/01-02-01/',
link:'' // link: '7'
}, // },
{ // {
url:'../../models/01-02-02/', // url: '../../models/01-02-02/',
link:'' // link: '8'
}, // },
{ // {
url:'../../models/01-02-03/', // url: '../../models/01-02-03/',
link:'' // link: '9'
}, // },
{ // {
url:'../../models/01-02-04/', // url: '../../models/01-02-04/',
link:'' // link: '10'
}, // },
{ // {
url:'../../models/01-02-05/', // url: '../../models/01-02-05/',
link:'' // link: '11'
}, // },
{ // {
url:'../../models/01-02-06/', // url: '../../models/01-02-06/',
link:'' // link: '12'
}, // },
{ // {
url:'../../models/01-02-07/', // url: '../../models/01-02-07/',
link:'' // link: '13'
}, // },
{ // {
url:'../../models/01-03/', // url: '../../models/01-03/',
link:'' // link: '14'
}, // },
{ // {
url:'../../models/01-04/', // url: '../../models/01-04/',
link:'' // link: '15'
}, // },
{ {
url: '../../models/01changfang/', url: '../../models/01changfang/',
link:'' link: '16'
}, },
{ // {
url:'../../models/02-01/', // url: '../../models/02-01/',
link:'' // link: '20'
}, // },
{ // {
url:'../../models/02-01-01/', // url: '../../models/02-01-01/',
link:'' // link: '21'
}, // },
{ // {
url:'../../models/02-01-02-01/', // url: '../../models/02-01-02-01/',
link:'' // link: '22'
}, // },
{ // {
url:'../../models/02-01-02-02/', // url: '../../models/02-01-02-02/',
link:'' // link: '23'
}, // },
{ // {
url:'../../models/02-01-03-01/', // url: '../../models/02-01-03-01/',
link:'' // link: '24'
}, // },
{ // {
url:'../../models/02-01-03-02/', // url: '../../models/02-01-03-02/',
link:'' // link: '25'
}, // },
{ // {
url:'../../models/02-02/', // url: '../../models/02-02/',
link:'' // link: '26'
}, // },
{ // {
url:'../../models/02-02-01/', // url: '../../models/02-02-01/',
link:'' // link: '27'
}, // },
{ // {
url:'../../models/02-02-02/', // url: '../../models/02-02-02/',
link:'' // link: '28'
}, // },
{ // {
url:'../../models/02-03/', // url: '../../models/02-03/',
link:'' // link: '29'
}, // },
{ // {
url:'../../models/02-03-1/', // url: '../../models/02-03-1/',
link:'' // link: '30'
}, // },
{ // {
url:'../../models/02-03-pt-01/', // url: '../../models/02-03-pt-01/',
link:'' // link: '31'
}, // },
{ // {
url:'../../models/02-03-pt-02/', // url: '../../models/02-03-pt-02/',
link:'' // link: '32'
}, // },
{ // {
url:'../../models/02-03-pt-03/', // url: '../../models/02-03-pt-03/',
link:'' // link: '33'
}, // },
{ // {
url:'../../models/02-03-pt-04/', // url: '../../models/02-03-pt-04/',
link:'' // link: '34'
}, // },
{ // {
url:'../../models/02-03-pt-05/', // url: '../../models/02-03-pt-05/',
link:'' // link: '35'
}, // },
{ // {
url:'../../models/02-03-pt-06/', // url: '../../models/02-03-pt-06/',
link:'' // link: '36'
}, // },
{ // {
url:'../../models/02-04/', // url: '../../models/02-04/',
link:'' // link: '37'
}, // },
{ // {
url:'../../models/02-04-01-01/', // url: '../../models/02-04-01-01/',
link:'' // link: '38'
}, // },
{ // {
url:'../../models/02-04-01-02/', // url: '../../models/02-04-01-02/',
link:'' // link: '39'
}, // },
{ // {
url:'../../models/02-04-02/', // url: '../../models/02-04-02/',
link:'' // link: '40'
}, // },
{ // {
url:'../../models/02-05/', // url: '../../models/02-05/',
link:'' // link: '41'
}, // },
{ // {
url:'../../models/02changfang/', // url: '../../models/02changfang/',
link:'' // link: '42'
}, // },
{ // {
url:'../../models/03-01-01/', // url: '../../models/03-01-01/',
link:'' // link: '51'
}, // },
{ // {
url:'../../models/03-01-02/', // url: '../../models/03-01-02/',
link:'' // link: '52'
}, // },
{ // {
url:'../../models/03-02-01/', // url: '../../models/03-02-01/',
link:'' // link: '53'
}, // },
{ // {
url:'../../models/03-02-02/', // url: '../../models/03-02-02/',
link:'' // link: '54'
}, // },
{ // {
url:'../../models/03-02-03/', // url: '../../models/03-02-03/',
link:'' // link: '55'
}, // },
{ // {
url:'../../models/03-02-04/', // url: '../../models/03-02-04/',
link:'' // link: '56'
}, // },
{ // {
url:'../../models/03-02-05/', // url: '../../models/03-02-05/',
link:'' // link: '57'
}, // },
{ // {
url:'../../models/03-03/', // url: '../../models/03-03/',
link:'' // link: '58'
}, // },
{ // {
url:'../../models/03-04/', // url: '../../models/03-04/',
link:'' // link: '59'
}, // },
{ // {
url:'../../models/03-05/', // url: '../../models/03-05/',
link:'' // link: '60'
}, // },
{ // {
url:'../../models/03-06/', // url: '../../models/03-06/',
link:'' // link: '61'
}, // },
{ // {
url:'../../models/03-07/', // url: '../../models/03-07/',
link:'' // link: '62'
}, // },
{ // {
url:'../../models/03-08/', // url: '../../models/03-08/',
link:'' // link: '63'
}, // },
{ // {
url:'../../models/03-09/', // url: '../../models/03-09/',
link:'' // link: '64'
}, // },
{ // {
url:'../../models/03-10/', // url: '../../models/03-10/',
link:'' // link: '65'
}, // },
// '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',
// 1-1
// '1733052342019952640',
// '1733052332985421824',
// '1733052278396555264',
// '1733052278291697664',
// '1733052273975758848',
// '1733052268669964288',
] ]
let num = 10 let num = 10
@ -882,7 +830,18 @@ export default {
setModel(num, num + 1) setModel(num, num + 1)
} }
m.on('click', function () { 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.operator.enabled = true
viewer.controls.enablePan = false viewer.controls.enablePan = false
viewer.controls.enableRotate = false viewer.controls.enableRotate = false
viewer.controls.enableZoom = false // viewer.controls.enableZoom = false
// setInterval(() => { setInterval(() => {
// console.log(viewer.controls.getView()) console.log(viewer.controls.getView())
//
// }, 1000) }, 1000)
// //
// viewer.controls.startAutoRotate(1) // viewer.controls.startAutoRotate(1)
@ -956,6 +915,7 @@ export default {
color: #d6eaed; color: #d6eaed;
letter-spacing: 10px; letter-spacing: 10px;
} }
.logo { .logo {
background-image: url("../../assets/board/logo.png"); background-image: url("../../assets/board/logo.png");
background-repeat: no-repeat; background-repeat: no-repeat;
@ -1118,6 +1078,7 @@ export default {
.whiteSpan { .whiteSpan {
color: white; color: white;
} }
.titleBg { .titleBg {
background-image: url("../../assets/model/model/titleBg.png"); background-image: url("../../assets/model/model/titleBg.png");
background-repeat: no-repeat; background-repeat: no-repeat;

Loading…
Cancel
Save