| | |
| | | } else { |
| | | // pc端 |
| | | // this.$router.replace('/large') |
| | | // this.$router.replace('/pcLayout') |
| | | this.$router.replace('/login') |
| | | |
| | | if (this.$route.path == '/pcLayout/default') { |
| | | this.$router.replace('/pcLayout') |
| | | } else { |
| | | this.$router.replace('/login') |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | if (r != null) return decodeURIComponent(r) |
| | | return null |
| | | }, |
| | | getQueryVariable (variable) { |
| | | var query = window.location.search.substring(1) |
| | | var vars = query.split('&') |
| | | for (var i = 0; i < vars.length; i++) { |
| | | var pair = vars[i].split('=') |
| | | if (pair[0] == variable) { |
| | | return pair[1] |
| | | } |
| | | } |
| | | return false |
| | | }, |
| | | _isMobile () { |
| | | const flag = navigator.userAgent.match( |
| | | /(phone|pad|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows phone)/i |
| | | ) |
| | | return flag |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | const that = this |
| | | tilesetLayer = new global.DC.TilesetLayer('tilesetLayer') |
| | | global.viewer.addLayer(tilesetLayer) |
| | | tileset = new global.DC.Tileset('/qx/tileset.json', { |
| | | tileset = new global.DC.Tileset('/zhxy/mx/tileset.json', { |
| | | luminanceAtZenith: 0.4, |
| | | // cullWithChildrenBounds: false, |
| | | // cullRequestsWhileMoving: false, |
| | |
| | | methods: { |
| | | onBtn5 () { |
| | | this.isClick = 5 |
| | | this.$router.push('/pcLayout') |
| | | window.open('https://dev.jxpskj.com:8023/zhxy/#/pcLayout/default', '_blank') |
| | | } |
| | | } |
| | | } |
| | |
| | | }, |
| | | { |
| | | path: '/', |
| | | redirect: '/pcLayout' |
| | | redirect: '/login' |
| | | }, |
| | | { |
| | | path: '/login', |