获取项目code
This commit is contained in:
parent
ee580fdb27
commit
0a273bbfca
|
|
@ -1,7 +1,8 @@
|
|||
<template>
|
||||
<div class="login_bg">
|
||||
<!-- <div class="right-con" :style="{backgroundImage: 'url(' + baseConfig.base_logo + ')'}"></div> -->
|
||||
<div class="login_adv" :style="{'background-image':baseConfig.base_logo_side==''?'url(img/logo_side.png)':'url('+baseConfig.base_logo_side+')'}">
|
||||
<div class="login_adv"
|
||||
:style="{ 'background-image': baseConfig.base_logo_side == '' ? 'url(img/logo_side.png)' : 'url(' + baseConfig.base_logo_side + ')' }">
|
||||
<div class="login_adv__title">
|
||||
<h2 v-if="baseConfig.base_name">{{ baseConfig.base_name }}</h2>
|
||||
</div>
|
||||
|
|
@ -12,7 +13,8 @@
|
|||
</div>
|
||||
<div class="login_main">
|
||||
<div class="login_config">
|
||||
<el-button :icon="config.dark?'el-icon-sunny':'el-icon-moon'" circle type="info" @click="configDark"></el-button>
|
||||
<el-button :icon="config.dark ? 'el-icon-sunny' : 'el-icon-moon'" circle type="info"
|
||||
@click="configDark"></el-button>
|
||||
|
||||
</div>
|
||||
<div class="login-form">
|
||||
|
|
@ -44,7 +46,8 @@
|
|||
<div class="login-oauth" v-if="baseConfig.base_name == '曲阳金隅安全智能管控平台'">
|
||||
<el-button type="default" @click="appDown">安卓APP</el-button>
|
||||
<el-button type="default" @click="h5Show">H5访问</el-button>
|
||||
<el-button type="primary" @click="MonitorOpen" style="background-color:orange;border-color:orange">监控视频</el-button>
|
||||
<el-button type="primary" @click="MonitorOpen"
|
||||
style="background-color:orange;border-color:orange">监控视频</el-button>
|
||||
</div>
|
||||
<!-- <div class="login-oauth" v-else>
|
||||
<el-button type="default" @click="faceLogin">刷脸登录</el-button>
|
||||
|
|
@ -57,7 +60,8 @@
|
|||
<sc-qr-code class="qrCode" :text="WechatLoginCode" :size="200"></sc-qr-code>
|
||||
<p class="msg">{{ $tc('login.wechatLoginMsg', 1) }}<br />{{ $tc('login.wechatLoginMsg', 2) }}</p>
|
||||
<div class="qrCodeLogin-result" v-if="isWechatLoginResult">
|
||||
<el-result icon="success" :title="$tc('login.wechatLoginResult', 1)" :sub-title="$tc('login.wechatLoginResult', 2)"></el-result>
|
||||
<el-result icon="success" :title="$tc('login.wechatLoginResult', 1)"
|
||||
:sub-title="$tc('login.wechatLoginResult', 2)"></el-result>
|
||||
</div>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
|
@ -147,7 +151,7 @@
|
|||
//console.log('%c SCUI %c Gitee: https://gitee.com/lolicode/scui', 'background:#666;color:#fff;border-radius:3px;', '')
|
||||
},
|
||||
mounted() {
|
||||
let url1 = window.location.origin;
|
||||
let url1 = window.location.href;
|
||||
this.project_code = url1.split('/')[3];
|
||||
this.getDept();
|
||||
},
|
||||
|
|
@ -205,67 +209,246 @@
|
|||
</script>
|
||||
|
||||
<style scoped>
|
||||
.login_bg {width: 100%;height: 100%;background: #fff;display: flex;}
|
||||
.login_adv {width: 33.33333%;background-color: #555;background-size: cover;background-position: center center;background-repeat: no-repeat;position: relative;}
|
||||
.login_adv__title {color: #fff;padding: 40px;position: absolute;top:0px;left:0px;right: 0px;z-index: 2;}
|
||||
.login_adv__title h2 {font-size: 30px;}
|
||||
.login_adv__title h4 {font-size: 18px;margin-top: 10px;font-weight: normal;}
|
||||
.login_adv__title p {font-size: 14px;margin-top:10px;line-height: 1.8;color: rgba(255,255,255,0.6);}
|
||||
.login_adv__title div {margin-top: 10px;display: flex;align-items: center;}
|
||||
.login_adv__title div span {margin-right: 15px;}
|
||||
.login_adv__title div i {font-size: 40px;}
|
||||
.login_adv__title div i.add {font-size: 20px;color: rgba(255,255,255,0.6);}
|
||||
.login_adv__bottom {position: absolute;left:0px;right: 0px;bottom: 0px;color: #fff;padding: 40px;background-image:linear-gradient(transparent, #000);z-index: 3;}
|
||||
.login_adv__mask {position: absolute;top:0px;left:0px;right: 0px;bottom: 0px;z-index: 1;}
|
||||
.login_bg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: #fff;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.login_adv {
|
||||
width: 33.33333%;
|
||||
background-color: #555;
|
||||
background-size: cover;
|
||||
background-position: center center;
|
||||
background-repeat: no-repeat;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.login_adv__title {
|
||||
color: #fff;
|
||||
padding: 40px;
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.login_adv__title h2 {
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
.login_adv__title h4 {
|
||||
font-size: 18px;
|
||||
margin-top: 10px;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.login_adv__title p {
|
||||
font-size: 14px;
|
||||
margin-top: 10px;
|
||||
line-height: 1.8;
|
||||
color: rgba(255, 255, 255, 0.6);
|
||||
}
|
||||
|
||||
.login_adv__title div {
|
||||
margin-top: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.login_adv__title div span {
|
||||
margin-right: 15px;
|
||||
}
|
||||
|
||||
.login_adv__title div i {
|
||||
font-size: 40px;
|
||||
}
|
||||
|
||||
.login_adv__title div i.add {
|
||||
font-size: 20px;
|
||||
color: rgba(255, 255, 255, 0.6);
|
||||
}
|
||||
|
||||
.login_adv__bottom {
|
||||
position: absolute;
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
bottom: 0px;
|
||||
color: #fff;
|
||||
padding: 40px;
|
||||
background-image: linear-gradient(transparent, #000);
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
.login_adv__mask {
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
bottom: 0px;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.login_main {
|
||||
flex: 1;
|
||||
overflow: auto;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.login-form {
|
||||
width: 410px;
|
||||
margin: auto;
|
||||
padding: 20px 0;
|
||||
}
|
||||
|
||||
.login-header {
|
||||
margin-bottom: 40px;
|
||||
width: 460px;
|
||||
}
|
||||
|
||||
.login-header .logo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.login_main {flex: 1;overflow: auto;display:flex;}
|
||||
.login-form {width: 410px;margin: auto;padding:20px 0;}
|
||||
.login-header {margin-bottom: 40px; width: 460px;}
|
||||
.login-header .logo {display: flex;align-items: center;}
|
||||
/* .login-header .logo img {width: 130px;vertical-align: bottom;margin-right: 10px;} */
|
||||
.login-header .logo img {width: 60px;height: 60px;vertical-align: bottom;margin-right: 10px;}
|
||||
.login-header .logo label {font-size: 26px;font-weight: bold;}
|
||||
.login-oauth {display: flex;justify-content:space-around;}
|
||||
.login-form .el-divider {margin-top:40px;}
|
||||
.login-header .logo img {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
vertical-align: bottom;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.login-header .logo label {
|
||||
font-size: 26px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.login-oauth {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
.login-form .el-divider {
|
||||
margin-top: 40px;
|
||||
}
|
||||
|
||||
.login-form {}
|
||||
.login-form:deep(.el-tabs) .el-tabs__header {margin-bottom: 25px;}
|
||||
.login-form:deep(.el-tabs) .el-tabs__header .el-tabs__item {font-size: 14px;}
|
||||
|
||||
.login-form:deep(.login-forgot) {text-align: right;}
|
||||
.login-form:deep(.login-forgot) a {color: var(--el-color-primary);}
|
||||
.login-form:deep(.login-forgot) a:hover {color: var(--el-color-primary-light-3);}
|
||||
.login-form:deep(.login-reg) {font-size: 14px;color: var(--el-text-color-primary);}
|
||||
.login-form:deep(.login-reg) a {color: var(--el-color-primary);}
|
||||
.login-form:deep(.login-reg) a:hover {color: var(--el-color-primary-light-3);}
|
||||
.login-form:deep(.el-tabs) .el-tabs__header {
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
|
||||
.login_config {position: absolute;top:20px;right: 20px;}
|
||||
.login-form:deep(.el-tabs) .el-tabs__header .el-tabs__item {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.login-form:deep(.login-msg-yzm) {display: flex;width: 100%;}
|
||||
.login-form:deep(.login-msg-yzm) .el-button {margin-left: 10px;--el-button-size:42px;}
|
||||
.login-form:deep(.login-forgot) {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.qrCodeLogin {text-align: center;position: relative;padding: 20px 0;}
|
||||
.qrCodeLogin img.qrCode {background: #fff;padding:20px;border-radius:10px;}
|
||||
.qrCodeLogin p.msg {margin-top: 15px;}
|
||||
.qrCodeLogin .qrCodeLogin-result {position: absolute;top:0;left:0;right: 0;bottom: 0;text-align: center;background: var(--el-mask-color);}
|
||||
.login-form:deep(.login-forgot) a {
|
||||
color: var(--el-color-primary);
|
||||
}
|
||||
|
||||
.login-form:deep(.login-forgot) a:hover {
|
||||
color: var(--el-color-primary-light-3);
|
||||
}
|
||||
|
||||
.login-form:deep(.login-reg) {
|
||||
font-size: 14px;
|
||||
color: var(--el-text-color-primary);
|
||||
}
|
||||
|
||||
.login-form:deep(.login-reg) a {
|
||||
color: var(--el-color-primary);
|
||||
}
|
||||
|
||||
.login-form:deep(.login-reg) a:hover {
|
||||
color: var(--el-color-primary-light-3);
|
||||
}
|
||||
|
||||
.login_config {
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
right: 20px;
|
||||
}
|
||||
|
||||
.login-form:deep(.login-msg-yzm) {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.login-form:deep(.login-msg-yzm) .el-button {
|
||||
margin-left: 10px;
|
||||
--el-button-size: 42px;
|
||||
}
|
||||
|
||||
.qrCodeLogin {
|
||||
text-align: center;
|
||||
position: relative;
|
||||
padding: 20px 0;
|
||||
}
|
||||
|
||||
.qrCodeLogin img.qrCode {
|
||||
background: #fff;
|
||||
padding: 20px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.qrCodeLogin p.msg {
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.qrCodeLogin .qrCodeLogin-result {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
text-align: center;
|
||||
background: var(--el-mask-color);
|
||||
}
|
||||
|
||||
@media (max-width: 1200px) {
|
||||
.login-form {width: 340px;}
|
||||
.login-form {
|
||||
width: 340px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1000px) {
|
||||
.login_main {display: block;}
|
||||
.login_main .login_config {position: static;padding:20px 20px 0 20px;text-align: right;}
|
||||
.login-form {width:100%;padding:20px 40px;}
|
||||
.login_adv {display: none;}
|
||||
.login_main {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.login_main .login_config {
|
||||
position: static;
|
||||
padding: 20px 20px 0 20px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.login-form {
|
||||
width: 100%;
|
||||
padding: 20px 40px;
|
||||
}
|
||||
|
||||
.login_adv {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
#loginFaceWrap {
|
||||
width: 664px !important;
|
||||
}
|
||||
|
||||
.testTracking {
|
||||
width: 600px;
|
||||
height: 500px;
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
#photonImg {
|
||||
width: 100%;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue