新增访客邀请页面跳转逻辑修改

hmxc
小赖 4 years ago
parent 243151b462
commit 28c9919f23

@ -325,7 +325,7 @@ class _VisitorAccessPageState extends State<VisitorAccessPage> {
await ManagerFunc.insertVisitorInfo(id, type, _userName.text, await ManagerFunc.insertVisitorInfo(id, type, _userName.text,
_selectSex, tel, _userCarNum.text, dateTime); _selectSex, tel, _userCarNum.text, dateTime);
cancel(); cancel();
Get.back(); Get.off(VisitorRecordPage());
}, },
child: Container( child: Container(
alignment: Alignment.center, alignment: Alignment.center,
@ -367,8 +367,8 @@ class _VisitorAccessPageState extends State<VisitorAccessPage> {
return BeeScaffold( return BeeScaffold(
title: '访客通行', title: '访客通行',
actions: [ actions: [
InkWell( MaterialButton(
onTap: () { onPressed: () {
VisitorRecordPage().to(); VisitorRecordPage().to();
}, },
child: Container( child: Container(

Loading…
Cancel
Save