蓝牙调试页面初步完成
This commit is contained in:
@@ -405,7 +405,7 @@ wx.createSelectorQuery()
|
||||
that.setData({
|
||||
faceSNCode: code
|
||||
});
|
||||
debugger
|
||||
// debugger
|
||||
that.GetFaceSNOK();
|
||||
},
|
||||
fail: (err) => {
|
||||
|
||||
@@ -35,11 +35,13 @@
|
||||
</view>
|
||||
|
||||
<scroll-view scroll-y scroll-into-view="{{toView}}" id="myScroll" style="height:{{scrollHeight}}rpx;" >
|
||||
<view class='nav-list1 bg-white' style="margin-top: 20rpx;">
|
||||
<view class='nav-list1' style="margin-top: 20rpx;">
|
||||
<view bindtap="goFaceDetail" data-room="{{item.RoomNumber}}" data-hotel="{{Hotelinfo.HotelName}}"
|
||||
data-status="{{item.FaceStatus}}" data-faceSN="{{item.FaceSN}}" hover-class="navigator-hover" class="nav-li4 bg-{{item.FaceStatus===true? 'cyan':'gray'}}" wx:for="{{HostsDataFilters}}" id="msg-{{index}}" wx:key="index">
|
||||
<view style="font-size: 28rpx;justify-content:start" >{{item.RoomNumber}}</view>
|
||||
<view style="font-size: 18rpx;justify-content:start;color:{{item.FaceSN && !item.FaceStatus ? 'red' : 'gray'}}" >{{item.FaceSN || '未绑定'}}</view>
|
||||
data-status="{{item.FaceStatus}}" data-faceSN="{{item.FaceSN}}" hover-class="navigator-hover" class="nav-li4 {{item.FaceStatus===true? 'online':'offline'}}" wx:for="{{HostsDataFilters}}" id="msg-{{index}}" wx:key="index">
|
||||
<view style="font-size: 28rpx;justify-content:start" >{{item.RoomNumber}}</view>
|
||||
<view style="font-size: 18rpx;justify-content:start; color: {{(!item.FaceSN && item.FaceStatus !== true) ? '#FF3B30' : (item.FaceSN && !item.FaceStatus ? 'red' : '#666666')}};" >
|
||||
{{ item.FaceSN || (item.FaceStatus !== true ? '点击扫码绑定人脸机' : '') }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
padding: 0 10rpx;
|
||||
background-color: #F0F0F0; /* 房间卡片的大框背景色 */
|
||||
}
|
||||
|
||||
/* 房间项样式 */
|
||||
@@ -28,22 +29,14 @@
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
/* 在线状态样式 */
|
||||
.bg-green {
|
||||
background-color: #4CD964;
|
||||
color: white;
|
||||
/* 在线/离线样式(改为 online/offline 以便跨页面复用) */
|
||||
.nav-li4.online {
|
||||
background-color: #FFFFFF; /* 在线高亮白 */
|
||||
color: #111111;
|
||||
}
|
||||
|
||||
/* 青色在线状态样式 */
|
||||
.bg-cyan {
|
||||
background-color: #00BCD4;
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* 离线状态样式 */
|
||||
.bg-gray {
|
||||
background-color: #E5E5EA;
|
||||
color: #8E8E93;
|
||||
.nav-li4.offline {
|
||||
background-color: #C9CBCA; /* 设备离线浅灰色 */
|
||||
color: #111111;
|
||||
}
|
||||
|
||||
/* 搜索框样式 */
|
||||
|
||||
Reference in New Issue
Block a user