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.
bocai_supplyChain_pc/src/views/login.vue

123 lines
2.7 KiB
Vue

4 years ago
<template>
<div class="login-container">
4 years ago
<div class="centerbox">
<div class="contentleft">
<div class="slogan"><img src="../assets/slogan1.png" alt="" /></div>
</div>
<div class="contentright">
4 years ago
<div class="logo"><img src="../assets/loginlogo.png" alt="" /></div>
4 years ago
<div class="contentbox">
<router-view></router-view>
4 years ago
</div>
</div>
</div>
</div>
</template>
<script>
4 years ago
// import { loginApi, getPhoneCodeApi } from "../api/login";
4 years ago
export default {
// 组件名称
name: "login",
// 局部注册的组件
components: {},
// 组件参数 接收来自父组件的数据
props: {},
// 组件状态值
data() {
return {
loginway: 1,
4 years ago
form: this.$form.createForm(this),
form1: this.$form.createForm(this),
isfinish: true,
deadline: 60,
4 years ago
};
},
// 计算属性
computed: {},
// 侦听器
watch: {},
// 生命周期钩子 注:没用到的钩子请自行删除
/**
* 组件实例创建完成属性已绑定但DOM还未生成$ el属性还不存在
*/
created() {},
/**
* el 被新创建的 vm.el 替换并挂载到实例上去之后调用该钩子
* 如果 root 实例挂载了一个文档内元素 mounted 被调用时 vm.el 也在文档内
*/
mounted() {},
// 组件方法
4 years ago
methods: {},
4 years ago
};
</script>
<style scoped lang="less">
.login-container {
4 years ago
height: calc(100% - 80px);
4 years ago
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;
4 years ago
height: 480px;
// background-color: pink;
4 years ago
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%;
}
}
4 years ago
}
4 years ago
.contentright {
width: 400px;
height: 100%;
float: left;
// padding: 40px 55px;
box-sizing: border-box;
background-color: #fff;
4 years ago
.logo {
4 years ago
width: 120px;
height: 52px;
margin: 40px auto 20px;
4 years ago
img {
width: 100%;
height: 100%;
}
}
4 years ago
.contentbox {
4 years ago
width: 290px;
4 years ago
margin: 0 auto;
4 years ago
}
4 years ago
// .content;
4 years ago
}
}
}
</style>