From 315747486084b9501f255d8444457e44c3aedb93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cyanghuaxuan=E2=80=9D?= <“646903573@qq.com”> Date: Tue, 13 Apr 2021 17:03:57 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BC=98=E5=8C=96=E6=88=91=E7=9A=84=E8=AE=A2?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/orders_page/views/order_item_widget.dart | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/pages/orders_page/views/order_item_widget.dart b/lib/pages/orders_page/views/order_item_widget.dart index 7527de1..7891eef 100644 --- a/lib/pages/orders_page/views/order_item_widget.dart +++ b/lib/pages/orders_page/views/order_item_widget.dart @@ -260,7 +260,7 @@ class OrderItemWidget extends StatelessWidget { Widget centerWidget; String str1; String str2; - if (state.type == '3' || state.type == '4') { + if (state.type == '3' || state.type == '4' || state.type == '5') { // state?.tips=(state?.tips ?? '').replaceAll(state?.tipsReplaceKey,model?.reason); // state?.tips=(state?.tips ?? '').replaceAll(state?.tipsReplaceKey,"2007-0808"); @@ -286,7 +286,14 @@ class OrderItemWidget extends StatelessWidget { (model.reason ?? ''), style: TextStyle(color: HexColor.fromHex(state?.tipsReplaceColor ?? ""), fontSize: 10), ); + } + ///失效原因 + if (state.type == '5') { + centerWidget = Text( + (model.settleAt ?? ''), + style: TextStyle(color: HexColor.fromHex(state?.tipsReplaceColor ?? ""), fontSize: 10), + ); } }