Compare commits

...

2 Commits

@ -69,7 +69,7 @@ class _LifePayBillPageState extends State<LifePayBillPage> {
_cardList('收费项目', widget.model.chargesName), _cardList('收费项目', widget.model.chargesName),
SizedBox(height: 30.w), SizedBox(height: 30.w),
_cardList('收费地址', _cardList('收费地址',
'${S.of(context)!.tempPlotName} ${widget.model.unitName + widget.model.estateName}'), '${widget.model.buildingName + '' + widget.model.unitName + '单元' + widget.model.estateName}'),
], ],
), ),
), ),
@ -92,14 +92,14 @@ class _LifePayBillPageState extends State<LifePayBillPage> {
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
_billItem('账单月份',DateUtil.formatDate(DateTime.parse(widget.model.billDateStart), _billItem('账单月份',DateUtil.formatDate(DateUtil.getDateTime(widget.model.billDateStart),
format: 'yyyy-MM'),), format: 'yyyy-MM'),),
_billItem('缴纳金额','¥'+widget.model.payAmount.toStringAsFixed(2),isRed: true), _billItem('缴纳金额','¥'+widget.model.payAmount.toStringAsFixed(2),isRed: true),
_billItem('缴费时间',DateUtil.formatDate(DateTime.parse(widget.model.createDate), _billItem('缴费时间',DateUtil.formatDate(DateUtil.getDateTime(widget.model.createDate),
format: 'yyyy/MM/dd hh:mm'),), format: 'yyyy/MM/dd hh:mm'),),
_billItem('付款方式', '${getPayType[widget.model.payType]}'), _billItem('付款方式', '${getPayType[widget.model.payType]}'),
_billItem('账单创建时间',DateUtil.formatDate(DateTime.parse(widget.model.billCreateDate), _billItem('账单创建时间',DateUtil.formatDate(DateUtil.getDateTime(widget.model.billCreateDate),
format: 'yyyy/MM/dd hh:mm'),), format: 'yyyy/MM/dd hh:mm'),),
_billItem('流水号',widget.model.code,), _billItem('流水号',widget.model.code,),

@ -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