Compare commits

..

No commits in common. "master" and "wuyanfu" have entirely different histories.

14 changed files with 862 additions and 897 deletions

View File

@ -2,7 +2,7 @@
#开发环境
NODE_ENV:"production"
# 页面标题
VUE_APP_TITLE = 消防训练基地
VUE_APP_TITLE = 汉邦唐消防训练基地
# 网关地址
VUE_APP_GATEWAY_URL="/dev-api"
# UE4服务地址

View File

@ -2,7 +2,7 @@
#开发环境
NODE_ENV:"production"
# 页面标题
VUE_APP_TITLE = 消防训练基地
VUE_APP_TITLE = 汉邦唐消防训练基地
# 网关地址
VUE_APP_GATEWAY_URL="/dev-api"
# UE4服务地址
@ -18,4 +18,4 @@ VUE_APP_REMOTES_URL="http://119.45.158.12/common/"
# 当前应用部署地址
VUE_APP_EXPOSES_URL=""
# nginx路径
PUB_PATH:'/trainingbase/'
PUB_PATH:'/trainingbase/'

946
public/ac.min.js vendored

File diff suppressed because one or more lines are too long

763
src/assets/ac.min.js vendored

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -1,7 +1,7 @@
<template>
<div class="header-box">
<div class="logo">
<img src="~@/assets/img/logo.png" height="24" alt="">
<img src="~@/assets/img/logo.png" alt="">
<div>{{currentPage.label}}</div>
</div>
<div class="nav-box" :style="{width:currentPage.children.length<=5?currentPage.children.length*180+'px':5*180+'px'}" v-if="currentPage.children.length>1" @mouseenter="showArrow=true" @mouseleave="showArrow=false">
@ -54,8 +54,8 @@ export default class HeaderComponent extends Vue {
public timer;
public showPageList = false;
public pageList = pageListData;
public currentPage = JSON.parse(localStorage.getItem("currentPage-train") as any) || this.pageList[0];
public currentNav = localStorage.getItem("currentNav-train") || this.currentPage.children[0].value;
public currentPage = JSON.parse(localStorage.getItem("currentPage") as any) || this.pageList[0];
public currentNav = localStorage.getItem("currentNav") || this.currentPage.children[0].value;
public showArrow = false;
public showContent = true;
@ -87,9 +87,9 @@ export default class HeaderComponent extends Vue {
}
public selectPage(data){
this.currentPage = data;
localStorage.setItem("currentPage-train",JSON.stringify(data))
localStorage.setItem("currentPage",JSON.stringify(data))
this.currentNav = data.value;
localStorage.setItem("currentNav-train",data.value)
localStorage.setItem("currentNav",data.value)
this.navChange()
this.showPageList = false;
this.navLeft = 0;
@ -101,7 +101,7 @@ export default class HeaderComponent extends Vue {
public selectNav(data){
this.currentNav = data.value;
localStorage.setItem("currentNav-train",data.value)
localStorage.setItem("currentNav",data.value)
this.navChange()
}
@ -129,8 +129,8 @@ export default class HeaderComponent extends Vue {
beforeDestory(){
clearInterval(this.timer);
this.timer = null;
localStorage.removeItem("currentPage-train")
localStorage.removeItem("currentNav-train")
localStorage.removeItem("currentPage")
localStorage.removeItem("currentNav")
}
}

View File

@ -1,5 +1,5 @@
export default [{
label: "消防训练基地",
label: "汉邦唐消防训练基地",
value: "xf",
children: [{
label: "首页",

View File

@ -1,7 +1,7 @@
import MarkerOption from '@/models/marker.option.js'
import PolygonOption from '@/models/polygon.option.js';
import * as acapi from '../../public/ac.min.js'
import * as acapi from '../assets/ac.min.js'
// import acapi from 'ac.min.js'
export default class PlayerUtils{
public api:any;
@ -9,7 +9,7 @@ export default class PlayerUtils{
const player = new acapi.DigitalTwinPlayer(process.env.VUE_APP_PALYER_URL,{
domId,
iid,
// reset:true,
reset:true,
apiOptions:{
onReady: this.onReady,
onLog: this.onLog, //可选参数,日志输出回调函数

View File

@ -162,14 +162,14 @@ export default class BaseComponent extends Vue {
coordinateType:layer.coordinateType?layer.coordinateType:0,
displayMode:2,
imagePath:layer.url || layer.urls[item.type],
imageSize:item.model?[30*1.5,30*1.5]:[48*1.5,48*1.5],
imageSize:item.model?[30,30]:[48,48],
popupSize:[480,388],
popupOffset:[50,0],
autoHidePopupWindow:false,
// popupURL:,
lineSize:item.hasPop?[0,0]:[2,40],
useTextAnimation: false,
lineOffset:item.hasPop?[0,0]:[24*1.5,0],
lineOffset:item.hasPop?[0,0]:[24,0],
autoHeight:true,
})
})

View File

@ -1,13 +1,13 @@
<div class="overview-container">
<!-- <MapComponent v-show="!showLoading" id="map" @onLoaded="getMap" @onHandleChange="handleChange"></MapComponent>-->
<!-- <div v-show="showLoading" class="loading">-->
<!-- <div>-->
<!-- <img src="~@/assets/img/loading.png" alt="">-->
<!-- 正在加载园区…-->
<!-- </div>-->
<MapComponent v-show="!showLoading" id="map" @onLoaded="getMap" @onHandleChange="handleChange"></MapComponent>
<div v-show="showLoading" class="loading">
<div>
<img src="~@/assets/img/loading.png" alt="">
正在加载园区…
</div>
<!-- </div>-->
</div>
<div class="bg-box left animate__animated">
<div class="panel-container">
<!-- 首页-->

View File

@ -20,10 +20,6 @@
height: 100%;
position: relative;
overflow: hidden;
background: url("../assets/img/3.png");
background-size: 100%;
background-repeat: no-repeat;
#map {
width: 100%;