diff --git a/god-ui/public/images/hailuo-bg.png b/god-ui/public/images/hailuo-bg.png new file mode 100644 index 00000000..aed1e5d8 Binary files /dev/null and b/god-ui/public/images/hailuo-bg.png differ diff --git a/god-ui/public/images/hailuo-login.png b/god-ui/public/images/hailuo-login.png new file mode 100644 index 00000000..4fb8b212 Binary files /dev/null and b/god-ui/public/images/hailuo-login.png differ diff --git a/god-ui/src/App.vue b/god-ui/src/App.vue index 47d98ee5..4c908292 100644 --- a/god-ui/src/App.vue +++ b/god-ui/src/App.vue @@ -30,4 +30,9 @@ export default { #app .theme-picker { display: none; } + +@font-face { + font-family: 'BiaoTiFont'; + src: url(./assets/biaoti.ttf); +} diff --git a/god-ui/src/layout/components/Navbar.vue b/god-ui/src/layout/components/Navbar.vue index 387333dd..0ceb99cb 100644 --- a/god-ui/src/layout/components/Navbar.vue +++ b/god-ui/src/layout/components/Navbar.vue @@ -70,6 +70,7 @@ export default { 'device' ]), fn(){ + // 下面的端口项目中有大屏 let arr = ['9210','9230', '9130', '9140', '9150', '9160', '9180'] return arr.includes(this.port.toString()) }, diff --git a/god-ui/src/layout/components/Sidebar/Logo.vue b/god-ui/src/layout/components/Sidebar/Logo.vue index 64df3f48..dbc61fd2 100644 --- a/god-ui/src/layout/components/Sidebar/Logo.vue +++ b/god-ui/src/layout/components/Sidebar/Logo.vue @@ -87,6 +87,11 @@ export default { this.title = '管仲远程视频监控管理平台' document.title = '管仲远程视频监控管理平台' break; + case '9310': + // 重庆海螺水泥有限公司扁鹊设备监测与健康管理平台建设项目 + this.title = '扁鹊设备监测与健康管理平台' + document.title = '扁鹊设备监测与健康管理平台' + break; default: this.title = '' diff --git a/god-ui/src/views/login.vue b/god-ui/src/views/login.vue index 3a189021..1a8657ed 100644 --- a/god-ui/src/views/login.vue +++ b/god-ui/src/views/login.vue @@ -180,9 +180,36 @@ export default { document.title = '管仲远程视频监控平台' loginDom.style.backgroundImage = 'url(/images/guanzhong.png)' this.redirect = '/index' + break; + case '9310': + // 重庆海螺水泥有限公司扁鹊设备监测与健康管理平台建设项目 + document.title = '扁鹊设备监测与健康管理平台' + loginDom.style.backgroundImage = 'url(/images/hailuo-bg.png)' + this.redirect = '/index' + const loginForm = document.querySelector('.login-form') + loginForm.style.position = 'relative'; + loginForm.style.marginLeft = '0' + loginForm.style.background = 'none'; + loginForm.style.border = 'none' + loginForm.style.backgroundImage = 'url(/images/hailuo-login.png)' + loginForm.style.backgroundSize = '100% 100%'; + const _title = document.createElement('div'); + _title.innerHTML = '扁鹊设备监测与健康管理平台'; + _title.style.position = 'fixed'; + _title.style.width = '28rem'; + _title.style.left = 'calc(50vw - 14rem)'; + _title.style.top = '18vh' + _title.style.color = 'transparent' + _title.style.textAlign = 'center' + _title.style.fontSize = '2rem' + _title.style.backgroundImage = 'linear-gradient(to top, #a5dfff, white)' + _title.style.webkitBackgroundClip = 'text' + + _title.style.fontFamily = 'BiaoTiFont' + loginForm.appendChild(_title) + break; default: - document.title = '' loginDom.style.backgroundImage = 'url(/images/gangyin-bg.png)' this.redirect = '/index'