生活缴费

pull/1/head
章文轩 3 years ago
parent 9029953dc4
commit 7e375685c7

@ -244,7 +244,7 @@ class _LifePayPageNewState extends State<LifePayPageNew> {
Function cancel = BotToast.showLoading(); Function cancel = BotToast.showLoading();
BaseModel baseModel = await NetUtil() BaseModel baseModel = await NetUtil()
.post(SAASAPI.pay.createLivingExpensesOrder, params: { .post(SAASAPI.pay.createLivingExpensesOrder, params: {
"chargesBillId": total.ids, "chargesBillIds": total.selectIds.map((e) => e.id).toList(),
"paymentAmount": total.payTotal "paymentAmount": total.payTotal
}); });
if (baseModel.success) { if (baseModel.success) {

@ -14,7 +14,7 @@ import 'package:get/get.dart';
import 'life_pay_bill_page/life_pay_bill_page.dart'; import 'life_pay_bill_page/life_pay_bill_page.dart';
class LifePayRecordPage extends StatefulWidget { class LifePayRecordPage extends StatefulWidget {
LifePayRecordPage({Key? key}) : super(key: key); LifePayRecordPage({Key? key}) : super(key: key);
@override @override
_LifePayRecordPageState createState() => _LifePayRecordPageState(); _LifePayRecordPageState createState() => _LifePayRecordPageState();
@ -87,24 +87,25 @@ class _LifePayRecordPageState extends State<LifePayRecordPage> {
Widget _buildRecordCard(LifePayRecordModel model) { Widget _buildRecordCard(LifePayRecordModel model) {
return GestureDetector( return GestureDetector(
onTap: (){ onTap: () {
Get.to(()=>LifePayBillPage(model: model,)); Get.to(() => LifePayBillPage(
model: model,
));
}, },
child: Column( child: Column(
children: [ children: [
Container( Container(
padding: EdgeInsets.symmetric(vertical: 8.w,horizontal: 24.w), padding: EdgeInsets.symmetric(vertical: 8.w, horizontal: 24.w),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.black.withOpacity(0.06), color: Colors.black.withOpacity(0.06),
borderRadius: BorderRadius.circular(8.w), borderRadius: BorderRadius.circular(8.w),
), ),
child: DateUtil.formatDate( child: DateUtil.formatDate(DateUtil.getDateTime(model.createDate),
DateTime.parse(model.createDate), format: 'MM-dd hh-mm')
format: 'MM-dd hh-mm').text .text
.size(24.sp) .size(24.sp)
.color(Colors.black.withOpacity(0.45)) .color(Colors.black.withOpacity(0.45))
.make(), .make(),
), ),
Row( Row(
children: [ children: [
@ -114,7 +115,7 @@ class _LifePayRecordPageState extends State<LifePayRecordPage> {
.bold .bold
.make(), .make(),
Spacer(), Spacer(),
'${S.of(context)!.tempPlotName} ${model.unitName+model.estateName}' '${model.buildingName + '' + model.unitName + '单元' + model.estateName}'
.text .text
.size(24.sp) .size(24.sp)
.color(Color(0xFF999999)) .color(Color(0xFF999999))
@ -147,7 +148,6 @@ class _LifePayRecordPageState extends State<LifePayRecordPage> {
'${model.code}'.text.color(ktextPrimary).size(28.sp).make(), '${model.code}'.text.color(ktextPrimary).size(28.sp).make(),
], ],
), ),
Row( Row(
children: [ children: [
'流水号'.text.color(ktextSubColor).size(28.sp).make(), '流水号'.text.color(ktextSubColor).size(28.sp).make(),
@ -155,7 +155,6 @@ class _LifePayRecordPageState extends State<LifePayRecordPage> {
'${model.code}'.text.color(ktextPrimary).size(28.sp).make(), '${model.code}'.text.color(ktextPrimary).size(28.sp).make(),
], ],
), ),
].sepWidget(separate: 24.w.heightBox), ].sepWidget(separate: 24.w.heightBox),
) )
.box .box

@ -237,28 +237,29 @@ class _AllApplicationPageState extends State<AllApplicationPage> {
backgroundColor: Colors.white, backgroundColor: Colors.white,
elevation: 0, elevation: 0,
leading: BeeBackButton(), leading: BeeBackButton(),
title: MaterialButton( title: '全部应用'.text.make(),
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap, // title: MaterialButton(
height: 72.w, // materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
shape: StadiumBorder(), // height: 72.w,
elevation: 0, // shape: StadiumBorder(),
minWidth: double.infinity, // elevation: 0,
color: Color(0xFFF3F3F3), // minWidth: double.infinity,
onPressed: () { // color: Color(0xFFF3F3F3),
Get.to(() => BeeSearch()); // onPressed: () {
}, // Get.to(() => BeeSearch());
child: Row( // },
children: [ // child: Row(
Icon( // children: [
Icons.search, // Icon(
size: 32.w, // Icons.search,
color: Color(0xFF666666), // size: 32.w,
), // color: Color(0xFF666666),
10.wb, // ),
'搜索应用'.text.size(28.sp).color(ktextSubColor).make().expand(), // 10.wb,
], // '搜索应用'.text.size(28.sp).color(ktextSubColor).make().expand(),
), // ],
), // ),
// ),
), ),
body: Column( body: Column(
children: [ children: [

Loading…
Cancel
Save