Files
bodyWeight/miniprogram/pages/equipment/equipment.less
T

296 lines
7.6 KiB
Plaintext

.equipment {
width: 100%;
min-height: 100%;
padding: 24rpx 32rpx;
box-sizing: border-box;
background-color: #F5F7FB;
/* 运维模式提示行 */
.ops-bar {
width: 100%;
height: 48rpx;
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 24rpx;
.ops-mode {
color: #1385FA;
height: 28rpx;
font-size: 28rpx;
line-height: 28rpx;
}
/* 描边按钮(蓝色/红色) */
.ops-btn {
width: 180rpx;
height: 48rpx;
border-radius: 8rpx;
font-size: 24rpx;
line-height: 44rpx;
text-align: center;
box-sizing: border-box;
flex-shrink: 0;
}
.ops-btn--blue {
border: 2rpx solid #1385FA;
color: #1385FA;
}
.ops-btn--red {
border: 2rpx solid #F24439;
color: #F24439;
}
}
/* 顶部卡片(渐变背景 + 设备图片占位) */
.top-banner {
width: 100%;
height: 180rpx;
overflow: hidden;
border-radius: 24rpx;
margin-bottom: 30rpx;
}
/* 已配对设备行 */
.section-bar {
width: 100%;
height: 48rpx;
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 24rpx;
.section-left {
height: 28rpx;
display: flex;
align-items: center;
.bt-icon {
width: 28rpx;
height: 28rpx;
display: flex;
margin-right: 8rpx;
align-items: center;
}
.section-title {
color: #808080;
height: 26rpx;
font-size: 26rpx;
line-height: 26rpx;
}
}
/* 描边按钮(蓝色/红色) */
.ops-btn {
width: 180rpx;
height: 48rpx;
border-radius: 8rpx;
font-size: 24rpx;
line-height: 44rpx;
text-align: center;
box-sizing: border-box;
flex-shrink: 0;
}
.ops-btn--blue {
border: 2rpx solid #1385FA;
color: #1385FA;
}
.ops-btn--red {
border: 2rpx solid #F24439;
color: #F24439;
}
}
/* 设备卡片 */
.device-card {
width: 100%;
padding: 32rpx;
border-radius: 24rpx;
background-color: #FFFFFF;
box-sizing: border-box;
margin-bottom: 24rpx;
.device-top {
width: 100%;
display: flex;
flex-wrap: nowrap;
align-items: center;
margin-bottom: 24rpx;
.device-icon {
width: 88rpx;
height: 88rpx;
overflow: hidden;
margin-right: 24rpx;
border-radius: 24rpx;
background-color: #1385FA;
}
.device-info {
flex: 1;
.device-info_ {
width: 100%;
display: flex;
flex-wrap: nowrap;
align-items: center;
justify-content: space-between;
margin-bottom: 16rpx;
.device-name {
color: #252535;
height: 32rpx;
font-size: 32rpx;
line-height: 32rpx;
}
.device-unpair {
color: #77849E;
height: 26rpx;
font-size: 26rpx;
line-height: 26rpx;
border-bottom: 2rpx solid #77849E;
}
}
.device-status {
width: 100%;
display: flex;
flex-wrap: nowrap;
.device-status_ {
height: 40rpx;
padding: 0 16rpx;
display: flex;
flex-wrap: nowrap;
align-items: center;
border-radius: 20rpx;
overflow: hidden;
background-color: #F2F3F6;
.status-dot {
width: 12rpx;
height: 12rpx;
border-radius: 50%;
background-color: #77849E;
margin-right: 8rpx;
}
.status-text {
color: #77849E;
height: 22rpx;
font-size: 22rpx;
line-height: 22rpx;
}
&.connected {
background-color: #EAFAF6;
&.status-dot {
background-color: #2AC79F;
}
&.status-text {
color: #2AC79F;
}
}
}
}
}
}
.device-meta {
width: 100%;
margin-bottom: 24rpx;
border-bottom: 2rpx solid #EAECF1;
.meta-row {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 24rpx;
.meta-label {
color: #808080;
height: 26rpx;
font-size: 26rpx;
line-height: 26rpx;
}
.meta-value {
color: #252535;
height: 26rpx;
font-size: 26rpx;
line-height: 26rpx;
}
}
}
.device-actions {
width: 100%;
gap: 12px;
display: flex;
flex-wrap: nowrap;
justify-content: space-around;
.device-action-btn {
flex: 1;
height: 56rpx;
display: flex;
flex-wrap: nowrap;
align-items: center;
justify-content: center;
border-radius: 28rpx;
border: 2rpx solid #EAECF1;
> view:nth-of-type(1) {
width: 26rpx;
height: 26rpx;
display: flex;
align-items: center;
margin-right: 10rpx;
}
> view:nth-of-type(2) {
color: #77849E;
height: 26rpx;
font-size: 26rpx;
line-height: 26rpx;
}
}
}
}
/* 添加设备按钮 */
.add-btn {
width: 100%;
height: 96rpx;
border-radius: 48rpx;
background-color: #1385FA;
display: flex;
align-items: center;
justify-content: center;
.add-icon {
width: 40rpx;
height: 40rpx;
display: flex;
align-items: center;
margin-right: 16rpx;
}
.add-text {
color: #FFFFFF;
height: 36rpx;
font-size: 36rpx;
font-weight: bolder;
line-height: 36rpx;
}
}
}