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.

150 lines
3.6 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>
<el-icon ><img src="/images/pen.png"></el-icon>
</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";
import { ElMessageBox, ElMessage } 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: 651px;
height: 689px;
background: #FFFFFF;
border: 1px solid #707070;
opacity: 1;
border-radius: 10px;
position: relative;
3 years ago
left: 50%;
3 years ago
top: 255px;
3 years ago
transform: translateX(-50%);
3 years ago
3 years ago
.litterSemicircle {
position: absolute;
3 years ago
width: 239px;
height: 239px;
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: 651px;
height: 689px;
background: #FFFFFF;
border: 1px solid #707070;
opacity: 1;
border-radius: 10px;
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: 393px;
3 years ago
height: 40px;
3 years ago
font-size: 30px;
font-family: Microsoft YaHei;
font-weight: bold;
line-height: 40px;
color: #222222;
text-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
opacity: 1;
3 years ago
margin-top: 120px;
3 years ago
margin-bottom: 52px;
padding-left: 12px;
}
:deep(.input) {
width: 496px;
height: 69px;
background: #FFFFFF;
border: 1px solid #BCBCBC;
opacity: 1;
margin-bottom: 71px;
.el-input__inner{
height: 100% !important;
position: relative;
border: none;
font-size: 18px;
font-family: Microsoft YaHei;
font-weight: 400;
line-height: 24px;
color: #999999;
padding-left: 54px;
}
3 years ago
}
3 years ago
3 years ago
img {
width: 18px;
height: 17.92px;
position: absolute;
top: -7px;
}
}
}
3 years ago
img {
3 years ago
width: 157.33px;
height: 157.15px;
margin-top: 35px;
}
3 years ago
.btn{
width: 496px;
height: 69px;
background: #498DF0;
opacity: 1;
color: #FFFFFF;
border: none;
font-size: 22px;
margin-bottom: 127px;
}
3 years ago
</style>