fix:修复 员工列表没有显示自定义头像

This commit is contained in:
anfe 2024-05-21 18:35:10 +08:00
parent 8d949e6a06
commit c31afd3ef6
3 changed files with 20 additions and 5 deletions

View File

@ -145,9 +145,21 @@ class _CheckingInStaffListPageState extends State<CheckingInStaffListPage> {
SizedBox(
width: 20.w,
),
// CustomNetworkImage(url: staffListItem.headurl!, width: 40.w , height: 40.w),
Image.asset(getTypeIcon(staffListItem.attendanceType!),
width: 60.w, height: 60.w),
if (staffListItem.headurl == null || staffListItem.headurl == '')
Image.asset(
getTypeIcon(staffListItem.attendanceType!),
width: 60.w,
height: 60.w,
)
else
ClipRRect(
borderRadius: BorderRadius.circular(100.w),
child: Image.network(
staffListItem.headurl!,
width: 60.w,
height: 60.w,
),
),
SizedBox(
width: 20.w,
),

View File

@ -1326,7 +1326,6 @@ class _LockDetailPageState extends State<LockDetailPage>
state.iSOpenLock.value = true;
state.openLockBtnState.value = 1;
state.animationController!.forward();
AppLog.log('点击开锁');
if (state.isOpenLockNeedOnline.value == 0) {
//
@ -1348,7 +1347,6 @@ class _LockDetailPageState extends State<LockDetailPage>
state.iSOpenLock.value = false;
state.openLockBtnState.value = 1;
state.animationController!.forward();
EasyLoading.showToast('正在尝试闭锁……'.tr, duration: 2000.milliseconds);
AppLog.log('长按闭锁');
if (state.isOpenLockNeedOnline.value == 0) {

View File

@ -252,6 +252,11 @@ class LockListInfoItemEntity {
data['hasGateway'] = hasGateway;
return data;
}
//
bool isLockOwnerBool(){
return isLockOwner== 1;
}
}
class Bluetooth {