You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
<template>
|
|
|
|
|
|
<div class="login-container">
|
|
|
|
|
|
<div class="centerbox">
|
|
|
|
|
|
<div class="contentleft">
|
|
|
|
|
|
<div class="slogan"><img src="../assets/slogan1.png" alt="" /></div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="contentright">
|
|
|
|
|
|
<div class="logo"><img src="../assets/loginlogo.png" alt="" /></div>
|
|
|
|
|
|
<div class="contentbox">
|
|
|
|
|
|
<router-view></router-view>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
// import { loginApi, getPhoneCodeApi } from "../api/login";
|
|
|
|
|
|
export default {
|
|
|
|
|
|
// 组件名称
|
|
|
|
|
|
name: "login",
|
|
|
|
|
|
// 局部注册的组件
|
|
|
|
|
|
components: {},
|
|
|
|
|
|
// 组件参数 接收来自父组件的数据
|
|
|
|
|
|
props: {},
|
|
|
|
|
|
// 组件状态值
|
|
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
|
|
|
|
|
loginway: 1,
|
|
|
|
|
|
|
|
|
|
|
|
form: this.$form.createForm(this),
|
|
|
|
|
|
form1: this.$form.createForm(this),
|
|
|
|
|
|
isfinish: true,
|
|
|
|
|
|
deadline: 60,
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
|
|
|
|
|
// 计算属性
|
|
|
|
|
|
computed: {},
|
|
|
|
|
|
// 侦听器
|
|
|
|
|
|
watch: {},
|
|
|
|
|
|
// 生命周期钩子 注:没用到的钩子请自行删除
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 组件实例创建完成,属性已绑定,但DOM还未生成,$ el属性还不存在
|
|
|
|
|
|
*/
|
|
|
|
|
|
created() {},
|
|
|
|
|
|
/**
|
|
|
|
|
|
* el 被新创建的 vm.el 替换,并挂载到实例上去之后调用该钩子。
|
|
|
|
|
|
* 如果 root 实例挂载了一个文档内元素,当 mounted 被调用时 vm.el 也在文档内。
|
|
|
|
|
|
*/
|
|
|
|
|
|
mounted() {},
|
|
|
|
|
|
// 组件方法
|
|
|
|
|
|
methods: {},
|
|
|
|
|
|
};
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped lang="less">
|
|
|
|
|
|
.login-container {
|
|
|
|
|
|
height: calc(100% - 80px);
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
// background: url("../assets/Bg.png") no-repeat center;
|
|
|
|
|
|
// background-size: 100% 100%;
|
|
|
|
|
|
// box-shadow: 5px 5px 10px gray;
|
|
|
|
|
|
.centerbox {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
width: 800px;
|
|
|
|
|
|
height: 480px;
|
|
|
|
|
|
// background-color: pink;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
bottom: 0;
|
|
|
|
|
|
right: 0;
|
|
|
|
|
|
margin: auto;
|
|
|
|
|
|
border-radius: 16px;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
.contentleft {
|
|
|
|
|
|
width: 400px;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
float: left;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
background-color: #ff6a00;
|
|
|
|
|
|
.slogan {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
width: 275px;
|
|
|
|
|
|
height: 107px;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
bottom: 0;
|
|
|
|
|
|
right: 0;
|
|
|
|
|
|
margin: auto;
|
|
|
|
|
|
// background-color: skyblue;
|
|
|
|
|
|
img {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
.contentright {
|
|
|
|
|
|
width: 400px;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
float: left;
|
|
|
|
|
|
// padding: 40px 55px;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
.logo {
|
|
|
|
|
|
width: 120px;
|
|
|
|
|
|
height: 52px;
|
|
|
|
|
|
margin: 40px auto 20px;
|
|
|
|
|
|
img {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
.contentbox {
|
|
|
|
|
|
width: 290px;
|
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
|
}
|
|
|
|
|
|
// .content;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|