修改跳转逻辑

hmxc
张萌 3 years ago
parent 8b578b7c83
commit f041aa56f5

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

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

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

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

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

Loading…
Cancel
Save