diff --git a/lib/ui/profile/house/house_owners_page.dart b/lib/ui/profile/house/house_owners_page.dart index da96b901..7c7a29f2 100644 --- a/lib/ui/profile/house/house_owners_page.dart +++ b/lib/ui/profile/house/house_owners_page.dart @@ -76,6 +76,12 @@ class _HouseOwnersPageState extends State { } } + @override + void dispose() { + _refreshController.dispose(); + super.dispose(); + } + @override Widget build(BuildContext context) { final appProvider = Provider.of(context); @@ -202,6 +208,7 @@ class _HouseOwnersPageState extends State { ), ); } + //游客身份页面显示 Widget _touristBody() { var center = Center( diff --git a/lib/ui/profile/house/user_identify_page.dart b/lib/ui/profile/house/user_identify_page.dart index 284fbaf1..941e1f88 100644 --- a/lib/ui/profile/house/user_identify_page.dart +++ b/lib/ui/profile/house/user_identify_page.dart @@ -23,10 +23,20 @@ class _UserIdentifyPageState extends State { TextEditingController _indentifyCodeController = TextEditingController(); String _sex = '请选择性别'; String _identify = '请选择身份'; + + @override + void dispose() { + _nameController.dispose(); + _phoneController.dispose(); + _indentifyCodeController.dispose(); + super.dispose(); + } + @override Widget build(BuildContext context) { return BeeScaffold( title: '用户认证', + bodyColor: Colors.white, body: ListView( padding: EdgeInsets.all(32.w), children: [ @@ -71,7 +81,9 @@ class _UserIdentifyPageState extends State { ].sepWidget(separate: 32.w.heightBox), ), bottomNavi: BottomButton( - onPressed: () {}, + onPressed: () async { + await Get.dialog(_errorDialog()); + }, child: '提交'.text.size(32.sp).bold.color(ktextPrimary).make()), ); } @@ -124,4 +136,36 @@ class _UserIdentifyPageState extends State { ], ); } + + Widget _errorDialog() { + return CupertinoAlertDialog( + title: + '账户不存在'.text.size(34.sp).color(ktextPrimary).bold.isIntrinsic.make(), + content: '原因:用户未具备相关资格' + .text + .size(26.sp) + .color(ktextPrimary) + .bold + .isIntrinsic + .make(), + actions: [ + CupertinoDialogAction( + onPressed: () { + Get.back(); + }, + child: + '返回'.text.size(34.sp).isIntrinsic.color(ktextPrimary).make()), + CupertinoDialogAction( + onPressed: () { + Get.back(); + }, + child: '修改信息' + .text + .size(34.sp) + .isIntrinsic + .color(Color(0xFFFF8200)) + .make()), + ], + ); + } }