|
|
|
@ -4,7 +4,8 @@
|
|
|
|
|
|
|
|
|
|
<div id="container" class="container"></div>
|
|
|
|
|
<div class="titleBg"></div>
|
|
|
|
|
<div class="headTitle">澳柯玛智能制造中心</div>\
|
|
|
|
|
<div class="headTitle">澳柯玛智能制造中心</div>
|
|
|
|
|
\
|
|
|
|
|
<div class="time" id="time">{{ time }}</div>
|
|
|
|
|
<div class="date" id="date">{{ date }}</div>
|
|
|
|
|
<div class="logo"></div>
|
|
|
|
@ -606,7 +607,14 @@ export default {
|
|
|
|
|
viewer.sceneManager.setBackground('http://10.100.72.10:8900/docs/img/bg.jpg')
|
|
|
|
|
viewer.controls.setTarget(285.6140415831262, -66.96447327588656, -15.909577343207037)
|
|
|
|
|
viewer.controls.setPosition(289.21362270826876, 1559.17755547545135, 1298.62483706445185)
|
|
|
|
|
let num1 = 0
|
|
|
|
|
window.onresize = function () {
|
|
|
|
|
if (num1 === modelArr.length) {
|
|
|
|
|
viewer.renderManager.setLoop(true)
|
|
|
|
|
viewer.renderManager.setLoop(false)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let modelArr = [
|
|
|
|
|
{
|
|
|
|
@ -836,14 +844,18 @@ export default {
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
let num = 10
|
|
|
|
|
let num1 = 0
|
|
|
|
|
let num = 9
|
|
|
|
|
const toLoad = (val) => {
|
|
|
|
|
viewer.loadModel(val.url, {
|
|
|
|
|
background: false,
|
|
|
|
|
focus: false,
|
|
|
|
|
offline: true,
|
|
|
|
|
onLoad: function (m) {
|
|
|
|
|
onComplete: function (m) {
|
|
|
|
|
num1 += 1
|
|
|
|
|
if (num1 === modelArr.length) {
|
|
|
|
|
viewer.renderManager.setLoop(false)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num += 1
|
|
|
|
|
if (num < modelArr.length) {
|
|
|
|
@ -1140,6 +1152,7 @@ export default {
|
|
|
|
|
width: 100vw;
|
|
|
|
|
height: 3.21vw;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.cgtd1 {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 36%;
|
|
|
|
@ -1148,6 +1161,7 @@ export default {
|
|
|
|
|
font-size: 0.8vw;
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.cgtd2 {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 47.5%;
|
|
|
|
|