张萌 4 years ago
commit c9dec9df5b

@ -209,16 +209,17 @@ class _LifePayPageState extends State<LifePayPage> {
return BeeScaffold(
title: '生活缴费',
actions: [
InkWell(
onTap: () {
LifePayRecordPage().to();
},
child: Container(
padding: EdgeInsets.fromLTRB(32.w, 28.w, 32.w, 20.w),
alignment: Alignment.center,
child: '缴费记录'.text.black.size(28.sp).make(),
),
),
//TODO
// InkWell(
// onTap: () {
// LifePayRecordPage().to();
// },
// child: Container(
// padding: EdgeInsets.fromLTRB(32.w, 28.w, 32.w, 20.w),
// alignment: Alignment.center,
// child: '缴费记录'.text.black.size(28.sp).make(),
// ),
// ),
],
body: BeeListView(
path: API.manager.dailyPaymentList,

@ -56,7 +56,9 @@ class _MyHousePageState extends State<MyHousePage> {
super.initState();
if (widget.needFindPayTag) {
ManagerFunc.findEstatelsPayment().then((value) {
_list = value.data;
_list = (value.data as List)
.map((e) => EstatePaymentModel.fromJson(e))
.toList();
return _list;
});
}

@ -167,7 +167,7 @@ class ManagerFunc {
API.manager.findEstatelsPament,
showMessage: false,
);
return baseModel.data;
return baseModel;
}
static Future<VotingDetailModel> voteDetail(int id) async {
@ -204,7 +204,7 @@ class ManagerFunc {
API.manager.questionnaireSubmit,
params: {
'id': id,
'appQuestionnaireAnswerSubmits':model,
'appQuestionnaireAnswerSubmits': model,
},
showMessage: true,
);

@ -2,6 +2,7 @@
import 'dart:io';
// Flutter imports:
import 'package:akuCommunity/widget/picker/bee_custom_picker.dart';
import 'package:akuCommunity/widget/picker/bee_date_picker.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
@ -130,42 +131,24 @@ class _UserProfilePageState extends State<UserProfilePage> {
_buildTile(
'性别',
userProvider.userInfoModel.sexValue.text.make(),
onPressed: () {
showCupertinoDialog(
context: context,
builder: (context) {
return CupertinoAlertDialog(
title: '请选择'.text.isIntrinsic.make(),
content: SizedBox(
child: CupertinoPicker(
itemExtent: 50,
onSelectedItemChanged: (index) {
_sex = index + 1;
},
children: [
''.text.isIntrinsic.make().centered(),
''.text.isIntrinsic.make().centered(),
],
useMagnifier: true,
),
height: 300.w,
),
actions: [
CupertinoDialogAction(
child: '取消'.text.isIntrinsic.make(),
onPressed: Get.back,
),
CupertinoDialogAction(
child: '确定'.text.isIntrinsic.make(),
onPressed: () {
userProvider.setSex(_sex);
Get.back();
},
),
],
);
},
);
onPressed: () async {
int result = await Get.bottomSheet(BeeCustomPicker(
onPressed: () => Get.back(result: _sex),
body: CupertinoPicker(
itemExtent: 50,
onSelectedItemChanged: (index) {
_sex = index + 1;
},
children: [
''.text.isIntrinsic.make().centered(),
''.text.isIntrinsic.make().centered(),
],
useMagnifier: true,
).expand(),
));
if (result != null) {
userProvider.setSex(_sex);
}
},
),
_buildTile(

@ -270,6 +270,7 @@ class _SignInPageState extends State<SignInPage> {
mainAxisAlignment: MainAxisAlignment.center,
children: [
FlatButton(
shape: StadiumBorder(),
padding: EdgeInsets.zero,
onPressed: AgreementPage().to,
child: Text(
@ -280,6 +281,7 @@ class _SignInPageState extends State<SignInPage> {
)),
SizedBox(width: 15.w),
FlatButton(
shape: StadiumBorder(),
padding: EdgeInsets.zero,
onPressed: PrivacyPage().to,
child: Text(

Loading…
Cancel
Save