diff --git a/components/login-prompt.vue b/components/login-prompt.vue index 981bb60..e59ffbc 100644 --- a/components/login-prompt.vue +++ b/components/login-prompt.vue @@ -10,7 +10,7 @@ - 如果您还没有账号,点击注册 + 如果您还没有账号,点击注册 @@ -49,6 +49,13 @@ const goLogin = () => { }); hide(); }; +// 跳转到登录页面 +const goRegister = () => { + uni.navigateTo({ + url: "/pages/start/Registration/Registration", + }); + hide(); +}; // 以访客身份继续 const continueAsVisitor = () => { diff --git a/pages/start/Registration/Registration.vue b/pages/start/Registration/Registration.vue index 8116282..50a98eb 100644 --- a/pages/start/Registration/Registration.vue +++ b/pages/start/Registration/Registration.vue @@ -1,12 +1,25 @@ @@ -192,7 +322,7 @@ function goToLogin() { flex-direction: column; align-items: center; justify-content: center; - padding: 0 40rpx; + padding: 0 70rpx; height: 100vh; background-color: #ffffff; } @@ -222,6 +352,13 @@ function goToLogin() { justify-content: flex-end; } +.icons { + margin: 20rpx; + width: 40rpx; + height: 40rpx; + /* margin-right: 10rpx; */ +} + .back-btn, .headphone-btn { font-size: 36rpx; @@ -245,6 +382,7 @@ function goToLogin() { /* text-align: left; */ /* align-self: flex-start; */ } + .switch-container { display: flex; margin-bottom: 40rpx; @@ -259,12 +397,13 @@ function goToLogin() { } .switch-item::after { - content: ''; + content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); - width: 60%; /* 控制边框宽度 */ + width: 60%; + /* 控制边框宽度 */ height: 2rpx; background-color: transparent; } @@ -275,47 +414,165 @@ function goToLogin() { } .switch-item.active::after { - content: ''; + content: ""; position: absolute; top: 60rpx; bottom: 0; left: 50%; transform: translateX(-50%); - width: 30%; /* 控制边框宽度 */ + width: 30%; + /* 控制边框宽度 */ height: 7rpx; background-color: #333333; } .input-container { width: 100%; - margin-bottom: 40rpx; +} + +/* 添加图标输入框样式 */ +.input-with-icon { + display: flex; + align-items: center; + width: 100%; + height: 80rpx; + border-bottom: 2rpx solid #e5e5e5; + margin-bottom: 20rpx; +} + +.input-icon { + width: 40rpx; + height: 40rpx; + margin: 0 20rpx; } .input-field { - width: 90%; + flex: 1; height: 80rpx; - border-radius: 20rpx; - border: 2rpx solid #e5e5e5; - padding: 0 30rpx; + padding: 15rpx 0; + font-size: 28rpx; + color: #333333; + border: none; + background-color: transparent; +} + +.phone-input-container { + display: flex; + align-items: center; + width: 95.8%; + height: 80rpx; + /* border-radius: 20rpx; */ + /* border: 2rpx solid #e5e5e5; */ + /* background-color: #f5f5f5; */ + padding: 0 10rpx; + border-bottom: 2rpx solid #e5e5e5; + margin-bottom: 20rpx; +} + +.country-code-selector { + display: flex; + align-items: center; + padding: 0 10rpx; + padding-bottom: 1rpx; + height: 100%; + /* border-right: 2rpx solid #e5e5e5; */ + /* background-color: #f5f5f5; */ + border-radius: 20rpx 0 0 20rpx; +} + +.country-code { font-size: 28rpx; color: #333333; - background-color: #f5f5f5; + margin-right: 10rpx; +} + +.country-flag-img { + width: 40rpx; + height: 40rpx; + margin-right: 10rpx; +} + +.arrow-down { + font-size: 20rpx; + color: #999999; +} + +.phone-input { + flex: 1; + width: auto; + height: 100%; + border: none; + background-color: transparent; + padding: 0 0rpx; +} + +.send-code-btn { + width: 200rpx; + height: 60rpx; + display: inline-flex; + padding: 0rpx 10rpx; + justify-content: center; + align-items: center; + gap: 10px; + border-radius: 4px; + background: #000; +} +.send-code-btn-email { + width: 200rpx; + height: 60rpx; + display: inline-flex; + padding: 0rpx 10rpx; + justify-content: center; + align-items: center; + gap: 10px; + border-radius: 4px; + background: #000; + margin-right: 15rpx; +} + +.send-code-btn-disabled { + background: #e6e6e6; + /* 禁用状态下的灰色背景 */ +} + +.send-code-btn-disabled-text { + color: #999999 !important; +} + +.send-code-text { + color: #fff; + font-size: 28rpx; +} + +.agreement-container-one { + display: flex; + align-items: center; + align-self: flex-start; + margin-bottom: 80rpx; } .agreement-container { - /* display: flex; */ + display: flex; align-items: center; margin-bottom: 40rpx; + margin-top: -75.5rpx; align-self: flex-start; } .checkbox { - width: 10rpx; - height: 10rpx; - margin-right: 30rpx; + width: 30rpx; + height: 30rpx; + margin-left: 20rpx; /* flex: content; */ } +.agreement-text-one { + font-size: 22rpx; + color: #666666; + text-align: center; + margin-left: 10rpx; +} + .agreement-text { margin-left: 20rpx; font-size: 24rpx; @@ -331,7 +588,7 @@ function goToLogin() { .register-btn { width: 100%; height: 80rpx; - background-color: #333333; + background-color: #000000; color: white; font-size: 32rpx; font-weight: bold; @@ -340,25 +597,29 @@ function goToLogin() { } .or-text { + flex-direction: column; font-size: 24rpx; color: #999999; - margin-bottom: 40rpx; + margin-bottom: 100rpx; } .third-party-login { width: 100%; margin-bottom: 60rpx; } + .third-party-text { + color: #ffffff; font-weight: bold; + white-space: pre; } .third-party-btn { width: 100%; height: 80rpx; - background-color: white; - border: 2rpx solid rgb(249, 249, 249); - border-radius: 20rpx; + background-color: rgb(0, 0, 0); + border: 2rpx solid #e5e5e5; + border-radius: 40rpx; display: flex; align-items: center; justify-content: center; @@ -367,15 +628,10 @@ function goToLogin() { color: #333333; } +.google-icon, .apple-icon { - width: 30rpx; - height: 30rpx; - margin-right: 20rpx; -} - -.google-icon { - width: 30rpx; - height: 30rpx; + width: 60rpx; + height: 60rpx; margin-right: 20rpx; } diff --git a/pages/start/login/login.vue b/pages/start/login/login.vue index 244398f..354e0d8 100644 --- a/pages/start/login/login.vue +++ b/pages/start/login/login.vue @@ -187,6 +187,12 @@ >忘记ID/密码 + + + + 占位符 + + @@ -667,8 +673,8 @@ function changeCheckbox(){ .agreement-container { display: flex; align-items: center; - margin-bottom: 40rpx; - margin-top: -75.5rpx; + margin-bottom: 30rpx; + margin-top: -60rpx; align-self: flex-start; } @@ -690,6 +696,7 @@ function changeCheckbox(){ margin-left: 20rpx; font-size: 24rpx; color: #666666; +white-space: nowrap; } .link {