diff --git a/api/modules/user.js b/api/modules/user.js index c7b78f6..082220d 100644 --- a/api/modules/user.js +++ b/api/modules/user.js @@ -11,4 +11,11 @@ export default { data, }); }, + captch(data) { + return request({ + url: "/admin/auth/captch", + method: "POST", + data, + }); + }, }; \ No newline at end of file diff --git a/pages/login/index.vue b/pages/login/index.vue index 3cf6b09..8f7016f 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -23,26 +23,36 @@ - + - + + + + + + + + style="text-align: right;font-size: 28rpx;color: #999;display: flex;align-items: center;justify-content: flex-end;"> 记住密码? - + - 登录 + 登录 @@ -50,125 +60,148 @@ + .content { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + min-height: 100vh; + } + + .logo { + height: 200rpx; + width: 200rpx; + margin-top: 200rpx; + margin-left: auto; + margin-right: auto; + margin-bottom: 50rpx; + } + + .text-area { + display: flex; + justify-content: center; + } + + .title { + font-size: 36rpx; + color: #8f8f94; + } + \ No newline at end of file