修改跳转逻辑

hmxc
张萌 3 years ago
parent 8b578b7c83
commit f041aa56f5

@ -98,9 +98,12 @@ class _ContractPreviewPageState extends State<ContractPreviewPage> {
String result = await HouseFunc().uploadSignName(_signName!); String result = await HouseFunc().uploadSignName(_signName!);
String path = await HouseFunc() String path = await HouseFunc()
.generateContract(widget.id, widget.url, result); .generateContract(widget.id, widget.url, result);
if (path.isNotEmpty) if (path.isNotEmpty) {
Get.back();
Get.back();
Get.off( Get.off(
() => DownLoadContractPage(path: path, id: widget.id)); () => DownLoadContractPage(path: path, id: widget.id));
}
} catch (e) { } catch (e) {
LoggerData.addData(e); LoggerData.addData(e);
print(e); print(e);

@ -68,7 +68,7 @@ class _DownLoadContractPageState extends State<DownLoadContractPage> {
elevation: 0, elevation: 0,
color: kPrimaryColor, color: kPrimaryColor,
onPressed: () { onPressed: () {
Get.to(() => UploadContractsPage( Get.off(() => UploadContractsPage(
id: widget.id, id: widget.id,
)); ));
}, },

@ -64,16 +64,10 @@ class _HouseInformationCheckPageState extends State<HouseInformationCheckPage> {
.uploadIdCardBack(_submitModel.idCardBackFile!)); .uploadIdCardBack(_submitModel.idCardBackFile!));
String result = await HouseFunc().submitLeaseInfo(_submitModel); String result = await HouseFunc().submitLeaseInfo(_submitModel);
if (result.isNotEmpty) { if (result.isNotEmpty) {
Get.back(); Get.to(() => ContractPreviewPage(
Get.off(() => ContractPreviewPage(
id: widget.detailModel.id, id: widget.detailModel.id,
url: result, url: result,
)); ));
} else {
Get.off(() => ContractPreviewPage(
id: widget.detailModel.id,
url: '',
));
} }
} catch (e) { } catch (e) {
LoggerData.addData(e); LoggerData.addData(e);

@ -1,7 +1,6 @@
import 'dart:io'; import 'dart:io';
import 'package:aku_community/base/base_style.dart'; import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/ui/profile/house/contract_pay_page.dart';
import 'package:aku_community/ui/profile/house/house_func.dart'; import 'package:aku_community/ui/profile/house/house_func.dart';
import 'package:aku_community/widget/bee_scaffold.dart'; import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/widget/buttons/bottom_button.dart'; import 'package:aku_community/widget/buttons/bottom_button.dart';
@ -105,9 +104,7 @@ class _UploadContractsPageState extends State<UploadContractsPage> {
bool result = bool result =
await HouseFunc().submitFormalContract(widget.id, _urls); await HouseFunc().submitFormalContract(widget.id, _urls);
if (result) { if (result) {
Get.to(() => ContractPayPage( Get.back();
id: widget.id,
));
} }
cancel(); cancel();
}, },

@ -1,3 +1,4 @@
import 'package:aku_community/painters/contact_manager_painter.dart';
import 'package:aku_community/widget/bee_scaffold.dart'; import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -16,7 +17,9 @@ class _UploadEmptyFormPageState extends State<UploadEmptyFormPage> {
body: Center( body: Center(
child: Column( child: Column(
children: [ children: [
CustomPaint(
painter: ContactManagerPainter(),
)
], ],
), ),
), ),

Loading…
Cancel
Save