蓝牙通讯初步调通
This commit is contained in:
193
pages/basics/BluetoothDebugging/BluetoothDebugging.wxss
Normal file
193
pages/basics/BluetoothDebugging/BluetoothDebugging.wxss
Normal file
@@ -0,0 +1,193 @@
|
||||
/* pages/basics/BluetoothDebugging/BluetoothDebugging.wxss */
|
||||
.container {
|
||||
min-height: 100vh;
|
||||
background-color: #f4f4f4;
|
||||
color: #333333;
|
||||
padding: 12rpx;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* 内容栏顶部 */
|
||||
.content-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
|
||||
/* 左侧导航栏 */
|
||||
.nav-tabs {
|
||||
display: flex;
|
||||
background: #ffffff;
|
||||
border: 1rpx solid #ddd;
|
||||
border-radius: 50rpx;
|
||||
padding: 2rpx;
|
||||
gap: 2rpx;
|
||||
}
|
||||
|
||||
.nav-tab {
|
||||
padding: 12rpx 26rpx;
|
||||
border-radius: 50rpx;
|
||||
font-size: 28rpx;
|
||||
transition: all 0.3s ease;
|
||||
color: #666666;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
.nav-tab.active {
|
||||
background: linear-gradient(90deg, #00C6FF, #0072FF);
|
||||
color: #fff;
|
||||
font-weight: bold;
|
||||
box-shadow: 0 2rpx 10rpx rgba(0, 114, 255, 0.3);
|
||||
}
|
||||
|
||||
/* 右侧搜索按钮 */
|
||||
.search-btn {
|
||||
background: linear-gradient(90deg, #00D977, #00B16A);
|
||||
color: #fff;
|
||||
padding: 16rpx 30rpx;
|
||||
border-radius: 50rpx;
|
||||
font-size: 26rpx;
|
||||
font-weight: bold;
|
||||
border: none;
|
||||
}
|
||||
|
||||
/* 蓝牙设备列表 */
|
||||
.device-scroll {
|
||||
max-height: calc(100vh - 260rpx);
|
||||
padding: 4rpx 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.device-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14rpx;
|
||||
background-color: #ffffff;
|
||||
border: 1rpx solid #e5e9f2;
|
||||
border-radius: 20rpx;
|
||||
padding: 12rpx 14rpx;
|
||||
margin-bottom: 14rpx;
|
||||
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.04);
|
||||
transition: all 0.25s ease;
|
||||
}
|
||||
|
||||
.device-card.connected {
|
||||
border: 2rpx solid #23c16b;
|
||||
background: linear-gradient(135deg, #f3fff7 0%, #ffffff 100%);
|
||||
box-shadow: 0 10rpx 24rpx rgba(35, 193, 107, 0.18);
|
||||
}
|
||||
|
||||
.device-avatar {
|
||||
width: 78rpx;
|
||||
height: 78rpx;
|
||||
border-radius: 50%;
|
||||
background-color: #f1f4fa;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-family: 'weui';
|
||||
color: #0f9bd7;
|
||||
box-shadow: inset 0 2rpx 6rpx rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
|
||||
.device-avatar.online {
|
||||
background: radial-gradient(circle at 30% 30%, #bdf4d6, #e8fff2 60%, #ffffff 100%);
|
||||
color: #1bbf67;
|
||||
}
|
||||
|
||||
.avatar-img {
|
||||
width: 46rpx;
|
||||
height: 46rpx;
|
||||
}
|
||||
|
||||
.device-content {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6rpx;
|
||||
}
|
||||
|
||||
.device-top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10rpx;
|
||||
}
|
||||
|
||||
.device-name-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4rpx;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.device-name {
|
||||
font-size: 30rpx;
|
||||
font-weight: 700;
|
||||
color: #1f2d3d;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.device-mac {
|
||||
font-size: 22rpx;
|
||||
color: #6b7280;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.signal-chip {
|
||||
min-width: 70rpx;
|
||||
height: 42rpx;
|
||||
padding: 0 12rpx;
|
||||
border-radius: 20rpx;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 26rpx;
|
||||
font-family: 'weui';
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.signal-img {
|
||||
width: 30rpx;
|
||||
height: 30rpx;
|
||||
}
|
||||
|
||||
.signal-chip.strong {
|
||||
background-color: rgba(35, 193, 107, 0.12);
|
||||
color: #23c16b;
|
||||
}
|
||||
|
||||
.signal-chip.medium {
|
||||
background-color: rgba(245, 158, 11, 0.14);
|
||||
color: #f59e0b;
|
||||
}
|
||||
|
||||
.signal-chip.weak {
|
||||
background-color: rgba(244, 63, 94, 0.12);
|
||||
color: #f43f5e;
|
||||
}
|
||||
|
||||
.device-bottom {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-top: 4rpx;
|
||||
}
|
||||
|
||||
.device-state {
|
||||
font-size: 24rpx;
|
||||
color: #8c9399;
|
||||
}
|
||||
|
||||
.rssi {
|
||||
font-size: 28rpx;
|
||||
color: #1f2d3d;
|
||||
font-weight: 600;
|
||||
}
|
||||
Reference in New Issue
Block a user