update 家政详情

hmxc
张萌 3 years ago
parent cf4a65f706
commit c932bf8cba

@ -6,12 +6,13 @@
import 'package:device_info_plus_web/device_info_plus_web.dart';
import 'package:firebase_core_web/firebase_core_web.dart';
import 'package:flutter_web_plugins/flutter_web_plugins.dart';
import 'package:image_picker_for_web/image_picker_for_web.dart';
import 'package:package_info_plus_web/package_info_plus_web.dart';
import 'package:shared_preferences_web/shared_preferences_web.dart';
import 'package:url_launcher_web/url_launcher_web.dart';
import 'package:flutter_web_plugins/flutter_web_plugins.dart';
// ignore: public_member_api_docs
void registerPlugins(Registrar registrar) {
DeviceInfoPlusPlugin.registerWith(registrar);

@ -1,139 +0,0 @@
// class LifePayModel {
// int? years;
// int? paymentNum;
// List<DailyPaymentTypeVos>? dailyPaymentTypeVos;
// LifePayModel({this.years, this.paymentNum, this.dailyPaymentTypeVos});
// LifePayModel.fromJson(Map<String, dynamic> json) {
// years = json['years'];
// paymentNum = json['paymentNum'];
// if (json['dailyPaymentTypeVos'] != null) {
// dailyPaymentTypeVos = [];
// json['dailyPaymentTypeVos'].forEach((v) {
// dailyPaymentTypeVos!.add(new DailyPaymentTypeVos.fromJson(v));
// });
// }
// }
// Map<String, dynamic> toJson() {
// final Map<String, dynamic> data = new Map<String, dynamic>();
// data['years'] = this.years;
// data['paymentNum'] = this.paymentNum;
// if (this.dailyPaymentTypeVos != null) {
// data['dailyPaymentTypeVos'] =
// this.dailyPaymentTypeVos!.map((v) => v.toJson()).toList();
// }
// return data;
// }
// }
// class DailyPaymentTypeVos {
// int? id;
// String? name;
// List<DetailedVoList>? detailedVoList;
// DailyPaymentTypeVos({this.id, this.name, this.detailedVoList});
// DailyPaymentTypeVos.fromJson(Map<String, dynamic> json) {
// id = json['id'];
// name = json['name'];
// if (json['detailedVoList'] != null) {
// detailedVoList = [];
// json['detailedVoList'].forEach((v) {
// detailedVoList!.add(new DetailedVoList.fromJson(v));
// });
// }
// }
// Map<String, dynamic> toJson() {
// final Map<String, dynamic> data = new Map<String, dynamic>();
// data['id'] = this.id;
// data['name'] = this.name;
// if (this.detailedVoList != null) {
// data['detailedVoList'] =
// this.detailedVoList!.map((v) => v.toJson()).toList();
// }
// return data;
// }
// }
// class DetailedVoList {
// int? groupId;
// double? paymentPrice;
// List<DetailsVoList>? detailsVoList;
// DetailedVoList({this.groupId, this.paymentPrice, this.detailsVoList});
// DetailedVoList.fromJson(Map<String, dynamic> json) {
// groupId = json['groupId'];
// paymentPrice = json['paymentPrice'];
// if (json['detailsVoList'] != null) {
// detailsVoList = [];
// json['detailsVoList'].forEach((v) {
// detailsVoList!.add(new DetailsVoList.fromJson(v));
// });
// }
// }
// Map<String, dynamic> toJson() {
// final Map<String, dynamic> data = new Map<String, dynamic>();
// data['groupId'] = this.groupId;
// data['paymentPrice'] = this.paymentPrice;
// if (this.detailsVoList != null) {
// data['detailsVoList'] =
// this.detailsVoList!.map((v) => v.toJson()).toList();
// }
// return data;
// }
// }
// class DetailsVoList {
// int? id;
// String? month;
// double? costPrice;
// double? paidPrice;
// double? totalPrice;
// String? beginDate;
// String? endDate;
// String? unitPriceType;
// int? num;
// DetailsVoList(
// {this.id,
// this.month,
// this.costPrice,
// this.paidPrice,
// this.totalPrice,
// this.beginDate,
// this.endDate,
// this.unitPriceType,
// this.num});
// DetailsVoList.fromJson(Map<String, dynamic> json) {
// id = json['id'];
// month = json['month'];
// costPrice = json['costPrice'];
// paidPrice = json['paidPrice'];
// totalPrice = json['totalPrice'];
// beginDate = json['beginDate'];
// endDate = json['endDate'];
// unitPriceType = json['unitPriceType'];
// num = json['num'];
// }
// Map<String, dynamic> toJson() {
// final Map<String, dynamic> data = new Map<String, dynamic>();
// data['id'] = this.id;
// data['month'] = this.month;
// data['costPrice'] = this.costPrice;
// data['paidPrice'] = this.paidPrice;
// data['totalPrice'] = this.totalPrice;
// data['beginDate'] = this.beginDate;
// data['endDate'] = this.endDate;
// data['unitPriceType'] = this.unitPriceType;
// data['num'] = this.num;
// return data;
// }
// }

@ -1,44 +0,0 @@
// class LifePayRecordModel {
// int? id;
// String? chargesTemplateDetailName;
// String? roomName;
// String? years;
// num? paidPrice;
// String? createDate;
// int? payType;
// String? code;
// LifePayRecordModel(
// {this.id,
// this.chargesTemplateDetailName,
// this.roomName,
// this.years,
// this.paidPrice,
// this.createDate,
// this.payType,
// this.code});
// LifePayRecordModel.fromJson(Map<String, dynamic> json) {
// id = json['id'];
// chargesTemplateDetailName = json['chargesTemplateDetailName'];
// roomName = json['roomName'];
// years = json['years'];
// paidPrice = json['paidPrice'];
// createDate = json['createDate'];
// payType = json['payType'];
// code = json['code'];
// }
// Map<String, dynamic> toJson() {
// final Map<String, dynamic> data = new Map<String, dynamic>();
// data['id'] = this.id;
// data['chargesTemplateDetailName'] = this.chargesTemplateDetailName;
// data['roomName'] = this.roomName;
// data['years'] = this.years;
// data['paidPrice'] = this.paidPrice;
// data['createDate'] = this.createDate;
// data['payType'] = this.payType;
// data['code'] = this.code;
// return data;
// }
// }

@ -1,6 +1,5 @@
import 'package:flutter/material.dart';
import 'package:equatable/equatable.dart';
import 'package:flutter/material.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_community/model/common/img_model.dart';
@ -18,11 +17,15 @@ class HouseKeepingListModel extends Equatable {
final int status;
final int? completion;
final String? processDescription;
final String handlerName;
final String handlerTel;
final String? handlingTime;
final List<ImgModel> handlerImgList;
final double? payFee;
final int? evaluation;
final String? evaluationContent;
final String? evaluationTime;
final List<ImgModel> evaluationImgList;
final String createDate;
final List<ImgModel> submitImgList;
HouseKeepingListModel({
@ -35,11 +38,15 @@ class HouseKeepingListModel extends Equatable {
required this.status,
this.completion,
this.processDescription,
required this.handlerName,
required this.handlerTel,
this.handlingTime,
required this.handlerImgList,
this.payFee,
this.evaluation,
this.evaluationContent,
this.evaluationTime,
required this.evaluationImgList,
required this.createDate,
required this.submitImgList,
});
@ -121,11 +128,15 @@ class HouseKeepingListModel extends Equatable {
status,
completion,
processDescription,
handlerName,
handlerTel,
handlingTime,
handlerImgList,
payFee,
evaluation,
evaluationContent,
evaluationTime,
evaluationImgList,
createDate,
submitImgList,
];

@ -18,11 +18,19 @@ HouseKeepingListModel _$HouseKeepingListModelFromJson(
status: json['status'] as int,
completion: json['completion'] as int?,
processDescription: json['processDescription'] as String?,
handlerName: json['handlerName'] as String,
handlerTel: json['handlerTel'] as String,
handlingTime: json['handlingTime'] as String?,
handlerImgList: (json['handlerImgList'] as List<dynamic>)
.map((e) => ImgModel.fromJson(e as Map<String, dynamic>))
.toList(),
payFee: (json['payFee'] as num?)?.toDouble(),
evaluation: json['evaluation'] as int?,
evaluationContent: json['evaluationContent'] as String?,
evaluationTime: json['evaluationTime'] as String?,
evaluationImgList: (json['evaluationImgList'] as List<dynamic>)
.map((e) => ImgModel.fromJson(e as Map<String, dynamic>))
.toList(),
createDate: json['createDate'] as String,
submitImgList: (json['submitImgList'] as List<dynamic>)
.map((e) => ImgModel.fromJson(e as Map<String, dynamic>))

@ -1,3 +1,4 @@
import 'package:aku_community/constants/api.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
@ -228,7 +229,10 @@ class _HouseKeepingDetailPageState extends State<HouseKeepingDetailPage> {
.black
.softWrap(true)
.make(),
BeeGridImageView(urls: [])
BeeGridImageView(
urls: widget.model.evaluationImgList
.map((e) => API.image(e.url))
.toList())
],
),
);
@ -261,7 +265,7 @@ class _HouseKeepingDetailPageState extends State<HouseKeepingDetailPage> {
8.w.widthBox,
'维修人'.text.size(28.sp).color(ktextSubColor).make(),
Spacer(),
widget.model.proposerName.text.size(28.sp).black.make(),
widget.model.handlerName.text.size(28.sp).black.make(),
],
),
16.w.heightBox,
@ -275,7 +279,7 @@ class _HouseKeepingDetailPageState extends State<HouseKeepingDetailPage> {
8.w.widthBox,
'联系电话'.text.size(28.sp).color(ktextSubColor).make(),
Spacer(),
widget.model.proposerTel.text.size(28.sp).black.make(),
widget.model.handlerTel.text.size(28.sp).black.make(),
],
),
16.w.heightBox,
@ -288,7 +292,10 @@ class _HouseKeepingDetailPageState extends State<HouseKeepingDetailPage> {
.black
.softWrap(true)
.make(),
BeeGridImageView(urls: [])
BeeGridImageView(
urls: widget.model.handlerImgList
.map((e) => API.image(e.url))
.toList())
],
),
);

@ -70,7 +70,7 @@ packages:
name: args
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.1.0"
version: "2.1.1"
async:
dependency: transitive
description:
@ -252,7 +252,7 @@ packages:
name: dart_style
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.0.1"
version: "2.0.2"
decimal:
dependency: transitive
description:
@ -631,7 +631,7 @@ packages:
name: io
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.0.0"
version: "1.0.3"
jpush_flutter:
dependency: "direct main"
description:

Loading…
Cancel
Save