fix some issues

hmxc
张萌 3 years ago
parent 74b267541c
commit c96ee3f1ff

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

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

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

Loading…
Cancel
Save