张萌 4 years ago
commit c9dec9df5b

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

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

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

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

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

Loading…
Cancel
Save