From 2b67cb92e82cf8a777ad03cd5d0a018c995ddc6e Mon Sep 17 00:00:00 2001 From: laiiihz Date: Tue, 9 Feb 2021 09:32:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=88=BF=E9=97=B4=E7=BC=B4?= =?UTF-8?q?=E8=B4=B9=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/life_pay/widget/my_house_page.dart | 4 +++- lib/pages/manager_func.dart | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/pages/life_pay/widget/my_house_page.dart b/lib/pages/life_pay/widget/my_house_page.dart index 03c19878..504088b1 100644 --- a/lib/pages/life_pay/widget/my_house_page.dart +++ b/lib/pages/life_pay/widget/my_house_page.dart @@ -56,7 +56,9 @@ class _MyHousePageState extends State { super.initState(); if (widget.needFindPayTag) { ManagerFunc.findEstatelsPayment().then((value) { - _list = value.data; + _list = (value.data as List) + .map((e) => EstatePaymentModel.fromJson(e)) + .toList(); return _list; }); } diff --git a/lib/pages/manager_func.dart b/lib/pages/manager_func.dart index accb71d1..f22bc690 100644 --- a/lib/pages/manager_func.dart +++ b/lib/pages/manager_func.dart @@ -167,7 +167,7 @@ class ManagerFunc { API.manager.findEstatelsPament, showMessage: false, ); - return baseModel.data; + return baseModel; } static Future voteDetail(int id) async { @@ -204,7 +204,7 @@ class ManagerFunc { API.manager.questionnaireSubmit, params: { 'id': id, - 'appQuestionnaireAnswerSubmits':model, + 'appQuestionnaireAnswerSubmits': model, }, showMessage: true, );