Commit 1c0f3c03 authored by wuwangwolihui's avatar wuwangwolihui

Merge remote-tracking branch 'origin/yingdi2.0' into yingdi2.0

parents 9eda2c8c 6e42c0ed
/* eslint-disable */
import {
request
} from './network'
// 通过邮箱验证码注册
export function registerEmailCode(data) {
return request({
method: 'post',
url: 'web/code/registerEmailCode',
params: data
})
}
// 通过邮箱验证码找回密码(忘记密码)
export function passwordEmailCode(data) {
return request({
method: 'post',
url: 'web/code/passwordEmailCode',
params: data
})
}
// 发送注册时候验证码
export function registerCode(data) {
return request({
method: 'post',
url: '/web/code/registerCode',
params: data
})
}
export function passwordCode(data) {
return request({
method: 'post',
url: '/web/code/passwordCode',
params: data
})
}
// 填写注册信息
export function setAccountInfo(data) {
return request({
method: 'post',
url: '/web/register/setAccountInfo',
data
})
}
// 获取注册信息
export function getAccountInfo(data) {
return request({
method: 'post',
url: '/web/register/getAccountInfo',
data
})
}
...@@ -15,7 +15,7 @@ export default [{ ...@@ -15,7 +15,7 @@ export default [{
} }
}, },
{ {
path: '/reset', path: '/baseReset',
name: 'base-reset', name: 'base-reset',
component: () => import(/* webpackChunkName: "reset" */ 'v/base/login/Reset.vue'), component: () => import(/* webpackChunkName: "reset" */ 'v/base/login/Reset.vue'),
meta: { meta: {
......
...@@ -204,7 +204,9 @@ router.beforeEach((to, from, next) => { ...@@ -204,7 +204,9 @@ router.beforeEach((to, from, next) => {
toLogin = "/login", toLogin = "/login",
toBaseLogin = "/baseLogin", toBaseLogin = "/baseLogin",
toRegister = "/register", toRegister = "/register",
toBaseRegister = "/baseRegister",
toReset = "/reset", toReset = "/reset",
toBaseReset = "/baseReset",
toHome = "/home", toHome = "/home",
toActive = "/active"; toActive = "/active";
let toMyInfo; let toMyInfo;
...@@ -225,7 +227,7 @@ router.beforeEach((to, from, next) => { ...@@ -225,7 +227,7 @@ router.beforeEach((to, from, next) => {
// } // }
// }); // });
return next(); return next();
} else if (to.path == toBaseLogin || to.path == toMyInfo || to.path == toHome || to.path == toActive || to.path.indexOf(toActive) != -1) { } else if (to.path == toBaseLogin ||to.path == toBaseRegister ||to.path == toBaseReset || to.path == toMyInfo || to.path == toHome || to.path == toActive || to.path.indexOf(toActive) != -1) {
return next(); return next();
} else if (to.name == "recruit") { } else if (to.name == "recruit") {
code = to.params.code; code = to.params.code;
......
<template> <template>
<div class="login-index"> <div class="login-index">
<Header></Header>
<div class="big-right"> <div class="big-right">
<div class="info-box"> <div class="info-box">
<router-view /> <router-view/>
</div> </div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
/* eslint-disable */ /* eslint-disable */
import Cookie from "js-cookie" import Header from "@/components/base/Header.vue";
export default { export default {
name: "loginBase", name: "loginBase",
data() { data() {
return { return {};
}; },
}, components: {
created() { Header,
},
this.$emit("getStatus", false); created() {
}, },
methods: { methods: {},
toHome() { };
let code = this.$store.state.indexIdentity;
this.$router.push("/"+code);
}
},
};
</script> </script>
<style scoped lang="scss"> <style lang="scss" scoped>
.login-index { @media (min-width: 1024px) {
position: relative; .login-index .big-right .info-box {
min-width: 1104px; width: 32%!important;
background: #f8f8f8; top: 60%!important;
display: flex;
flex-flow: row;
min-height: 100%;
.big-img {
width: (500/1920 * 100%);
min-width: 350px;
min-height: 100%;
img {
width: 100%;
min-height: 100%;
} }
} }
.big-right {
flex: 1;
.login-index {
position: relative; position: relative;
.info-box { min-width: 1104px;
width: 520px; background: #f8f8f8;
height: auto; min-height: 100%;
position: absolute; width: 100%;
top: 50%;
left: 50%; .big-right {
transform: translate(-50%, -50%); height: calc(100% - 80px);
.info-box {
width: 520px;
height: auto;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
} }
} }
}
</style> </style>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment