From 14781da78ed6c21305cf987dad038582e6fa7aa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=B7=B3?= <454313500@qq.com> Date: Mon, 4 Mar 2024 18:18:26 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=89=8B=E6=92=B8=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E7=99=BB=E5=BD=95=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Yi.Abp.Net8/src/Yi.Abp.Web/YiAbpWebModule.cs | 1 - Yi.Bbs.Vue3/src/assets/styles/login.css | 409 +++++++-------- Yi.Bbs.Vue3/src/assets/styles/login.min.css | 1 - Yi.Bbs.Vue3/src/assets/styles/login.scss | 204 ------- Yi.Bbs.Vue3/src/views/login/index.bak.vue | 525 +++++++++++++++++++ Yi.Bbs.Vue3/src/views/login/index.vue | 465 +++++----------- 6 files changed, 849 insertions(+), 756 deletions(-) delete mode 100644 Yi.Bbs.Vue3/src/assets/styles/login.min.css delete mode 100644 Yi.Bbs.Vue3/src/assets/styles/login.scss create mode 100644 Yi.Bbs.Vue3/src/views/login/index.bak.vue diff --git a/Yi.Abp.Net8/src/Yi.Abp.Web/YiAbpWebModule.cs b/Yi.Abp.Net8/src/Yi.Abp.Web/YiAbpWebModule.cs index 5c01c453..836d832b 100644 --- a/Yi.Abp.Net8/src/Yi.Abp.Web/YiAbpWebModule.cs +++ b/Yi.Abp.Net8/src/Yi.Abp.Web/YiAbpWebModule.cs @@ -138,7 +138,6 @@ namespace Yi.Abp.Web //options.TenantResolvers.RemoveAll(x => x.Name == CookieTenantResolveContributor.ContributorName); }); - //速率限制 //每60秒限制100个请求,滑块添加,分6段 service.AddRateLimiter(_ => diff --git a/Yi.Bbs.Vue3/src/assets/styles/login.css b/Yi.Bbs.Vue3/src/assets/styles/login.css index e92aa050..2d91f552 100644 --- a/Yi.Bbs.Vue3/src/assets/styles/login.css +++ b/Yi.Bbs.Vue3/src/assets/styles/login.css @@ -1,210 +1,205 @@ -@charset "UTF-8"; -* { - margin: 0; - padding: 0; -} - -/*公共CSS*/ -.box { - width: 100vw; - height: 100vh; - background-color: #1d4359; -} - -.box .content { - box-shadow: 0px 1px 6px #3b4859; -} - -.box .content .login-wrapper h1 { - text-align: center; -} - -.box .content .login-wrapper .login-form .form-item { - margin: 20px 0; -} - -.box .content .login-wrapper .login-form .form-item span { - display: block; - margin: 5px 20px; - font-weight: 100; -} - -.box .content .login-wrapper .login-form .form-item .input-item { - width: 100%; - border-radius: 40px; - padding: 20px; - box-sizing: border-box; - font-size: 20px; - font-weight: 200; -} - -.box .content .login-wrapper .login-form .form-item .input-item:focus { - outline: none; -} - -.box .content .login-wrapper .login-form .login-btn { - width: 100%; - border-radius: 40px; - color: #fff; - border: 0; - font-weight: 100; - margin-top: 10px; - cursor: pointer; -} - -.box .content .login-wrapper .divider { - width: 100%; - margin: 20px 0; - text-align: center; - display: flex; - align-items: center; - justify-content: center; -} - -.box .content .login-wrapper .divider span:nth-child(1) { - flex: 1; -} - -.box .content .login-wrapper .divider span:nth-child(3) { - flex: 1; -} - -.box .content .login-wrapper .divider .line { - display: inline-block; - max-width: 30%; - width: 30%; -} - -.box .content .login-wrapper .divider .divider-text { - vertical-align: middle; - margin: 0px 20px; - line-height: 0px; - display: inline-block; - width: 100px; -} - -.box .content .login-wrapper .other-login-wrapper { - width: 100%; - display: flex; - justify-content: center; - align-items: center; -} - -.box .content .login-wrapper .other-login-item { - cursor: pointer; - border: 1px solid #d6dee4; - padding: 10px; - margin: 10px; -} - -/*一般大于手机的尺寸CSS*/ -@media (min-width: 767px) { - .box { - background-color: #f0f2f5; - } - .box .content { - width: 85vw; - height: 90vh; - background: url("@/assets/login_images/login_two.jpg") no-repeat; - background-size: 90% 100%; - position: absolute; - right: 15%; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - border-radius: 20px; - background-color: #fff; - } - .box .content .login-wrapper { - width: 25vw; - position: absolute; - right: 15%; - top: 50%; - transform: translateY(-50%); - } - .box .content .login-wrapper h1 { - text-align: center; - font-size: 45px; - color: #516473; - margin-bottom: 40px; - } - .box .content .login-wrapper .login-form { - margin: 10px 0; - } - .box .content .login-wrapper .login-form .form-item span { - color: #516473; - } - .box .content .login-wrapper .login-form .form-item .input-item { - height: 60px; - border: 1px solid #d6dee4; - } - .box .content .login-wrapper .login-form .login-btn { - height: 50px; - background-color: #3b4859; - font-size: 20px; - } - .box .content .login-wrapper .divider .line { - border-bottom: 1px solid #d6dee4; - } - .box .content .login-wrapper .other-login-item { - border-radius: 20px; - } - .box .content .login-wrapper .other-login-item img { - cursor: pointer; - width: 40px; - height: 40px; - } -} - -/*手机端CSS*/ -@media (max-width: 768px) { - .box .content { - width: 100vw; - height: 100vh; - background: url("@/assets/login_images/login_bg_phone.png") no-repeat; - background-size: 100% 100%; +.container { display: flex; - align-items: flex-start; justify-content: center; - } - .box .content .login-wrapper { - width: 70%; - height: 60%; - padding-top: 15%; - } - .box .content .login-wrapper h1 { - font-size: 30px; - color: #fff; - } - .box .content .login-wrapper .login-form .form-item { - margin: 10px 0; - } - .box .content .login-wrapper .login-form .form-item span { - color: #71818d; - } - .box .content .login-wrapper .login-form .form-item .input-item { - height: 30px; - border: 1px solid #71818d; - background-color: transparent; - color: #fff; - } - .box .content .login-wrapper .login-form .login-btn { - height: 40px; - background-color: #eb5f5d; - font-size: 16px; - } - .box .content .login-wrapper .divider .line { - border-bottom: 1px solid #fff; - } - .box .content .login-wrapper .divider .divider-text { - color: #fff; - } - .box .content .login-wrapper .other-login-item { - border-radius: 15px; - } - .box .content .login-wrapper .other-login-item img { - cursor: pointer; - width: 35px; - height: 35px; - } + align-items: center; + height: 100%; + background-color: #272162; } + +.div-content +{ + display: flex; + justify-content: center; + align-items: center; + height: 100%; +} + +.div-left +{ + width: 414px; + height:522px; + background-color: #FFFFFF; +} +.div-right +{ + width: 414px; + height:522px; + background-color:#4E2665; +} +.left-container +{ +padding: 40px 60px; + +} +.title{ + margin: 5px; + font-size: 35px; +} +.title-1 span +{ + font-size: 13px; + cursor: pointer; +} +.title-1 +{ + color: #7F438C; + + font-weight: normal; +} +.title-2 +{ + color: #7F438C; + font-weight:bolder; +} +.input-content +{ + margin: 25px 0 10px 0; +} +.input +{ + margin: 15px 0; +} +.input input:focus { + outline: none; + } +.input input +{ +width: 100%; +border: 1px solid #000; +border-top: 0; +border-left: 0; +border-right: 0; +height: 25px; + +} +.input p +{ + font-weight: bold; + margin: 5px 0; +} +.left-btn +{ + margin: 20px 0; +} +.left-btn button +{ + border: 1px solid #000; + width: 100px; + height: 35px; + cursor: pointer; +} +.btn-login +{ + background-color: #EF6562; + color: #FFFFFF; + +} +.btn-reg +{ + margin-left: 20px; + background-color: #FFFFFF; + +} +.left-lable +{ + display: flex; + align-items: center; + font-size: 12px; +} +.left-lable label{ + margin-left: 5px; +} + +.bottom-div +{ + font-size: 12px; + font-weight:bold; + margin-top: 30px; + +} +.bottom-div span +{ +margin-left: 10px; + +} +.bottom-div span img +{ + +height: 20px; +width: 20px; +cursor: pointer; +} +.code{ +display: flex; +justify-content: space-between; +align-items: flex-end; +} +.code-input +{ + width: 60% !important; +} +.code-img +{ + margin-left: 20px; + border: 0.8px solid #000; + width: 100px; + height: 30px; + text-align: center; +} +.div-bottom +{ + position: absolute; + bottom: 30px; + color:#CAD2D9; + font-size: 12px; +} +.div-bottom span{ + margin: 0 5px; + cursor: pointer; +} + + + + + +.phone-code{ + display: flex; + justify-content: space-between; + align-items: flex-end; + } + .phone-code-input + { + width: 60% !important; + } + .phone-code-btn + { + border: 0.8px solid #000; + text-align: center; + width: 100px; + height: 30px; + background-color: #EF6562; + color: #FFFFFF; + cursor: pointer; + margin-left: 20px; + } + .register-title + { + color: #7F438C; + font-weight:bolder; + font-size: 30px; + } + .div-left-register + { + width: 414px; + height:522px; + background-color: #FFFFFF; + + } + .div-right-register + { + width: 414px; + height:522px; + background-color:#4E2665; + + } + \ No newline at end of file diff --git a/Yi.Bbs.Vue3/src/assets/styles/login.min.css b/Yi.Bbs.Vue3/src/assets/styles/login.min.css deleted file mode 100644 index d82193f1..00000000 --- a/Yi.Bbs.Vue3/src/assets/styles/login.min.css +++ /dev/null @@ -1 +0,0 @@ -*{margin:0;padding:0}.box{width:100vw;height:100vh;background-color:#1d4359}.box .content{box-shadow:0px 1px 6px #3b4859}.box .content .login-wrapper h1{text-align:center}.box .content .login-wrapper .login-form .form-item{margin:20px 0}.box .content .login-wrapper .login-form .form-item span{display:block;margin:5px 20px;font-weight:100}.box .content .login-wrapper .login-form .form-item .input-item{width:100%;border-radius:40px;padding:20px;box-sizing:border-box;font-size:20px;font-weight:200}.box .content .login-wrapper .login-form .form-item .input-item:focus{outline:none}.box .content .login-wrapper .login-form .login-btn{width:100%;border-radius:40px;color:#fff;border:0;font-weight:100;margin-top:10px;cursor:pointer}.box .content .login-wrapper .divider{width:100%;margin:20px 0;text-align:center;display:flex;align-items:center;justify-content:center}.box .content .login-wrapper .divider span:nth-child(1){flex:1}.box .content .login-wrapper .divider span:nth-child(3){flex:1}.box .content .login-wrapper .divider .line{display:inline-block;max-width:30%;width:30%}.box .content .login-wrapper .divider .divider-text{vertical-align:middle;margin:0px 20px;line-height:0px;display:inline-block;width:100px}.box .content .login-wrapper .other-login-wrapper{width:100%;display:flex;justify-content:center;align-items:center}.box .content .login-wrapper .other-login-item{cursor:pointer;border:1px solid #d6dee4;padding:10px;margin:10px}@media (min-width: 767px){.box{background-color:#f0f2f5}.box .content{width:85vw;height:90vh;background:url("@/assets/login_images/login_two.jpg") no-repeat;background-size:90% 100%;position:absolute;right:15%;top:50%;left:50%;transform:translate(-50%, -50%);border-radius:20px;background-color:#fff}.box .content .login-wrapper{width:25vw;position:absolute;right:15%;top:50%;transform:translateY(-50%)}.box .content .login-wrapper h1{text-align:center;font-size:45px;color:#516473;margin-bottom:40px}.box .content .login-wrapper .login-form{margin:10px 0}.box .content .login-wrapper .login-form .form-item span{color:#516473}.box .content .login-wrapper .login-form .form-item .input-item{height:60px;border:1px solid #d6dee4}.box .content .login-wrapper .login-form .login-btn{height:50px;background-color:#3b4859;font-size:20px}.box .content .login-wrapper .divider .line{border-bottom:1px solid #d6dee4}.box .content .login-wrapper .other-login-item{border-radius:20px}.box .content .login-wrapper .other-login-item img{cursor:pointer;width:40px;height:40px}}@media (max-width: 768px){.box .content{width:100vw;height:100vh;background:url("@/assets/login_images/login_bg_phone.png") no-repeat;background-size:100% 100%;display:flex;align-items:flex-start;justify-content:center}.box .content .login-wrapper{width:70%;height:60%;padding-top:15%}.box .content .login-wrapper h1{font-size:30px;color:#fff}.box .content .login-wrapper .login-form .form-item{margin:10px 0}.box .content .login-wrapper .login-form .form-item span{color:#71818d}.box .content .login-wrapper .login-form .form-item .input-item{height:30px;border:1px solid #71818d;background-color:transparent;color:#fff}.box .content .login-wrapper .login-form .login-btn{height:40px;background-color:#eb5f5d;font-size:16px}.box .content .login-wrapper .divider .line{border-bottom:1px solid #fff}.box .content .login-wrapper .divider .divider-text{color:#fff}.box .content .login-wrapper .other-login-item{border-radius:15px}.box .content .login-wrapper .other-login-item img{cursor:pointer;width:35px;height:35px}} diff --git a/Yi.Bbs.Vue3/src/assets/styles/login.scss b/Yi.Bbs.Vue3/src/assets/styles/login.scss deleted file mode 100644 index 12fc00da..00000000 --- a/Yi.Bbs.Vue3/src/assets/styles/login.scss +++ /dev/null @@ -1,204 +0,0 @@ -* { - margin: 0; - padding: 0; -} -/*公共CSS*/ -.box { - width: 100vw; - height: 100vh; - background-color: rgb(29, 67, 89); - .content { - box-shadow: 0px 1px 6px #3b4859; - .login-wrapper { - h1 { - text-align: center; - } - .login-form { - .form-item { - margin: 20px 0; - span { - display: block; - margin: 5px 20px; - font-weight: 100; - } - .input-item { - width: 100%; - border-radius: 40px; - padding: 20px; - box-sizing: border-box; - font-size: 20px; - font-weight: 200; - &:focus { - outline: none; - } - } - } - .login-btn { - width: 100%; - border-radius: 40px; - color: #fff; - border: 0; - font-weight: 100; - margin-top: 10px; - cursor: pointer; - } - } - .divider { - width: 100%; - margin: 20px 0; - text-align: center; - display: flex; - align-items: center; - justify-content: center; - span:nth-child(1) { - flex: 1; - } - span:nth-child(3) { - flex: 1; - } - .line { - display: inline-block; - max-width: 30%; - width: 30%; - } - .divider-text { - vertical-align: middle; - margin: 0px 20px; - line-height: 0px; - display: inline-block; - width: 100px; - } - } - .other-login-wrapper { - width: 100%; - display: flex; - justify-content: center; - align-items: center; - } - .other-login-item { - border: 1px solid rgb(214, 222, 228); - padding: 10px; - margin: 10px; - cursor: pointer; - } - } - } -} -/*一般大于手机的尺寸CSS*/ -@media (min-width: 767px) { - .box { - background-color: #f0f2f5; - .content { - width: 85vw; - height: 90vh; - background: url("@/assets/login_images/login_two.jpg") no-repeat; - background-size: 90% 100%; - position: absolute; - right: 15%; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - border-radius: 20px; - background-color: #fff; - .login-wrapper { - width: 25vw; - position: absolute; - right: 15%; - top: 50%; - transform: translateY(-50%); - h1 { - text-align: center; - font-size: 45px; - color: rgb(81, 100, 115); - margin-bottom: 40px; - } - .login-form { - margin: 10px 0; - .form-item { - span { - color: rgb(81, 100, 115); - } - .input-item { - height: 60px; - border: 1px solid rgb(214, 222, 228); - } - } - .login-btn { - height: 50px; - background-color: rgb(59, 72, 89); - font-size: 20px; - } - } - .divider { - .line { - border-bottom: 1px solid rgb(214, 222, 228); - } - } - .other-login-item { - border-radius: 20px; - img { - width: 40px; - height: 40px; - } - } - } - } - } -} -/*手机端CSS*/ -@media (max-width: 768px) { - .box { - .content { - width: 100vw; - height: 100vh; - background: url("@/assets/login_images/login_bg_phone.png") no-repeat; - background-size: 100% 100%; - display: flex; - align-items: flex-start; - justify-content: center; - .login-wrapper { - width: 70%; - height: 60%; - padding-top: 15%; - h1 { - font-size: 30px; - color: #fff; - } - .login-form { - .form-item { - margin: 10px 0; - span { - color: rgb(113, 129, 141); - } - .input-item { - height: 30px; - border: 1px solid rgb(113, 129, 141); - background-color: transparent; - color: #fff; - } - } - .login-btn { - height: 40px; - background-color: rgb(235, 95, 93); - font-size: 16px; - } - } - .divider { - .line { - border-bottom: 1px solid #fff; - } - .divider-text { - color: #fff; - } - } - .other-login-item { - border-radius: 15px; - img { - width: 35px; - height: 35px; - } - } - } - } - } -} diff --git a/Yi.Bbs.Vue3/src/views/login/index.bak.vue b/Yi.Bbs.Vue3/src/views/login/index.bak.vue new file mode 100644 index 00000000..5a8eeb44 --- /dev/null +++ b/Yi.Bbs.Vue3/src/views/login/index.bak.vue @@ -0,0 +1,525 @@ + + + + + + + 返回首页 + + 已有账号立即登录 + + + + + 意社区登录 | SIGN IN + 意社区注册 | REGISTER + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ codeInfo }} + + + + + + + + + + + + + + + + + 没有账号?前往注册 + + + 登 录 + + + 注 册 + + + + + + 或者 + 其他方式登录 + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Yi.Bbs.Vue3/src/views/login/index.vue b/Yi.Bbs.Vue3/src/views/login/index.vue index 818e35f1..cc67ea7f 100644 --- a/Yi.Bbs.Vue3/src/views/login/index.vue +++ b/Yi.Bbs.Vue3/src/views/login/index.vue @@ -1,161 +1,131 @@ - - - - - - 返回首页 - - 已有账号立即登录 - - - - - 意社区登录 | SIGN IN - 意社区注册 | REGISTER - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + Hello,you can go to homepage >> + Welcome to Yi! + - {{ codeInfo }} - - - - - - - - - - - - - - - - - 没有账号?前往注册 + + + + 用户名 + + + + + + + 密码 + + + + + + + 验证码 + + + + + + + + + + + + 记住我 + + + + 登录 + 前往注册 + + + 其他方式: + + - - 登 录 + + - - 注 册 + + + 备案:赣ICP备20008025号-3 + 站长:橙子 + 联系我们 + 关于本站 + 建议反馈 + 原创站点 - - - - 或者 - 其他方式登录 - - - - + + + + - - + + + Thank Join to Yi! + + + + 用户名 + + + + + + + 电话 + + + + {{codeInfo}} + + + + + 电话验证码 + + + + + + 密码 + + + + + + 确认密码 + + + + + + + + + 注册 + 前往登录 + + - + - - - - + \ No newline at end of file
Hello,you can go to homepage >>
Welcome to Yi!
用户名
密码
验证码
其他方式:
Thank Join to Yi!
电话
电话验证码
确认密码