添加提交成功页

hmxc
张萌 4 years ago
parent 31233e030d
commit 9303023524

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 KiB

@ -227,7 +227,7 @@ class _BusinessAndFixDetailPageState extends State<BusinessAndFixDetailPage> {
color: AppStyle.primaryColor, color: AppStyle.primaryColor,
onPressed: () { onPressed: () {
Get.to(FixWorkFinishPage( Get.to(FixWorkFinishPage(
reportDetail: widget.model.reportDetail, fixModel :widget.model,
model: _detailModel, model: _detailModel,
dispatchType: dispatchType:
_detailModel.dispatchType.dispatchType == 1)); _detailModel.dispatchType.dispatchType == 1));

@ -0,0 +1,29 @@
import 'package:aku_community_manager/models/manager/bussiness_and_fix/bussiness_and_fix_model.dart';
import 'package:aku_community_manager/ui/sub_pages/business_and_fix/business_fix_card.dart';
import 'package:aku_community_manager/ui/widgets/common/aku_scaffold.dart';
import 'package:flutter/material.dart';
import 'package:aku_community_manager/const/resource.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/velocity_x.dart';
class FixSubmitFinishPage extends StatelessWidget {
final BussinessAndFixModel model;
const FixSubmitFinishPage({Key key, this.model}) : super(key: key);
@override
Widget build(BuildContext context) {
return AkuScaffold(
title: '处理完成',
body:Container(
width:double.infinity,
child: Column(
children: [
Image.asset(R.ASSETS_MANAGE_SUBMIT_SUCCESS_PNG,width:587.w,height:350.w),
'您已处理完成该报修'.text.black.size(40.sp).bold.make(),
120.w.heightBox,
BusinessFixCard(model: this.model),
],
),
),
);
}
}

@ -4,6 +4,7 @@ import 'dart:io';
// Flutter imports: // Flutter imports:
import 'package:aku_community_manager/models/manager/bussiness_and_fix/bussiness_and_fix_model.dart'; import 'package:aku_community_manager/models/manager/bussiness_and_fix/bussiness_and_fix_model.dart';
import 'package:aku_community_manager/models/manager/bussiness_and_fix/fixed_detail_model.dart'; import 'package:aku_community_manager/models/manager/bussiness_and_fix/fixed_detail_model.dart';
import 'package:aku_community_manager/ui/sub_pages/business_and_fix/fix_submit_finish_page.dart';
import 'package:aku_community_manager/utils/network/base_model.dart'; import 'package:aku_community_manager/utils/network/base_model.dart';
import 'package:aku_community_manager/utils/network/manage_func.dart'; import 'package:aku_community_manager/utils/network/manage_func.dart';
import 'package:bot_toast/bot_toast.dart'; import 'package:bot_toast/bot_toast.dart';
@ -22,16 +23,17 @@ import 'package:aku_community_manager/ui/widgets/common/aku_scaffold.dart';
import 'package:aku_community_manager/ui/widgets/inner/aku_title_box.dart'; import 'package:aku_community_manager/ui/widgets/inner/aku_title_box.dart';
import 'package:aku_community_manager/ui/widgets/inner/pick_image.dart'; import 'package:aku_community_manager/ui/widgets/inner/pick_image.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import 'package:aku_community_manager/tools/extensions/router_extension_tool.dart';
class FixWorkFinishPage extends StatefulWidget { class FixWorkFinishPage extends StatefulWidget {
final FixedDetailModel model; final FixedDetailModel model;
final String reportDetail; final BussinessAndFixModel fixModel;
final bool dispatchType; final bool dispatchType;
FixWorkFinishPage( FixWorkFinishPage(
{Key key, {Key key,
@required this.model, @required this.model,
@required this.dispatchType, @required this.dispatchType,
@required this.reportDetail}) @required this.fixModel})
: super(key: key); : super(key: key);
@override @override
@ -71,7 +73,7 @@ class _FixWorkFinishPageState extends State<FixWorkFinishPage> {
spacing: 24, spacing: 24,
children: [ children: [
Text( Text(
widget.reportDetail, widget.fixModel.reportDetail,
style: TextStyle( style: TextStyle(
color: AppStyle.primaryTextColor, color: AppStyle.primaryTextColor,
fontSize: 28.w, fontSize: 28.w,
@ -395,7 +397,9 @@ class _FixWorkFinishPageState extends State<FixWorkFinishPage> {
humanPrice + materialPrice, humanPrice + materialPrice,
1, []); 1, []);
if (baseModel.status) { if (baseModel.status) {
Get.back(); //TODO FixSubmitFinishPage(
model:widget.fixModel,
).to();
} else { } else {
BotToast.showText(text: baseModel.message); BotToast.showText(text: baseModel.message);
} }

Loading…
Cancel
Save