fix some issues about house keeping

hmxc
张萌 4 years ago
parent 3921cc6324
commit 956cfb5692

@ -122,6 +122,8 @@ class _EvaluatePageState extends State<EvaluatePage> {
bool result = await HouseKeepingFunc.houseKeepingEvaluation( bool result = await HouseKeepingFunc.houseKeepingEvaluation(
widget.id, _rating, _textEditingController.text, _urls); widget.id, _rating, _textEditingController.text, _urls);
if (result) { if (result) {
//退
Get.back();
Get.back(); Get.back();
} }
} catch (e) { } catch (e) {

@ -50,7 +50,6 @@ class _HouseKeepingDetailPageState extends State<HouseKeepingDetailPage> {
_buildInfo(), _buildInfo(),
16.w.heightBox, 16.w.heightBox,
_buildProcess(), _buildProcess(),
16.w.heightBox,
if (widget.model.handlingTime != null) if (widget.model.handlingTime != null)
Column( Column(
children: [ children: [
@ -74,7 +73,6 @@ class _HouseKeepingDetailPageState extends State<HouseKeepingDetailPage> {
], ],
), ),
), ),
16.w.heightBox,
if (widget.model.evaluationTime != null) if (widget.model.evaluationTime != null)
Column( Column(
children: [ children: [
@ -106,20 +104,21 @@ class _HouseKeepingDetailPageState extends State<HouseKeepingDetailPage> {
.callAliPay(code, API.pay.houseKeepingServieceOrderCheck); .callAliPay(code, API.pay.houseKeepingServieceOrderCheck);
if (result) { if (result) {
Get.off(() => PayFinishPage()); Get.off(() => PayFinishPage());
widget.callRefresh();
} }
} catch (e) { } catch (e) {
LoggerData.addData(e); LoggerData.addData(e);
} }
cancel(); cancel();
widget.callRefresh();
}, },
child: '立即支付'.text.size(32.sp).bold.black.make()); child: '立即支付'.text.size(32.sp).bold.black.make());
case 5: case 5:
return BottomButton( return BottomButton(
onPressed: () { onPressed: () async {
Get.to(() => EvaluatePage( await Get.to(() => EvaluatePage(
id: widget.model.id, id: widget.model.id,
)); ));
widget.callRefresh();
}, },
child: '立即评价'.text.size(28.sp).bold.black.make()); child: '立即评价'.text.size(28.sp).bold.black.make());
default: default:
@ -255,9 +254,10 @@ class _HouseKeepingDetailPageState extends State<HouseKeepingDetailPage> {
.black .black
.softWrap(true) .softWrap(true)
.make(), .make(),
16.w.heightBox,
BeeGridImageView( BeeGridImageView(
urls: widget.model.evaluationImgList urls: widget.model.evaluationImgList
.map((e) => API.image(e.url)) .map((e) => e.url)
.toList()) .toList())
], ],
), ),
@ -321,7 +321,7 @@ class _HouseKeepingDetailPageState extends State<HouseKeepingDetailPage> {
.make(), .make(),
BeeGridImageView( BeeGridImageView(
urls: widget.model.handlerImgList urls: widget.model.handlerImgList
.map((e) => API.image(e.url)) .map((e) => e.url)
.toList()) .toList())
], ],
), ),

@ -73,7 +73,7 @@ class HouseKeepingFunc {
"id": id, "id": id,
"evaluation": evaluation, "evaluation": evaluation,
"evaluationContent": evaluationContent, "evaluationContent": evaluationContent,
" evaluationImgUrls": imgs, "evaluationImgUrls": imgs,
}); });
return baseModel.status ?? false; return baseModel.status ?? false;
} }

Loading…
Cancel
Save