pull/1/head
戴余标 2 years ago
parent 1f9ca3d723
commit e42684dc9e

@ -112,8 +112,8 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
UserTool.appProvider.pickedCityAndCommunity!.communityModel!
.id);
if (response.data['success']) {
await UserTool.dataProvider.addHistories();
await UserTool.userProvider.setLogin(response.data['data']);
await UserTool.dataProvider.addHistories();
} else {
BotToast.showText(text: response.data['msg']);
if (response.data['msg'] == '该账户未设置密码,请使用验证码登录') {

@ -26,6 +26,7 @@ class _FacilityAppointmentPageState extends State<FacilityAppointmentPage>
_tabController = TabController(length: 2, vsync: this);
}
@override
void dispose() {
_tabController.dispose();

@ -41,7 +41,7 @@ class _FacilityPreorderPageState extends State<FacilityPreorderPage> {
List<int> dateList = [];
DateTime? date;
bool get canTap => dateList.isNotEmpty;
bool get canTap => dateList.isNotEmpty&&UserTool.userProvider.defaultHouse!=null;
@override
Widget build(BuildContext context) {
@ -63,7 +63,7 @@ class _FacilityPreorderPageState extends State<FacilityPreorderPage> {
),
onTap: () => Get.to(() => AdviceHousePage()),
title: Text(
UserTool.userProvider.userInfoModel!.name??'请先选择房屋',
UserTool.userProvider.userInfoModel!.name??'',
style: TextStyle(
fontSize: 30.sp,
),
@ -76,7 +76,13 @@ class _FacilityPreorderPageState extends State<FacilityPreorderPage> {
color: Colors.black.withOpacity(0.45),
fontSize: 26.sp,
),
):SizedBox(),
):Text(
'请先绑定房屋',
style: TextStyle(
color: Colors.black.withOpacity(0.45),
fontSize: 26.sp,
),
),
trailing: Icon(
CupertinoIcons.chevron_forward,
size: 35.w,

@ -175,7 +175,7 @@ class MyPainter extends CustomPainter {
..color = dates!.contains(i)
? kPrimaryColor
: i < getNum(start!) ||
i > getNum(end!) ||
i >= getNum(end!) ||
i < getNum(DateTime.now())
? ktextThirdColor
: Colors.transparent

Loading…
Cancel
Save