修改接口

master
夜笙歌 10 months ago
parent 7d51d07b77
commit 260bedb0d6

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

Loading…
Cancel
Save