|
|
@ -1,5 +1,6 @@
|
|
|
|
import 'package:aku_community/base/base_style.dart';
|
|
|
|
import 'package:aku_community/base/base_style.dart';
|
|
|
|
import 'package:aku_community/models/house/lease_detail_model.dart';
|
|
|
|
import 'package:aku_community/models/house/lease_detail_model.dart';
|
|
|
|
|
|
|
|
import 'package:aku_community/ui/profile/house/contract_stop/contract_stop_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/ui/profile/house/contract_stop/pay_surplus_rent_page.dart';
|
|
|
|
import 'package:aku_community/ui/profile/house/contract_stop/pay_surplus_rent_page.dart';
|
|
|
|
import 'package:aku_community/widget/bee_scaffold.dart';
|
|
|
|
import 'package:aku_community/widget/bee_scaffold.dart';
|
|
|
@ -32,6 +33,7 @@ class _SubmitFinishPageState extends State<SubmitFinishPage> {
|
|
|
|
return '未知';
|
|
|
|
return '未知';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
String get contentString {
|
|
|
|
String get contentString {
|
|
|
|
switch (widget.status) {
|
|
|
|
switch (widget.status) {
|
|
|
|
case 11:
|
|
|
|
case 11:
|
|
|
@ -61,15 +63,39 @@ class _SubmitFinishPageState extends State<SubmitFinishPage> {
|
|
|
|
48.w.heightBox,
|
|
|
|
48.w.heightBox,
|
|
|
|
contentString.text.black.size(28.sp).make(),
|
|
|
|
contentString.text.black.size(28.sp).make(),
|
|
|
|
96.w.heightBox,
|
|
|
|
96.w.heightBox,
|
|
|
|
widget.status != 13
|
|
|
|
butttons(),
|
|
|
|
? SizedBox()
|
|
|
|
],
|
|
|
|
: MaterialButton(
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Widget butttons() {
|
|
|
|
|
|
|
|
switch (widget.status) {
|
|
|
|
|
|
|
|
case 11:
|
|
|
|
|
|
|
|
return SizedBox();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case 12:
|
|
|
|
|
|
|
|
return MaterialButton(
|
|
|
|
|
|
|
|
elevation: 0,
|
|
|
|
|
|
|
|
minWidth: 702.w,
|
|
|
|
|
|
|
|
height: 98.w,
|
|
|
|
|
|
|
|
color: kPrimaryColor,
|
|
|
|
|
|
|
|
shape:
|
|
|
|
|
|
|
|
RoundedRectangleBorder(borderRadius: BorderRadius.circular(8.w)),
|
|
|
|
|
|
|
|
onPressed: () async {
|
|
|
|
|
|
|
|
Get.to(() => ContractStopPage());
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
child: '重新申请'.text.color(ktextPrimary).size(36.sp).make(),
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
case 13:
|
|
|
|
|
|
|
|
return MaterialButton(
|
|
|
|
elevation: 0,
|
|
|
|
elevation: 0,
|
|
|
|
minWidth: 702.w,
|
|
|
|
minWidth: 702.w,
|
|
|
|
height: 98.w,
|
|
|
|
height: 98.w,
|
|
|
|
color: kPrimaryColor,
|
|
|
|
color: kPrimaryColor,
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
shape:
|
|
|
|
borderRadius: BorderRadius.circular(8.w)),
|
|
|
|
RoundedRectangleBorder(borderRadius: BorderRadius.circular(8.w)),
|
|
|
|
onPressed: () async {
|
|
|
|
onPressed: () async {
|
|
|
|
LeaseDetailModel? model =
|
|
|
|
LeaseDetailModel? model =
|
|
|
|
await HouseFunc().leaseDetail(widget.leaseId);
|
|
|
|
await HouseFunc().leaseDetail(widget.leaseId);
|
|
|
@ -81,11 +107,11 @@ class _SubmitFinishPageState extends State<SubmitFinishPage> {
|
|
|
|
));
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: '去支付'.text.color(ktextPrimary).size(36.sp).make(),
|
|
|
|
child: '结清剩余租金'.text.color(ktextPrimary).size(36.sp).make(),
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
return SizedBox();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|