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

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

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

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

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

Loading…
Cancel
Save