修改登录页样式

This commit is contained in:
zhouyanli
2026-05-05 16:21:56 +08:00
parent d0a0b2dbaf
commit e030bb7cb9
8 changed files with 85 additions and 64 deletions

View File

@@ -62,23 +62,25 @@
</uni-easyinput>
</view>
<!-- 协议勾选 -->
<view class="agreement-item" @click="toggleAgreement">
<uni-icons
type="checkbox-filled"
size="24"
color="#007aff"
v-if="agreeAgreement"
></uni-icons>
<uni-icons
type="checkbox"
size="24"
color="#999"
v-else
></uni-icons>
<text class="agreement-text">我已阅读并同意用户隐私政策</text>
</view>
<!-- 协议勾选 -->
<view class="agreement-item" >
<view @click="toggleAgreement">
<uni-icons
type="checkbox-filled"
size="24"
color="#007aff"
v-if="agreeAgreement"
></uni-icons>
<uni-icons
type="checkbox"
size="24"
color="#999"
v-else
></uni-icons>
</view>
<text class="agreement-text" @click.stop="goToPrivacy">我已阅读并同意<text class="agreePrivacy">用户隐私政策</text></text>
</view>
<!-- 立即注册按钮 -->
<button
@@ -107,8 +109,8 @@ const verifyCode = ref('');
const account = ref('');
const password = ref('');
const placeholderStyle = ref('font-size:24rpx')
// 协议勾选(默认勾选,和截图一致)
const agreeAgreement = ref(true);
// 协议勾选
const agreeAgreement = ref(false);
// 验证码倒计时
const countDown = ref(0);
let timer = null;
@@ -144,7 +146,12 @@ const goBack = () => {
const toggleAgreement = () => {
agreeAgreement.value = !agreeAgreement.value;
};
// 跳转隐私协议
const goToPrivacy = () => {
uni.navigateTo({
url:'/pageSubPack/loginSub/privacy',
})
}
// 检查表单状态(实时更新按钮状态)
const checkForm = () => {};
@@ -267,11 +274,12 @@ onUnmounted(() => {
font-size: 36rpx;
font-weight: 500;
color: #333;
margin-right: 100rpx;
}
/* 注册标题 */
.register-title {
font-size: 48rpx;
font-size: 40rpx;
font-weight: 600;
color: #333;
margin-bottom: 60rpx;
@@ -327,7 +335,7 @@ onUnmounted(() => {
background-color: #007aff;
color: #fff;
border-radius: 35rpx;
font-size: 28rpx;
font-size: 26rpx;
padding: 0;
margin: 0;
}
@@ -336,20 +344,26 @@ onUnmounted(() => {
background-color: #ccc;
color: #fff;
}
.get-verify-btn::after{
border-radius: 50px;
}
/* 协议勾选项 */
.agreement-item {
display: flex;
align-items: center;
margin: 40rpx 0;
margin: 70rpx 0 28rpx 0;
padding-left: 10rpx;
}
.agreement-text {
font-size: 28rpx;
font-size: 24rpx;
color: #666;
margin-left: 10rpx;
}
.agreePrivacy{
color: #2F77FD;
}
/* 立即注册按钮 */
.register-btn {
@@ -358,12 +372,12 @@ onUnmounted(() => {
line-height: 88rpx;
background-color: #007aff;
color: #fff;
border-radius: 44rpx;
font-size: 32rpx;
border-radius: 8rpx;
font-size: 28rpx;
margin-bottom: 40rpx;
}
button:after{
border-radius: 50px;
border-radius: 8px;
}
.register-btn:disabled {
background-color: #99c8ff;