200 lines
2.8 KiB
Plaintext
200 lines
2.8 KiB
Plaintext
/* pages/mine/mine.wxss */
|
|
.container {
|
|
min-height: 100vh;
|
|
background-color: #f5f5f5;
|
|
padding-bottom: 20px;
|
|
}
|
|
|
|
/* 用户卡片 */
|
|
.user-card {
|
|
background-color: #1890ff;
|
|
padding: 40rpx 30rpx;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
|
|
.user-info {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.avatar {
|
|
width: 120rpx;
|
|
height: 120rpx;
|
|
border-radius: 60rpx;
|
|
background-color: #fff;
|
|
margin-right: 30rpx;
|
|
}
|
|
|
|
.info {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.username {
|
|
font-size: 36rpx;
|
|
color: #fff;
|
|
font-weight: bold;
|
|
margin-bottom: 10rpx;
|
|
}
|
|
|
|
.user-id {
|
|
font-size: 24rpx;
|
|
color: rgba(255, 255, 255, 0.8);
|
|
}
|
|
|
|
/* 通用区块样式 */
|
|
.status-section,
|
|
.function-section {
|
|
background-color: #fff;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
|
|
.section-title {
|
|
padding: 20rpx 30rpx;
|
|
font-size: 28rpx;
|
|
color: #999;
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
/* 状态列表 */
|
|
.status-list {
|
|
padding: 0 30rpx;
|
|
}
|
|
|
|
.status-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 30rpx 0;
|
|
border-bottom: 1rpx solid #f0f0f0;
|
|
}
|
|
|
|
.status-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.status-item .label {
|
|
font-size: 32rpx;
|
|
color: #333;
|
|
}
|
|
|
|
.status-item .status {
|
|
font-size: 28rpx;
|
|
}
|
|
|
|
/* 功能列表 */
|
|
.function-list {
|
|
padding: 0 30rpx;
|
|
}
|
|
|
|
.function-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 30rpx 0;
|
|
border-bottom: 1rpx solid #f0f0f0;
|
|
}
|
|
|
|
.function-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.function-name {
|
|
font-size: 32rpx;
|
|
color: #333;
|
|
}
|
|
|
|
.function-arrow {
|
|
font-size: 28rpx;
|
|
color: #999;
|
|
}
|
|
|
|
/* 退出登录 */
|
|
.logout-section {
|
|
padding: 40rpx 30rpx;
|
|
}
|
|
|
|
.logout-btn {
|
|
width: 100%;
|
|
height: 88rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background-color: #fff;
|
|
color: #ff4d4f;
|
|
font-size: 32rpx;
|
|
border: none;
|
|
border-radius: 8rpx;
|
|
padding: 0;
|
|
margin: 0;
|
|
line-height: 1;
|
|
}
|
|
|
|
.logout-btn::after {
|
|
border: none;
|
|
}
|
|
|
|
/* 版本信息 */
|
|
.version-info {
|
|
text-align: center;
|
|
padding: 40rpx 0;
|
|
font-size: 24rpx;
|
|
color: #999;
|
|
}
|
|
|
|
/* MQTT 连接表单 */
|
|
.mqtt-form {
|
|
padding: 10rpx 30rpx 24rpx;
|
|
}
|
|
|
|
.mqtt-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 20rpx 0;
|
|
border-bottom: 1rpx solid #f0f0f0;
|
|
}
|
|
|
|
.mqtt-label {
|
|
width: 200rpx;
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.mqtt-input {
|
|
flex: 1;
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
}
|
|
|
|
.mqtt-actions {
|
|
display: flex;
|
|
gap: 20rpx;
|
|
padding: 24rpx 0 0;
|
|
}
|
|
|
|
.btn-connect {
|
|
background-color: #1890ff;
|
|
color: #fff;
|
|
font-size: 28rpx;
|
|
}
|
|
|
|
.btn-connect[disabled] {
|
|
background-color: #a5d8ff;
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-disconnect {
|
|
background-color: #fff;
|
|
color: #ff4d4f;
|
|
border: 1rpx solid #ff4d4f;
|
|
font-size: 28rpx;
|
|
}
|
|
|
|
.mqtt-hint {
|
|
padding-top: 16rpx;
|
|
font-size: 22rpx;
|
|
color: #999;
|
|
line-height: 1.5;
|
|
} |