更换访客邀请手机号 更改访客邀请二维码信息房间名

hmxc
张萌 4 years ago
parent 5acd7070a2
commit 3228926762

@ -19,7 +19,7 @@ import 'package:aku_community/widget/bee_divider.dart';
import 'package:aku_community/widget/bee_scaffold.dart'; import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/widget/common_input.dart'; import 'package:aku_community/widget/common_input.dart';
import 'package:aku_community/widget/picker/bee_date_picker.dart'; import 'package:aku_community/widget/picker/bee_date_picker.dart';
import 'package:aku_community/extensions/widget_list_ext.dart';
class VisitorAccessPage extends StatefulWidget { class VisitorAccessPage extends StatefulWidget {
VisitorAccessPage({Key? key}) : super(key: key); VisitorAccessPage({Key? key}) : super(key: key);
@ -30,10 +30,19 @@ class VisitorAccessPage extends StatefulWidget {
class _VisitorAccessPageState extends State<VisitorAccessPage> { class _VisitorAccessPageState extends State<VisitorAccessPage> {
TextEditingController _userName = new TextEditingController(); TextEditingController _userName = new TextEditingController();
TextEditingController _userCarNum = new TextEditingController(); TextEditingController _userCarNum = new TextEditingController();
TextEditingController _phoneNum = TextEditingController();
DateTime? dateTime; DateTime? dateTime;
int _selectSex = 1; int _selectSex = 1;
GlobalKey<FormState> formKey = GlobalKey<FormState>(); GlobalKey<FormState> formKey = GlobalKey<FormState>();
@override
void dispose() {
_phoneNum.dispose();
_userCarNum.dispose();
_userName.dispose();
super.dispose();
}
Widget _buildHouseCard( Widget _buildHouseCard(
String title, String title,
String detail, String detail,
@ -210,6 +219,8 @@ class _VisitorAccessPageState extends State<VisitorAccessPage> {
style: TextStyle(fontSize: 28.sp, color: Color(0xff333333)), style: TextStyle(fontSize: 28.sp, color: Color(0xff333333)),
), ),
SizedBox(height: 32.w), SizedBox(height: 32.w),
Row(
children: [
Container( Container(
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
@ -231,6 +242,8 @@ class _VisitorAccessPageState extends State<VisitorAccessPage> {
], ],
), ),
), ),
],
),
SizedBox(height: 26.w), SizedBox(height: 26.w),
Divider(), Divider(),
], ],
@ -257,7 +270,7 @@ class _VisitorAccessPageState extends State<VisitorAccessPage> {
); );
if (result != null) if (result != null)
Share.share( Share.share(
'${API.host}/static/dist/index.html#/visitor?code=$result'); '请点击链接补充访客预约资料:\n${API.host}/static/dist/index.html#/visitor?code=$result');
}, },
minWidth: double.infinity, minWidth: double.infinity,
height: 96.w, height: 96.w,
@ -329,6 +342,15 @@ class _VisitorAccessPageState extends State<VisitorAccessPage> {
return null; return null;
}, },
), ),
_input(
'访客手机',
'请输入手机号',
_phoneNum,
(text) {
if (TextUtil.isEmpty(text)) return '手机号不能为空';
return null;
},
),
_sexSelect(), _sexSelect(),
_input( _input(
'是否驾车', '是否驾车',
@ -341,7 +363,7 @@ class _VisitorAccessPageState extends State<VisitorAccessPage> {
_create( _create(
appProvider.selectedHouse!.estateId, appProvider.selectedHouse!.estateId,
userProvider.userDetailModel!.type, userProvider.userDetailModel!.type,
userProvider.userDetailModel!.tel, _phoneNum.text,
), ),
_tips(), _tips(),
], ],

@ -18,7 +18,6 @@ import 'package:aku_community/model/manager/visitor_list_item_model.dart';
import 'package:aku_community/utils/headers.dart'; import 'package:aku_community/utils/headers.dart';
import 'package:aku_community/widget/bee_back_button.dart'; import 'package:aku_community/widget/bee_back_button.dart';
import 'package:aku_community/widget/buttons/bottom_button.dart'; import 'package:aku_community/widget/buttons/bottom_button.dart';
// import 'package:qr_flutter/qr_flutter.dart'; // import 'package:qr_flutter/qr_flutter.dart';
class VisitorPassportPage extends StatefulWidget { class VisitorPassportPage extends StatefulWidget {
@ -52,8 +51,8 @@ class _VisitorPassportPageState extends State<VisitorPassportPage> {
child: ListView( child: ListView(
children: [ children: [
64.hb, 64.hb,
'宁波华茂悦峰'.text.size(40.sp).white.bold.make().centered(), '${S.of(context)!.tempPlotName}'.text.size(40.sp).white.bold.make().centered(),
'1幢-1单元-702室'.text.size(30.sp).white.make().centered(), '${widget.model.roomName}'.text.size(30.sp).white.make().centered(),
32.hb, 32.hb,
Container( Container(
width: 600.w, width: 600.w,

Loading…
Cancel
Save