You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

148 lines
3.7 KiB

3 years ago
<template>
<div class="box">
3 years ago
<div class="loginInput">
<div class="litterSemicircle"><img src="/images/logo.png"/> </div>
<div class="importInput">
<h1>南京生态环境评估决策平台</h1>
3 years ago
<el-input placeholder="请输入账户" type="text" class="input" v-model="inputName">
<template #prefix>
3 years ago
<el-icon><img src="/images/pen.png"></el-icon>
3 years ago
</template>
</el-input>
<el-input placeholder="请输入登录密码" type="password" v-model="inputPassword" class="input" >
3 years ago
<template #prefix>
3 years ago
<el-icon><img src="/images/lock.png"></el-icon>
3 years ago
</template>
</el-input>
3 years ago
<el-button type="primary" class="btn" @click="onLoginClick">登录</el-button>
3 years ago
</div>
3 years ago
</div>
3 years ago
</div>
</template>
<script lang="ts">
3 years ago
import {reactive, toRefs} from "vue";
3 years ago
import { ElMessageBox } from 'element-plus'
3 years ago
export default {
name: 'Login',
setup() {
3 years ago
let option = reactive({
inputName: null,
inputPassword: null,
centerDialogVisible:false
})
const onLoginClick = () => {
if(option.inputName==null || option.inputPassword==null){
ElMessageBox.alert('请完善信息', '提示', {
confirmButtonText: '确认',
})
}
}
return {
...toRefs(option),
onLoginClick
}
3 years ago
}
}
</script>
3 years ago
<style lang="less" scoped>
3 years ago
.loginInput {
3 years ago
width: 6.51rem;
height: 6.89rem;
3 years ago
background: #FFFFFF;
border: 1px solid #707070;
opacity: 1;
border-radius: 10px;
position: relative;
3 years ago
left: 50%;
3 years ago
top: 2.55rem;
3 years ago
transform: translateX(-50%);
3 years ago
3 years ago
.litterSemicircle {
position: absolute;
3 years ago
width: 2.39rem;
height: 2.39rem;
3 years ago
background: #FFFFFF;
border-radius: 50%;
opacity: 1;
display: flex;
justify-content: center;
left: 50%;
3 years ago
transform: translate(-50%, -50%);
3 years ago
}
3 years ago
.importInput {
3 years ago
width: 6.51rem;
height: 6.89rem;
3 years ago
background: #FFFFFF;
border: 1px solid #707070;
opacity: 1;
3 years ago
border-radius: 0.10rem;
3 years ago
display: flex;
3 years ago
flex-wrap: wrap;
3 years ago
justify-content: center;
3 years ago
align-content: flex-start;
3 years ago
3 years ago
h1 {
3 years ago
width: 3.93rem;
height: 0.4rem;
font-size: 0.30rem;
3 years ago
font-family: Microsoft YaHei;
font-weight: bold;
3 years ago
line-height: 0.4rem;
3 years ago
color: #222222;
text-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
opacity: 1;
3 years ago
margin-top: 1.20rem;
margin-bottom: 0.52rem;
padding-left: 0.12rem;
3 years ago
}
:deep(.input) {
3 years ago
width: 4.96rem;
height: 0.69rem;
3 years ago
background: #FFFFFF;
border: 1px solid #BCBCBC;
opacity: 1;
3 years ago
margin-bottom: 0.71rem;
3 years ago
.el-input__inner{
height: 100% !important;
position: relative;
border: none;
font-size: 18px;
font-family: Microsoft YaHei;
font-weight: 400;
3 years ago
line-height: 0.24rem;
3 years ago
color: #999999;
3 years ago
padding-left: 0.54rem;
3 years ago
}
3 years ago
}
3 years ago
img {
3 years ago
width: 0.18rem;
height: 0.1792rem;
3 years ago
position: absolute;
3 years ago
top: -13px;
3 years ago
left: 18px;
3 years ago
}
}
}
3 years ago
img {
3 years ago
width: 157.33px;
height: 157.15px;
margin-top: 35px;
}
3 years ago
.btn{
3 years ago
width: 4.96rem;
height: 0.69rem;
3 years ago
background: #498DF0;
opacity: 1;
color: #FFFFFF;
border: none;
3 years ago
font-size: 0.22rem;
margin-bottom: 1.27rem;
3 years ago
}
3 years ago
</style>