Commit b34efdd9 authored by xinzhedeai's avatar xinzhedeai

fix:大屏 用户中心入口

parent 16ef6413
<template> <template>
<div class="Screen cm-layout"> <div class="Screen cm-layout">
<i class="el-icon-s-home home" @click="gohome"></i>
<div class="a_0"> <div class="a_0">
<div id="container"></div> <div id="container"></div>
<div class="a0_"> <div class="a0_">
...@@ -12,7 +14,6 @@ ...@@ -12,7 +14,6 @@
<div class="content"> <div class="content">
<div class="map"> <div class="map">
<i class="el-icon-user home" @click="gohome"></i>
<div class="sys-tit"> <div class="sys-tit">
<span @click="toOtherSys(1)">边坡监测</span> <span @click="toOtherSys(1)">边坡监测</span>
<span @click="toOtherSys(2)">桥梁监测</span> <span @click="toOtherSys(2)">桥梁监测</span>
...@@ -234,25 +235,48 @@ export default { ...@@ -234,25 +235,48 @@ export default {
return matches ? decodeURIComponent(matches[1]) : undefined; return matches ? decodeURIComponent(matches[1]) : undefined;
}, },
toOtherSys(val) { toOtherSys(val) {
// 正式环境
// const BIAN_PO = `http://bp.hylgzl.com`
// const QIAO_LIANG = `hhttp://ql.hylgzl.com`
// const SUI_DAO = `http://sd.hylgzl.com`
// const AI = `http://220.194.146.65:9045`
// 测试环境
// const BIAN_PO = `http://192.168.3.226:9091`
// const QIAO_LIANG = `http://192.168.3.226:12064`
// const SUI_DAO = `http://192.168.3.226:10081`
// const AI = `http://220.194.146.65:9045`
// 本地
const BIAN_PO = `http://192.168.2.11:81`
const QIAO_LIANG = `http://192.168.2.11:80`
const SUI_DAO = `http://192.168.3.226:10081`
const AI = `http://220.194.146.65:9045`
//http://localhost:12100/ "Bearer " + getToken() //http://localhost:12100/ "Bearer " + getToken()
if (val === 1) { if (val === 1) {
var link = `http://bp.hylgzl.com/?Admin=${this.getCookie( var link = `${BIAN_PO}?Admin=${this.getCookie(
"Admin-Token" "Admin-Token"
)}`; )}`;
window.open(link, "_blank"); window.open(link, "_blank");
return; return;
} else if (val === 2) { } else if (val === 2) {
var link = `http://ql.hylgzl.com/}`; var link = `${QIAO_LIANG}?Admin=${this.getCookie(
"Admin-Token"
)}`;
window.open(link, "_blank"); window.open(link, "_blank");
return; return;
} else if (val === 3) { } else if (val === 3) {
var link = `http://sd.hylgzl.com/?Admin=${this.getCookie( var link = `${SUI_DAO}?Admin=${this.getCookie(
"Admin-Token" "Admin-Token"
)}`; )}`;
window.open(link, "_blank"); window.open(link, "_blank");
return; return;
} else if (val === 4) { } else if (val === 4) {
var link = `http://220.194.146.65:9045`; var link = `${AI}?Admin=${this.getCookie(
"Admin-Token"
)}`;
window.open(link, "_blank"); window.open(link, "_blank");
return; return;
} }
...@@ -276,7 +300,15 @@ export default { ...@@ -276,7 +300,15 @@ export default {
</script> </script>
<style lang="scss" scope> <style lang="scss" scope>
.home{
position: absolute;
top: 0.25rem;
left: 7.3rem;
font-size: 0.34rem;
z-index: 999999;
cursor: pointer;
color: #9edbf5;
}
footer{ footer{
width: 19.2rem; width: 19.2rem;
height: 0.35rem; height: 0.35rem;
...@@ -370,15 +402,7 @@ footer{ ...@@ -370,15 +402,7 @@ footer{
width: 100%; width: 100%;
height: 100vh; height: 100vh;
position: relative; position: relative;
.home{
font-size: 0.34rem;
color: #11a8e7;
position: absolute;
right: 0.2rem;
top: 0.36rem;
cursor: pointer;
z-index: 12;
}
.sys-tit { .sys-tit {
width: 8.49rem; width: 8.49rem;
height: 0.63rem; height: 0.63rem;
......
...@@ -36,7 +36,7 @@ module.exports = { ...@@ -36,7 +36,7 @@ module.exports = {
proxy: { proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
// target: `http://192.168.3.226:8579`, // target: `http://192.168.3.226:8579`,
target: `http://192.168.2.16:8579`, target: `http://192.168.2.16:8579`,
// target: `http://182.92.170.89:10080`, // target: `http://182.92.170.89:10080`,
changeOrigin: true, changeOrigin: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment