fix some issues

hmxc
张萌 3 years ago
parent 74b267541c
commit c96ee3f1ff

@ -1,5 +1,6 @@
import 'package:equatable/equatable.dart'; import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart'; import 'package:json_annotation/json_annotation.dart';
part 'life_pay_record_model.g.dart'; part 'life_pay_record_model.g.dart';
@JsonSerializable() @JsonSerializable()
@ -7,7 +8,7 @@ class LifePayRecordModel extends Equatable {
final int id; final int id;
final String chargesTemplateDetailName; final String chargesTemplateDetailName;
final String roomName; final String roomName;
final int years; final String years;
final num paidPrice; final num paidPrice;
final String createName; final String createName;
final String createDate; final String createDate;

@ -11,7 +11,7 @@ LifePayRecordModel _$LifePayRecordModelFromJson(Map<String, dynamic> json) {
id: json['id'] as int, id: json['id'] as int,
chargesTemplateDetailName: json['chargesTemplateDetailName'] as String, chargesTemplateDetailName: json['chargesTemplateDetailName'] as String,
roomName: json['roomName'] as String, roomName: json['roomName'] as String,
years: json['years'] as int, years: json['years'] as String,
paidPrice: json['paidPrice'] as num, paidPrice: json['paidPrice'] as num,
createName: json['createName'] as String, createName: json['createName'] as String,
createDate: json['createDate'] as String, createDate: json['createDate'] as String,

@ -149,7 +149,7 @@ class _HouseOwnersPageState extends State<HouseOwnersPage> {
}, },
child: ListView( child: ListView(
children: [ children: [
UserTool.appProveider.selectedHouse == null _emptyHouse
? 280.hb ? 280.hb
: Padding( : Padding(
padding: EdgeInsets.all(32.w), padding: EdgeInsets.all(32.w),
@ -162,7 +162,7 @@ class _HouseOwnersPageState extends State<HouseOwnersPage> {
), ),
), ),
if (!_emptyHouse) 88.hb, if (!_emptyHouse) 88.hb,
if (!_haveAuthedHouse) if (_emptyHouse)
Stack( Stack(
children: [ children: [
Padding( Padding(
@ -185,7 +185,7 @@ class _HouseOwnersPageState extends State<HouseOwnersPage> {
child: Text('添加房屋'), child: Text('添加房屋'),
), ),
), ),
if (!isOwner && !_emptyHouse) _contractRelevant() if (!isOwner && _haveAuthedHouse) _contractRelevant()
], ],
), ),
), ),

Loading…
Cancel
Save