添加 合同支付页面

hmxc
张萌 3 years ago
parent 033124b7cb
commit 3fc91e468e

@ -0,0 +1,90 @@
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/pages/life_pay/pay_finish_page.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/widget/buttons/bottom_button.dart';
import 'package:aku_community/widget/others/bee_input_row.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/extensions/widget_list_ext.dart';
class ContractPayPage extends StatefulWidget {
ContractPayPage({Key? key}) : super(key: key);
@override
_ContractPayPageState createState() => _ContractPayPageState();
}
class _ContractPayPageState extends State<ContractPayPage> {
late TextEditingController _contractCodeController;
late TextEditingController _payTotalController;
String _payMethod = '选择支付方式';
@override
void initState() {
super.initState();
_contractCodeController = TextEditingController();
_payTotalController = TextEditingController();
}
@override
void dispose() {
_contractCodeController.dispose();
_payTotalController.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return BeeScaffold(
title: '支付信息',
body: ListView(
padding: EdgeInsets.symmetric(vertical: 24.w, horizontal: 32.w),
children: [
BeeInputRow(
controller: _contractCodeController,
hintText: '请填写合同编号',
title: '合同编号',
isRequire: true,
),
BeeInputRow(
title: '保证金金额(元)',
controller: _payTotalController,
hintText: '填写保证金金额'),
BeeInputRow.button(
title: '支付方式',
hintText: _payMethod,
onPressed: () async {
Get.bottomSheet(
_payMethodSheet(),
);
}),
].sepWidget(separate: 24.w.heightBox),
),
bottomNavi: BottomButton(
child: '点击支付'.text.size(32.sp).bold.color(ktextPrimary).make(),
onPressed: () {
Get.off(() => PayFinishPage());
},
),
);
}
Widget _payMethodSheet() {
return CupertinoActionSheet(
title:
'支付方式'.text.size(32.sp).bold.color(ktextPrimary).isIntrinsic.make(),
actions: [
CupertinoActionSheetAction(
onPressed: () {
_payMethod = '支付宝';
Get.back();
setState(() {});
},
child:
'支付宝'.text.size(32.sp).color(ktextPrimary).isIntrinsic.make())
],
);
}
}

@ -68,7 +68,7 @@ class _ContractPreviewPageState extends State<ContractPreviewPage> {
),
bottomNavi: BottomButton(
onPressed: () {
Get.to(() => DownLoadContractPage(firstRoute: true));
Get.off(() => DownLoadContractPage(firstRoute: true));
},
child: '生成合同'.text.size(32.sp).color(ktextPrimary).make()),
);

@ -38,7 +38,8 @@ class _HouseInformationCheckPageState extends State<HouseInformationCheckPage> {
),
bottomNavi: BottomButton(
onPressed: () {
Get.to(()=>ContractPreviewPage());
Get.back();
Get.off(() => ContractPreviewPage());
},
child: '确认'.text.size(32.sp).bold.color(ktextPrimary).make(),
),

@ -47,7 +47,7 @@ class IdentifySelectionPage extends StatelessWidget {
.padding(EdgeInsets.symmetric(vertical: 40.w, horizontal: 32.w))
.make()
.onInkTap(() {
Get.to(() => isOwner ? MyHouseList() : UserIdentifyPage());
Get.off(() => isOwner ? MyHouseList() : UserIdentifyPage());
}).material(
color: Colors.white,
borderRadius: BorderRadius.circular(8.w),

@ -2,6 +2,7 @@ import 'dart:io';
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/painters/upload_painter.dart';
import 'package:aku_community/ui/profile/house/contract_pay_page.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/widget/buttons/bottom_button.dart';
import 'package:aku_community/widget/picker/bee_image_picker.dart';
@ -85,7 +86,9 @@ class _UploadContractsPageState extends State<UploadContractsPage> {
],
),
bottomNavi: BottomButton(
onPressed: () {},
onPressed: () {
Get.to(() => ContractPayPage());
},
child: '提交审核'.text.size(32.sp).color(ktextPrimary).bold.make()),
);
}

@ -158,7 +158,8 @@ class _UserIdentifyPageState extends State<UserIdentifyPage> {
'返回'.text.size(34.sp).isIntrinsic.color(ktextPrimary).make()),
CupertinoDialogAction(
onPressed: () {
Get.off(()=>TenantHouseListPage());
Get.back();
Get.off(() => TenantHouseListPage());
},
child: '修改信息'
.text

Loading…
Cancel
Save