379 lines
6.7 KiB
Plaintext
379 lines
6.7 KiB
Plaintext
/* WiFi 配网页 —— 五态(idle / searching / list / empty / password)共用 */
|
|
.connected-wifi {
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 30rpx 30rpx 0;
|
|
box-sizing: border-box;
|
|
background-color: #FFFFFF;
|
|
|
|
/* 顶部已连接设备卡:沿用 connectedDevice 的 device-card 规范 */
|
|
.device-card {
|
|
width: 100%;
|
|
height: 150rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 30rpx;
|
|
background-color: #FFFFFF;
|
|
border: 2rpx solid #E6E6EA;
|
|
border-radius: 16rpx;
|
|
box-sizing: border-box;
|
|
margin-bottom: 47rpx;
|
|
|
|
.card-icon {
|
|
width: 90rpx;
|
|
height: 90rpx;
|
|
overflow: hidden;
|
|
margin-right: 24rpx;
|
|
border-radius: 24rpx;
|
|
background-color: red;
|
|
}
|
|
|
|
.card-info {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
|
|
.card-name {
|
|
color: #252535;
|
|
height: 32rpx;
|
|
font-size: 32rpx;
|
|
font-weight: bold;
|
|
line-height: 32rpx;
|
|
margin-bottom: 16rpx;
|
|
}
|
|
|
|
.card-status {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
.card-dot {
|
|
width: 12rpx;
|
|
height: 12rpx;
|
|
border-radius: 50%;
|
|
margin-right: 14rpx;
|
|
background-color: #2AC79F;
|
|
}
|
|
|
|
.card-status-text {
|
|
color: #2AC79F;
|
|
height: 28rpx;
|
|
font-size: 28rpx;
|
|
font-weight: 500;
|
|
line-height: 28rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* 附近WiFi 标题行 */
|
|
.wifi-header {
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 24rpx;
|
|
|
|
.wifi-title {
|
|
color: #252535;
|
|
height: 36rpx;
|
|
font-size: 36rpx;
|
|
font-weight: bold;
|
|
line-height: 36rpx;
|
|
}
|
|
|
|
.wifi-refresh {
|
|
height: 36rpx;
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
align-items: center;
|
|
|
|
.wifi-refresh-icon {
|
|
width: 30rpx;
|
|
height: 30rpx;
|
|
margin-right: 10rpx;
|
|
}
|
|
|
|
.wifi-refresh-text {
|
|
color: #1385FA;
|
|
height: 36rpx;
|
|
font-size: 28rpx;
|
|
font-weight: 500;
|
|
line-height: 36rpx;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* 副标题:网络列表(请选择一个网络进行连接) */
|
|
.wifi-subtitle {
|
|
width: 100%;
|
|
height: 30rpx;
|
|
line-height: 30rpx;
|
|
margin-top: 40rpx;
|
|
|
|
.wifi-subtitle-text {
|
|
color: #B6B6B6;
|
|
font-size: 30rpx;
|
|
}
|
|
|
|
.wifi-subtitle-tip {
|
|
color: #B6B6B6;
|
|
font-size: 28rpx;
|
|
padding: 0 10rpx;
|
|
}
|
|
}
|
|
|
|
/* WiFi 列表 */
|
|
.wifi-list {
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
/* 列表项通用骨架 */
|
|
.wifi-item {
|
|
width: 100%;
|
|
height: 80rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 32rpx;
|
|
|
|
&:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
/* 普通项左侧:80rpx 灰底圆形 + 内嵌信号图标占位 */
|
|
.wifi-item-icon {
|
|
width: 80rpx;
|
|
height: 80rpx;
|
|
overflow: hidden;
|
|
margin-right: 24rpx;
|
|
border-radius: 50%;
|
|
background-color: #F7F7F7;
|
|
}
|
|
|
|
.wifi-item-name {
|
|
flex: 1;
|
|
color: #252535;
|
|
height: 32rpx;
|
|
font-size: 32rpx;
|
|
font-weight: 500;
|
|
line-height: 32rpx;
|
|
}
|
|
|
|
.wifi-item-arrow {
|
|
width: 10rpx;
|
|
height: 18rpx;
|
|
background-color: #B6B6B6;
|
|
flex-shrink: 0;
|
|
}
|
|
}
|
|
|
|
/* 已连接项:蓝色文字 + 右侧已连接勾 */
|
|
.wifi-item-connected {
|
|
.wifi-item-icon-connected {
|
|
width: 80rpx;
|
|
height: 80rpx;
|
|
border-radius: 50%;
|
|
background-color: rgba(19, 133, 250, 0.1);
|
|
}
|
|
|
|
.wifi-item-name-connected {
|
|
flex: 1;
|
|
color: #1385FA;
|
|
font-size: 32rpx;
|
|
font-weight: 500;
|
|
line-height: 32rpx;
|
|
margin-left: 24rpx;
|
|
}
|
|
|
|
.wifi-item-tag {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-shrink: 0;
|
|
|
|
.wifi-item-tag-text {
|
|
color: #2AC79F;
|
|
font-size: 24rpx;
|
|
font-weight: 500;
|
|
line-height: 24rpx;
|
|
margin-right: 5rpx;
|
|
}
|
|
|
|
.wifi-item-tag-check {
|
|
width: 24rpx;
|
|
height: 24rpx;
|
|
border-radius: 50%;
|
|
background-color: #2AC79F;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* 空态 */
|
|
.empty {
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
margin-top: 39rpx;
|
|
|
|
.empty-image {
|
|
width: 566rpx;
|
|
height: 499rpx;
|
|
border-radius: 16rpx;
|
|
background-color: #F5F8FF;
|
|
}
|
|
|
|
.empty-text {
|
|
color: #1385FA;
|
|
font-size: 36rpx;
|
|
font-weight: bold;
|
|
line-height: 36rpx;
|
|
margin-top: 8rpx;
|
|
}
|
|
}
|
|
|
|
/* 底部「确认」按钮:连接成功后才可点击 */
|
|
.confirm-btn {
|
|
color: #FFFFFF;
|
|
width: 580rpx;
|
|
height: 88rpx;
|
|
font-size: 32rpx;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
line-height: 88rpx;
|
|
border-radius: 44rpx;
|
|
margin: 60rpx auto 32rpx;
|
|
background-color: #1385FA;
|
|
}
|
|
|
|
.confirm-btn-disabled {
|
|
background-color: #A8C9F0;
|
|
}
|
|
|
|
/* 密码输入态:整页独立布局 */
|
|
.password-page {
|
|
width: 100%;
|
|
padding-top: 29rpx;
|
|
|
|
.password-title {
|
|
color: #252535;
|
|
font-size: 36rpx;
|
|
font-weight: bold;
|
|
line-height: 36rpx;
|
|
padding-left: 11rpx;
|
|
}
|
|
|
|
/* 已选 WiFi 行:灰底 16rpx 圆角 */
|
|
.password-ssid {
|
|
width: 100%;
|
|
height: 96rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
background-color: #F6F6F6;
|
|
border-radius: 16rpx;
|
|
padding: 0 21rpx 0 32rpx;
|
|
box-sizing: border-box;
|
|
margin-top: 39rpx;
|
|
|
|
.password-ssid-icon {
|
|
width: 45rpx;
|
|
height: 31rpx;
|
|
background-color: #B6B6B6;
|
|
border-radius: 4rpx;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.password-ssid-name {
|
|
flex: 1;
|
|
color: #252535;
|
|
font-size: 32rpx;
|
|
line-height: 32rpx;
|
|
margin-left: 49rpx;
|
|
}
|
|
|
|
.password-ssid-close {
|
|
width: 56rpx;
|
|
height: 56rpx;
|
|
border-radius: 50%;
|
|
background-color: #E6E6EA;
|
|
flex-shrink: 0;
|
|
}
|
|
}
|
|
|
|
/* 密码输入行:灰底 16rpx 圆角 */
|
|
.password-input-row {
|
|
width: 100%;
|
|
height: 96rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
background-color: #F6F6F6;
|
|
border-radius: 16rpx;
|
|
padding: 0 21rpx 0 24rpx;
|
|
box-sizing: border-box;
|
|
margin-top: 32rpx;
|
|
|
|
.password-label {
|
|
color: #252535;
|
|
font-size: 32rpx;
|
|
font-weight: 500;
|
|
line-height: 32rpx;
|
|
margin-right: 41rpx;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.password-input {
|
|
flex: 1;
|
|
color: #252535;
|
|
font-size: 32rpx;
|
|
line-height: 32rpx;
|
|
}
|
|
|
|
.password-placeholder {
|
|
color: #B6B6B6;
|
|
font-size: 32rpx;
|
|
}
|
|
|
|
.password-eye {
|
|
width: 56rpx;
|
|
height: 56rpx;
|
|
border-radius: 50%;
|
|
background-color: #E6E6EA;
|
|
margin-left: 24rpx;
|
|
flex-shrink: 0;
|
|
}
|
|
}
|
|
|
|
/* 取消 / 连接 双按钮 */
|
|
.password-actions {
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-top: 48rpx;
|
|
|
|
.btn-ghost {
|
|
width: 300rpx;
|
|
height: 88rpx;
|
|
line-height: 84rpx;
|
|
text-align: center;
|
|
color: #1385FA;
|
|
font-size: 32rpx;
|
|
border: 2rpx solid #1385FA;
|
|
border-radius: 44rpx;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.btn-primary {
|
|
width: 300rpx;
|
|
height: 88rpx;
|
|
line-height: 88rpx;
|
|
text-align: center;
|
|
color: #FFFFFF;
|
|
font-size: 32rpx;
|
|
font-weight: bold;
|
|
background-color: #1385FA;
|
|
border-radius: 44rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|