add property role

hmxc
小赖 4 years ago
parent ddcd31654b
commit e9ebf2ebe2

@ -0,0 +1,53 @@
enum DecorationType {
///
WAIT_,
///
HAND_OUT,
///
DONE,
}
enum CHECK_TYPE {
ELECTRIC,
WATER,
WALL,
DOOR_AND_WINDOWS,
SECURITY,
}
class DecorationModel {
DateTime decorationDate;
DateTime startDate;
String checkCycle;
UserHomeModel userHomeModel;
DecorationTeamModel decorationTeamModel;
List<CHECK_TYPE> checkTypes;
}
///
class UserHomeModel {
String plot;
String detailAddr;
String userName;
String phone;
UserHomeModel({
this.plot,
this.detailAddr,
this.userName,
this.phone,
});
}
///
class DecorationTeamModel {
String name;
String userName;
String phone;
DecorationTeamModel({
this.name,
this.userName,
this.phone,
});
}

@ -10,6 +10,9 @@ enum USER_ROLE {
///
SECURITY,
///
PROPERTY,
///
EMPTY,
}
@ -66,4 +69,13 @@ class UserInfoModel {
this.role = USER_ROLE.SECURITY,
this.phone = '13918237877',
});
///
///password 000003
UserInfoModel.property({
this.nickName = '刘物业',
this.avatar,
this.role = USER_ROLE.PROPERTY,
this.phone = '18965438676',
});
}

@ -107,6 +107,9 @@ class _LoginSMSPageState extends State<LoginSMSPage> {
} else if (text == '000002') {
userProvider.setUserInfo(UserInfoModel.security());
Get.offAll(HomePage());
} else if (text == '000003') {
userProvider.setUserInfo(UserInfoModel.property());
Get.offAll(HomePage());
} else {
if (text.length == 6) BotToast.showText(text: '验证码错误');
}

Loading…
Cancel
Save