diff --git a/src/api/login.js b/src/api/login.js index f557726..c6b76af 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -71,7 +71,7 @@ export function getCodeSms() { } // 获取注册短信手机验证码 -export function getCodeImg2(data) { +export function getCheckcode(data) { return request({ url: "/admin/auth/register/getCheckcode", method: "post", @@ -79,10 +79,19 @@ export function getCodeImg2(data) { }); } //验证验证码 -export function getCodeSms2(data) { +export function checkCode(data) { return request({ url: "/admin/auth/register/checkCode", method: "post", data, }); } + +//注册信息提交(新注册,修改) +export function registerSave(data) { + return request({ + url: " /admin/auth/register/save", + method: "post", + data, + }); +} diff --git a/src/views/register.vue b/src/views/register.vue index 50fcd89..3a3b17d 100644 --- a/src/views/register.vue +++ b/src/views/register.vue @@ -1,110 +1,349 @@ @@ -112,63 +351,34 @@ export default { .register { display: flex; justify-content: center; - align-items: center; - height: 100%; - width: 100%; - - background-size: cover; -} -.title { - margin: 0px auto 30px auto; - text-align: center; - color: #707070; -} - -.register-form { - border-radius: 6px; - background: #ffffff; - width: 50%; - height: 100%; - padding: 0px 0px 0px 0px; - .el-input { - height: 38px; - input { - height: 38px; + align-content: center; + flex-wrap: wrap; + flex-direction: column; + .box { + width: 500px; + margin: 50px 100px; + text-align: center; + .phoneForm { + .el-form-item__label { + line-height: 50px; + } + .el-input__inner { + height: 50px; + } + .bntNext { + width: 50%; + height: 50px; + } + } + .userForm { + .el-select { + width: 100%; + } + .bntNext { + width: 50%; + height: 50px; + } } } - .input-icon { - height: 39px; - width: 14px; - margin-left: 2px; - } -} -.register-tip { - font-size: 13px; - text-align: center; - color: #bfbfbf; -} -.register-code { - width: 33%; - height: 38px; - float: right; - img { - cursor: pointer; - vertical-align: middle; - } -} -.el-register-footer { - height: 40px; - line-height: 40px; - position: fixed; - bottom: 0; - width: 100%; - text-align: center; - color: #fff; - font-family: Arial; - font-size: 12px; - letter-spacing: 1px; -} -.register-code-img { - height: 38px; }