diff --git a/pages/start/components/login-prompt/login-prompt.vue b/pages/start/components/login-prompt/login-prompt.vue
deleted file mode 100644
index 52d43b1..0000000
--- a/pages/start/components/login-prompt/login-prompt.vue
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-
-
- 登录以获得更好的体验
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pages/start/login/login.vue b/pages/start/login/login.vue
index ab5e5d7..244398f 100644
--- a/pages/start/login/login.vue
+++ b/pages/start/login/login.vue
@@ -9,12 +9,16 @@
<
-->
-
+
@@ -29,32 +33,45 @@
邮箱/用户名用户名
手机号邮箱
-
+
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ 接受 用户协议 和
+ 隐私政策
+
+
+ 忘记ID/密码
+
-
+
- 或者
+ 如果您还没有账号,点击注册 >
+
@@ -117,7 +204,7 @@
src="../../../static/icons/appleIcons.png"
mode="aspectFit"
>
- 通过 Apple 继续
+ 通过 Apple 登录
@@ -126,15 +213,9 @@
src="../../../static/icons/GoogleIcons.png"
mode="aspectFit"
>
- 通过 Google 继续
+ 通过 Google 登录
-
-
-
- 未注册账号?
- 注册
-
@@ -151,6 +232,9 @@ const switchType = ref("Email"); // 默认是邮箱注册
const { safeAreaInsets } = uni.getSystemInfoSync();
const codeBtnText = ref("获取验证码");
const isCodeBtnDisabled = ref(false); // 添加验证码按钮禁用状态
+const checkboxUrl = ref("../../../static/icons/Check-one-false.png");
+
+
// 使用从list.js导入的完整国家列表数据
const countries = ref(
@@ -183,7 +267,14 @@ function showCountryPicker() {
function goToIndex() {
// 返回上一页
- uni.navigateTo({ url: "/pages/start/index/index" });
+ uni.navigateTo({
+ url: "/pages/start/index/index",
+ });
+}
+
+function switchUser() {
+ // 切换到手机注册
+ switchType.value = "User";
}
function switchEmail() {
@@ -236,7 +327,6 @@ function loginWithApple() {
uni.getUserInfo({
provider: "apple",
success: function (info) {
- // 获取用户信息成功, info.authResult中保存登录认证数据
console.log(info);
},
});
@@ -259,7 +349,6 @@ function loginWithGoogle() {
uni.getUserInfo({
provider: "google",
success: function (info) {
- // 获取用户信息成功, info.authResult保存用户信息
console.log(info);
},
});
@@ -290,27 +379,53 @@ function onPhoneInput(e) {
}
}
-function sendCode(){
+function sendCode() {
// 如果按钮已禁用,则不执行后续逻辑
if (isCodeBtnDisabled.value) return;
-
+
// 设置按钮为禁用状态
isCodeBtnDisabled.value = true;
- codeBtnText.value = "重新发送"
- let time = 6
+ codeBtnText.value = "重新发送";
+ let time = 6;
const timer = setInterval(() => {
- time--
- codeBtnText.value = "重新发送 " + time + "s"
+ time--;
+ codeBtnText.value = "重新发送 " + time + "s";
if (time <= 0) {
- clearInterval(timer)
- codeBtnText.value = "重新发送"
+ clearInterval(timer);
+ codeBtnText.value = "重新发送";
// 倒计时结束后启用按钮
isCodeBtnDisabled.value = false;
}
- }, 1000)
-
+ }, 1000);
+
+ return;
+}
+
+function openAgreement() {
+ // 打开用户协议
+ console.log("打开用户协议");
+ uni.navigateTo({
+ url: "/pages/start/agreement/agreement",
+ });
+}
+
+function openPrivacy() {
+ // 打开隐私政策
+ console.log("打开隐私政策");
+ uni.navigateTo({
+ url: "/pages/start/privacy/privacy",
+ });
+}
- return
+function recoverPassword() {
+ // 忘记密码
+ console.log("忘记密码");
+}
+
+
+function changeCheckbox(){
+ agreed.value = !agreed.value;
+ checkboxUrl.value = agreed.value ? "../../../static/icons/Check-one-true.png" : "../../../static/icons/Check-one-false.png";
}
@@ -320,7 +435,7 @@ function sendCode(){
flex-direction: column;
align-items: center;
justify-content: center;
- padding: 0 40rpx;
+ padding: 0 70rpx;
height: 100vh;
background-color: #ffffff;
}
@@ -356,6 +471,7 @@ function sendCode(){
height: 40rpx;
/* margin-right: 10rpx; */
}
+
.back-btn,
.headphone-btn {
font-size: 36rpx;
@@ -379,6 +495,7 @@ function sendCode(){
/* text-align: left; */
/* align-self: flex-start; */
}
+
.switch-container {
display: flex;
margin-bottom: 40rpx;
@@ -398,7 +515,8 @@ function sendCode(){
bottom: 0;
left: 50%;
transform: translateX(-50%);
- width: 60%; /* 控制边框宽度 */
+ width: 60%;
+ /* 控制边框宽度 */
height: 2rpx;
background-color: transparent;
}
@@ -415,14 +533,14 @@ function sendCode(){
bottom: 0;
left: 50%;
transform: translateX(-50%);
- width: 30%; /* 控制边框宽度 */
+ width: 30%;
+ /* 控制边框宽度 */
height: 7rpx;
background-color: #333333;
}
.input-container {
width: 100%;
- margin-bottom: 40rpx;
}
/* 添加图标输入框样式 */
@@ -498,7 +616,7 @@ function sendCode(){
height: 100%;
border: none;
background-color: transparent;
- padding: 0 20rpx;
+ padding: 0 0rpx;
}
.send-code-btn {
@@ -512,34 +630,62 @@ function sendCode(){
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; /* 禁用状态下的灰色背景 */
+ background: #e6e6e6;
+ /* 禁用状态下的灰色背景 */
}
+
.send-code-btn-disabled-text {
color: #999999 !important;
}
-
-.send-code-text{
+.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;
@@ -573,14 +719,17 @@ function sendCode(){
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;
+ background-color: rgb(0, 0, 0);
border: 2rpx solid #e5e5e5;
border-radius: 40rpx;
display: flex;
@@ -591,15 +740,10 @@ function sendCode(){
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/static/icons/Check-one-false.png b/static/icons/Check-one-false.png
new file mode 100644
index 0000000..e924fd2
Binary files /dev/null and b/static/icons/Check-one-false.png differ
diff --git a/static/icons/Check-one-true.png b/static/icons/Check-one-true.png
new file mode 100644
index 0000000..d02e946
Binary files /dev/null and b/static/icons/Check-one-true.png differ