- Updated the login modal to include a user agreement section with clickable links to the user agreement and privacy policy. - Improved button styling and layout for better user experience. - Refactored avatar selection process to utilize local image paths, enhancing compatibility and reliability across different environments. - Added utility functions for resolving avatar file paths and selecting images from the gallery or camera. This update aims to streamline user interactions during login and avatar selection, ensuring a smoother experience.
174 lines
3.4 KiB
Plaintext
174 lines
3.4 KiB
Plaintext
/* Soul 创业派对 - 公用登录弹窗 */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
z-index: 1000;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 48rpx;
|
|
}
|
|
.modal-content {
|
|
position: relative;
|
|
width: 100%;
|
|
max-width: 560rpx;
|
|
background: #1c1c1e;
|
|
border-radius: 32rpx;
|
|
overflow: hidden;
|
|
}
|
|
.modal-close {
|
|
position: absolute;
|
|
top: 24rpx;
|
|
right: 24rpx;
|
|
z-index: 1;
|
|
padding: 16rpx;
|
|
margin: 0;
|
|
background: transparent;
|
|
border: none;
|
|
line-height: 0;
|
|
}
|
|
.login-modal {
|
|
padding: 48rpx 32rpx;
|
|
text-align: center;
|
|
}
|
|
.login-icon {
|
|
font-size: 80rpx;
|
|
display: block;
|
|
margin-bottom: 24rpx;
|
|
}
|
|
.login-title {
|
|
font-size: 36rpx;
|
|
font-weight: 700;
|
|
color: #ffffff;
|
|
display: block;
|
|
margin-bottom: 16rpx;
|
|
text-shadow: none;
|
|
-webkit-text-fill-color: #ffffff;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.login-desc {
|
|
font-size: 26rpx;
|
|
color: rgba(255, 255, 255, 0.5);
|
|
display: block;
|
|
margin-bottom: 32rpx;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.btn-login {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 16rpx;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
padding: 28rpx;
|
|
background: linear-gradient(135deg, #00CED1, #00B4D8);
|
|
color: #ffffff;
|
|
font-size: 30rpx;
|
|
font-weight: 600;
|
|
border-radius: 24rpx;
|
|
margin-bottom: 20rpx;
|
|
border: none;
|
|
line-height: 1.2;
|
|
}
|
|
.btn-login::after { border: none; }
|
|
.btn-login-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
.btn-login-disabled { opacity: 0.55; }
|
|
.btn-login[disabled] {
|
|
opacity: 0.55;
|
|
}
|
|
.login-modal-cancel {
|
|
display: block;
|
|
width: 100%;
|
|
margin-top: 8rpx;
|
|
padding: 20rpx 24rpx 8rpx;
|
|
font-size: 28rpx;
|
|
color: rgba(255, 255, 255, 0.5);
|
|
text-align: center;
|
|
background: transparent;
|
|
border: none;
|
|
box-sizing: border-box;
|
|
cursor: pointer;
|
|
}
|
|
.privacy-wechat-row {
|
|
margin: 24rpx 0;
|
|
padding: 24rpx;
|
|
background: rgba(0, 206, 209, 0.1);
|
|
border-radius: 16rpx;
|
|
}
|
|
.privacy-wechat-desc {
|
|
display: block;
|
|
font-size: 26rpx;
|
|
color: rgba(255, 255, 255, 0.8);
|
|
margin-bottom: 16rpx;
|
|
}
|
|
.privacy-agree-btn {
|
|
width: 100%;
|
|
padding: 20rpx;
|
|
background: #00CED1;
|
|
color: #fff;
|
|
font-size: 28rpx;
|
|
border-radius: 16rpx;
|
|
border: none;
|
|
}
|
|
.privacy-agree-btn::after { border: none; }
|
|
.login-agree-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: flex-start;
|
|
justify-content: flex-start;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
margin-top: 0;
|
|
margin-bottom: 32rpx;
|
|
padding: 0 8rpx;
|
|
font-size: 22rpx;
|
|
color: rgba(255, 255, 255, 0.5);
|
|
text-align: left;
|
|
}
|
|
.agree-checkbox {
|
|
width: 32rpx;
|
|
height: 32rpx;
|
|
border: 2rpx solid rgba(255, 255, 255, 0.5);
|
|
border-radius: 6rpx;
|
|
margin-right: 12rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 22rpx;
|
|
flex-shrink: 0;
|
|
}
|
|
.agree-checked {
|
|
background: #00CED1;
|
|
border-color: #00CED1;
|
|
}
|
|
.agree-text { color: rgba(255, 255, 255, 0.6); }
|
|
.agree-link {
|
|
color: #00CED1;
|
|
text-decoration: underline;
|
|
padding: 0 4rpx;
|
|
margin: 0;
|
|
background: transparent;
|
|
border: none;
|
|
font-size: inherit;
|
|
line-height: inherit;
|
|
}
|
|
|
|
/* 显式 hover 类名,避免基础库 3.x 报 hoverClass / hoverClassDisable 类型非法 */
|
|
.btn-login-hover { opacity: 0.92; }
|
|
.privacy-agree-btn-hover { opacity: 0.88; }
|