- 重构 configureDevice 步骤0:新增双条件控制(deviceInfo + codeSyncTime),确保连接完成且 mac 就绪后才进入下一步 - 重构 configureDevice_2:移除 userInfo 缓存读取,改为接口获取用户列表,支持动态渲染、删除用户 - 新增 configureDevice_2_addUser 组件:支持工号查询用户信息并添加到设备 - 优化用户下发逻辑:先通过 dataFetchUserID 获取设备端已有用户,仅下发新增用户 - 删除废弃页面 deviceInfo、userInfo Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
119 lines
1.9 KiB
Plaintext
119 lines
1.9 KiB
Plaintext
.bg {
|
|
position: absolute;
|
|
z-index: 1;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.home {
|
|
position: relative;
|
|
z-index: 2;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
padding: 215rpx 60rpx 120rpx;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.title {
|
|
width: 100%;
|
|
}
|
|
|
|
.title>view:nth-of-type(1) {
|
|
width: 100%;
|
|
height: 80rpx;
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
margin-bottom: 56rpx;
|
|
}
|
|
|
|
.title>view:nth-of-type(1)>view:first-of-type {
|
|
width: 80rpx;
|
|
height: 80rpx;
|
|
overflow: hidden;
|
|
border-radius: 50%;
|
|
margin-right: 20rpx;
|
|
}
|
|
|
|
.title>view:nth-of-type(1)>view:last-of-type {
|
|
color: #FFFFFF;
|
|
height: 80rpx;
|
|
line-height: 80rpx;
|
|
font-size: 28rpx;
|
|
font-weight: bold;
|
|
padding-right: 26rpx;
|
|
}
|
|
|
|
.title>view:nth-of-type(1)>view:last-of-type::after {
|
|
border-left: 5rpx solid #ffffff;
|
|
border-top: 5rpx solid #ffffff;
|
|
}
|
|
|
|
.title>view:nth-of-type(2) {
|
|
color: #FFFFFF;
|
|
height: 58rpx;
|
|
font-size: 58rpx;
|
|
font-weight: bold;
|
|
line-height: 58rpx;
|
|
margin-bottom: 34rpx;
|
|
}
|
|
|
|
.title>view:nth-of-type(3) {
|
|
color: #FFFFFF;
|
|
height: 32rpx;
|
|
font-size: 32rpx;
|
|
line-height: 32rpx;
|
|
margin-bottom: 48rpx;
|
|
}
|
|
|
|
.title>view:nth-of-type(4) {
|
|
width: 120rpx;
|
|
height: 6rpx;
|
|
border-radius: 3rpx;
|
|
background-color: #FFFFFF;
|
|
}
|
|
|
|
.addDevice {
|
|
width: 580rpx;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.addDevice>view:nth-of-type(1) {
|
|
color: #FFFFFF;
|
|
width: 100%;
|
|
height: 36rpx;
|
|
font-size: 36rpx;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
line-height: 36rpx;
|
|
margin-bottom: 30rpx;
|
|
}
|
|
|
|
.addDevice>view:nth-of-type(2) {
|
|
color: #FFFFFF;
|
|
width: 100%;
|
|
height: 30rpx;
|
|
font-size: 30rpx;
|
|
text-align: center;
|
|
line-height: 30rpx;
|
|
margin-bottom: 80rpx;
|
|
}
|
|
|
|
.addDevice>view:nth-of-type(3) {
|
|
color: #FFFFFF;
|
|
width: 100%;
|
|
height: 106rpx;
|
|
font-size: 32rpx;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
line-height: 106rpx;
|
|
border-radius: 16rpx;
|
|
border: 1rpx solid #FFFFFF;
|
|
}
|