修改登录页样式
This commit is contained in:
@@ -180,9 +180,10 @@ const handleConfirm = () => {
|
|||||||
line-height: 88rpx;
|
line-height: 88rpx;
|
||||||
background-color: #007aff;
|
background-color: #007aff;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border-radius: 44rpx;
|
border-radius: 8rpx;
|
||||||
font-size: 32rpx;
|
font-size: 28rpx;
|
||||||
margin-top: 20rpx;
|
margin-top: 20rpx;
|
||||||
|
margin-top: 66rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 确定按钮禁用状态 */
|
/* 确定按钮禁用状态 */
|
||||||
@@ -192,6 +193,6 @@ const handleConfirm = () => {
|
|||||||
}
|
}
|
||||||
/* 禁用按钮边框 */
|
/* 禁用按钮边框 */
|
||||||
button:after{
|
button:after{
|
||||||
border-radius: 50px;
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -147,6 +147,7 @@ const goBack = () => {
|
|||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #333;
|
color: #333;
|
||||||
|
margin-right: 100rpx;
|
||||||
}
|
}
|
||||||
/* 输入框通用样式 */
|
/* 输入框通用样式 */
|
||||||
.input-item {
|
.input-item {
|
||||||
@@ -205,6 +206,9 @@ const goBack = () => {
|
|||||||
background-color: #ccc;
|
background-color: #ccc;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
.get-verify-btn::after{
|
||||||
|
border-radius: 50px;
|
||||||
|
}
|
||||||
/* 下一步按钮 */
|
/* 下一步按钮 */
|
||||||
.forget-btn{
|
.forget-btn{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -212,9 +216,10 @@ const goBack = () => {
|
|||||||
line-height: 88rpx;
|
line-height: 88rpx;
|
||||||
background-color: #007aff;
|
background-color: #007aff;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border-radius: 44rpx;
|
border-radius: 8rpx;
|
||||||
font-size: 32rpx;
|
font-size: 28rpx;
|
||||||
margin-bottom: 40rpx;
|
margin-bottom: 40rpx;
|
||||||
|
margin-top: 66rpx;
|
||||||
}
|
}
|
||||||
.forget-btn:disabled{
|
.forget-btn:disabled{
|
||||||
background-color: #99c8ff;
|
background-color: #99c8ff;
|
||||||
@@ -222,7 +227,7 @@ const goBack = () => {
|
|||||||
}
|
}
|
||||||
/* 禁用按钮边框 */
|
/* 禁用按钮边框 */
|
||||||
button:after{
|
button:after{
|
||||||
border-radius: 50px;
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -255,11 +255,11 @@ onUnmounted(() => {
|
|||||||
|
|
||||||
/* 登录标题 */
|
/* 登录标题 */
|
||||||
.login-title {
|
.login-title {
|
||||||
font-size: 48rpx;
|
font-size: 52rpx;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #333;
|
color: #333;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-bottom: 80rpx;
|
margin-bottom: 142rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 输入框项 */
|
/* 输入框项 */
|
||||||
@@ -324,18 +324,21 @@ onUnmounted(() => {
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
border-radius: 50px;
|
border-radius: 50px;
|
||||||
}
|
}
|
||||||
|
.get-verify-btn::after{
|
||||||
|
border-radius: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
/* 协议勾选项 */
|
/* 协议勾选项 */
|
||||||
.agreement-item {
|
.agreement-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin: 40rpx 0;
|
margin: 70rpx 0 28rpx 0;
|
||||||
padding-left: 10rpx;
|
padding-left: 10rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 协议文本 */
|
/* 协议文本 */
|
||||||
.agreement-text {
|
.agreement-text {
|
||||||
font-size: 28rpx;
|
font-size: 24rpx;
|
||||||
color: #666;
|
color: #666;
|
||||||
margin-left: 10rpx;
|
margin-left: 10rpx;
|
||||||
}
|
}
|
||||||
@@ -352,8 +355,8 @@ onUnmounted(() => {
|
|||||||
line-height: 88rpx;
|
line-height: 88rpx;
|
||||||
background-color: #007aff;
|
background-color: #007aff;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border-radius: 44rpx;
|
border-radius: 8rpx;
|
||||||
font-size: 32rpx;
|
font-size: 28rpx;
|
||||||
margin-bottom: 60rpx;
|
margin-bottom: 60rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -365,7 +368,7 @@ onUnmounted(() => {
|
|||||||
}
|
}
|
||||||
/* 禁用按钮边框 */
|
/* 禁用按钮边框 */
|
||||||
button:after{
|
button:after{
|
||||||
border-radius: 50px;
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 底部链接 */
|
/* 底部链接 */
|
||||||
|
|||||||
@@ -79,8 +79,7 @@ const phoneNumber = ref('');
|
|||||||
const password = ref('');
|
const password = ref('');
|
||||||
const agreeAgreement = ref(false); // 默认勾选
|
const agreeAgreement = ref(false); // 默认勾选
|
||||||
const placeholderStyle = ref('font-size:24rpx')
|
const placeholderStyle = ref('font-size:24rpx')
|
||||||
// 控制点击变色
|
|
||||||
// const isClicked = ref(false)
|
|
||||||
|
|
||||||
// 计算属性:是否可登录(帐号+密码+协议都满足)
|
// 计算属性:是否可登录(帐号+密码+协议都满足)
|
||||||
const canLogin = computed(() => {
|
const canLogin = computed(() => {
|
||||||
@@ -96,8 +95,6 @@ const toggleAgreement = () => {
|
|||||||
|
|
||||||
// 跳转隐私协议
|
// 跳转隐私协议
|
||||||
const goToPrivacy = () => {
|
const goToPrivacy = () => {
|
||||||
// 点击变色
|
|
||||||
// isClicked.value = true
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/pageSubPack/loginSub/privacy',
|
url:'/pageSubPack/loginSub/privacy',
|
||||||
})
|
})
|
||||||
@@ -188,11 +185,11 @@ const handleLogin = () => {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.login-title {
|
.login-title {
|
||||||
font-size: 48rpx;
|
font-size: 52rpx;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #333;
|
color: #333;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-bottom: 80rpx;
|
margin-bottom: 142rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-item {
|
.input-item {
|
||||||
@@ -223,7 +220,7 @@ const handleLogin = () => {
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin: 40rpx 0;
|
margin: 70rpx 0 28rpx 0;
|
||||||
padding: 0 10rpx;
|
padding: 0 10rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -233,7 +230,7 @@ const handleLogin = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.agreement-text {
|
.agreement-text {
|
||||||
font-size: 28rpx;
|
font-size: 24rpx;
|
||||||
color: #666;
|
color: #666;
|
||||||
margin-left: 10rpx;
|
margin-left: 10rpx;
|
||||||
}
|
}
|
||||||
@@ -245,8 +242,8 @@ const handleLogin = () => {
|
|||||||
} */
|
} */
|
||||||
|
|
||||||
.forget-pwd {
|
.forget-pwd {
|
||||||
font-size: 28rpx;
|
font-size: 24rpx;
|
||||||
color: #007aff;
|
color: #666;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -256,8 +253,8 @@ const handleLogin = () => {
|
|||||||
line-height: 88rpx;
|
line-height: 88rpx;
|
||||||
background-color: #007aff;
|
background-color: #007aff;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border-radius: 44rpx;
|
border-radius: 8rpx;
|
||||||
font-size: 32rpx;
|
font-size: 28rpx;
|
||||||
margin-bottom: 60rpx;
|
margin-bottom: 60rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -269,7 +266,7 @@ const handleLogin = () => {
|
|||||||
}
|
}
|
||||||
/* 禁用按钮边框 */
|
/* 禁用按钮边框 */
|
||||||
button:after{
|
button:after{
|
||||||
border-radius: 50px;
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bottom-link {
|
.bottom-link {
|
||||||
|
|||||||
@@ -62,23 +62,25 @@
|
|||||||
</uni-easyinput>
|
</uni-easyinput>
|
||||||
|
|
||||||
</view>
|
</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>
|
||||||
|
|
||||||
<!-- 协议勾选 -->
|
|
||||||
<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>
|
|
||||||
|
|
||||||
<!-- 立即注册按钮 -->
|
<!-- 立即注册按钮 -->
|
||||||
<button
|
<button
|
||||||
@@ -107,8 +109,8 @@ const verifyCode = ref('');
|
|||||||
const account = ref('');
|
const account = ref('');
|
||||||
const password = ref('');
|
const password = ref('');
|
||||||
const placeholderStyle = ref('font-size:24rpx')
|
const placeholderStyle = ref('font-size:24rpx')
|
||||||
// 协议勾选(默认勾选,和截图一致)
|
// 协议勾选
|
||||||
const agreeAgreement = ref(true);
|
const agreeAgreement = ref(false);
|
||||||
// 验证码倒计时
|
// 验证码倒计时
|
||||||
const countDown = ref(0);
|
const countDown = ref(0);
|
||||||
let timer = null;
|
let timer = null;
|
||||||
@@ -144,7 +146,12 @@ const goBack = () => {
|
|||||||
const toggleAgreement = () => {
|
const toggleAgreement = () => {
|
||||||
agreeAgreement.value = !agreeAgreement.value;
|
agreeAgreement.value = !agreeAgreement.value;
|
||||||
};
|
};
|
||||||
|
// 跳转隐私协议
|
||||||
|
const goToPrivacy = () => {
|
||||||
|
uni.navigateTo({
|
||||||
|
url:'/pageSubPack/loginSub/privacy',
|
||||||
|
})
|
||||||
|
}
|
||||||
// 检查表单状态(实时更新按钮状态)
|
// 检查表单状态(实时更新按钮状态)
|
||||||
const checkForm = () => {};
|
const checkForm = () => {};
|
||||||
|
|
||||||
@@ -267,11 +274,12 @@ onUnmounted(() => {
|
|||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #333;
|
color: #333;
|
||||||
|
margin-right: 100rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 注册标题 */
|
/* 注册标题 */
|
||||||
.register-title {
|
.register-title {
|
||||||
font-size: 48rpx;
|
font-size: 40rpx;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #333;
|
color: #333;
|
||||||
margin-bottom: 60rpx;
|
margin-bottom: 60rpx;
|
||||||
@@ -327,7 +335,7 @@ onUnmounted(() => {
|
|||||||
background-color: #007aff;
|
background-color: #007aff;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border-radius: 35rpx;
|
border-radius: 35rpx;
|
||||||
font-size: 28rpx;
|
font-size: 26rpx;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
@@ -336,20 +344,26 @@ onUnmounted(() => {
|
|||||||
background-color: #ccc;
|
background-color: #ccc;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
.get-verify-btn::after{
|
||||||
|
border-radius: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
/* 协议勾选项 */
|
/* 协议勾选项 */
|
||||||
.agreement-item {
|
.agreement-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin: 40rpx 0;
|
margin: 70rpx 0 28rpx 0;
|
||||||
padding-left: 10rpx;
|
padding-left: 10rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.agreement-text {
|
.agreement-text {
|
||||||
font-size: 28rpx;
|
font-size: 24rpx;
|
||||||
color: #666;
|
color: #666;
|
||||||
margin-left: 10rpx;
|
margin-left: 10rpx;
|
||||||
}
|
}
|
||||||
|
.agreePrivacy{
|
||||||
|
color: #2F77FD;
|
||||||
|
}
|
||||||
|
|
||||||
/* 立即注册按钮 */
|
/* 立即注册按钮 */
|
||||||
.register-btn {
|
.register-btn {
|
||||||
@@ -358,12 +372,12 @@ onUnmounted(() => {
|
|||||||
line-height: 88rpx;
|
line-height: 88rpx;
|
||||||
background-color: #007aff;
|
background-color: #007aff;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border-radius: 44rpx;
|
border-radius: 8rpx;
|
||||||
font-size: 32rpx;
|
font-size: 28rpx;
|
||||||
margin-bottom: 40rpx;
|
margin-bottom: 40rpx;
|
||||||
}
|
}
|
||||||
button:after{
|
button:after{
|
||||||
border-radius: 50px;
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
.register-btn:disabled {
|
.register-btn:disabled {
|
||||||
background-color: #99c8ff;
|
background-color: #99c8ff;
|
||||||
|
|||||||
@@ -233,7 +233,7 @@ onLoad(() =>{
|
|||||||
.auth-container {
|
.auth-container {
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
padding: 30rpx 20rpx;
|
padding: 40rpx 42rpx;
|
||||||
margin-bottom: 60rpx;
|
margin-bottom: 60rpx;
|
||||||
position: relative;
|
position: relative;
|
||||||
top: -86px;
|
top: -86px;
|
||||||
@@ -242,9 +242,10 @@ onLoad(() =>{
|
|||||||
.auth-title {
|
.auth-title {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
|
font-weight: 500;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
padding-bottom: 20rpx;
|
padding-bottom: 20rpx;
|
||||||
border-bottom: 1px solid #e5e5e5;
|
/* border-bottom: 1px solid #e5e5e5; */
|
||||||
margin-bottom: 30rpx;
|
margin-bottom: 30rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -275,14 +276,14 @@ onLoad(() =>{
|
|||||||
|
|
||||||
/* 门图标 */
|
/* 门图标 */
|
||||||
.door-icon {
|
.door-icon {
|
||||||
width: 80rpx;
|
width: 126rpx;
|
||||||
height: 80rpx;
|
height: 114rpx;
|
||||||
/* background-color: #f5f5f5; */
|
/* background-color: #f5f5f5; */
|
||||||
border-radius: 10rpx;
|
border-radius: 10rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin-bottom: 15rpx;
|
margin-bottom: 44rpx;
|
||||||
}
|
}
|
||||||
.icon-text {
|
.icon-text {
|
||||||
/* font-size: 40rpx; */
|
/* font-size: 40rpx; */
|
||||||
@@ -320,7 +321,7 @@ onLoad(() =>{
|
|||||||
line-height: 88rpx;
|
line-height: 88rpx;
|
||||||
background-color: #2F77FD;
|
background-color: #2F77FD;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 32rpx;
|
font-size: 28rpx;
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
>
|
>
|
||||||
<!-- 访客基本信息 -->
|
<!-- 访客基本信息 -->
|
||||||
<view class="item-header">
|
<view class="item-header">
|
||||||
<text class="visitor-name" :class="item.status">来访者:{{ item.name }}</text>
|
<text class="visitor-name" :class="item.status">来访者:{{ item.visitorName }}</text>
|
||||||
<text class="status-tag" :class="item.status">{{ item.statusText }}</text>
|
<text class="status-tag" :class="item.status">{{ item.statusText }}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -121,8 +121,8 @@ const fetchVisitorList = async () => {
|
|||||||
let params = {userId:userId}
|
let params = {userId:userId}
|
||||||
try {
|
try {
|
||||||
const res = await getVisitorList(params)
|
const res = await getVisitorList(params)
|
||||||
visitorList.value = mapData(res.data|| [])
|
// visitorList.value = mapData(res.data|| [])
|
||||||
// visitorList.value = res.data || []
|
visitorList.value = res.data || []
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error('获取访客列表失败:', e)
|
console.error('获取访客列表失败:', e)
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ const handleBtnClick = () => {
|
|||||||
/* 单个进度点 */
|
/* 单个进度点 */
|
||||||
.dot {
|
.dot {
|
||||||
width: 16rpx;
|
width: 16rpx;
|
||||||
height: 16rpx;
|
height: 8rpx;
|
||||||
border-radius: 8rpx;
|
border-radius: 8rpx;
|
||||||
background-color: #ddd;
|
background-color: #ddd;
|
||||||
margin: 0 8rpx;
|
margin: 0 8rpx;
|
||||||
@@ -176,7 +176,7 @@ const handleBtnClick = () => {
|
|||||||
/* 激活的进度点 */
|
/* 激活的进度点 */
|
||||||
.dot.active {
|
.dot.active {
|
||||||
background-color: #007aff;
|
background-color: #007aff;
|
||||||
width: 40rpx;
|
width: 28rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 按钮容器 */
|
/* 按钮容器 */
|
||||||
|
|||||||
Reference in New Issue
Block a user