Commit 9dae68ee7c0bc018fbc7e31d31a2f031dd645c03

Authored by wdn127929
1 parent 189a63b4

客情限制天数

... ... @@ -128,6 +128,9 @@ class SellerList extends Object {
@JsonKey(name: 'cdate')
String cdate;
@JsonKey(name: 'remaining_time')
int remainingTime;
String get cdateStr {
if (cdate != null) {
DateTime dateTime = DateTime.fromMillisecondsSinceEpoch(
... ... @@ -145,18 +148,18 @@ class SellerList extends Object {
}
SellerList(
this.id,
this.sellerid,
this.createUser,
this.uid,
this.aid,
this.gid,
this.content,
this.isUpdate,
this.finishedStatus,
this.edate,
this.cdate,
);
this.id,
this.sellerid,
this.createUser,
this.uid,
this.aid,
this.gid,
this.content,
this.isUpdate,
this.finishedStatus,
this.edate,
this.cdate,
this.remainingTime);
factory SellerList.fromJson(Map<String, dynamic> srcJson) =>
_$SellerListFromJson(srcJson);
... ...
... ... @@ -79,6 +79,7 @@ SellerList _$SellerListFromJson(Map<String, dynamic> json) {
json['finished_status'] as String,
json['edate'] as String,
json['cdate'] as String,
json['remaining_time'] as int,
);
}
... ... @@ -95,4 +96,5 @@ Map<String, dynamic> _$SellerListToJson(SellerList instance) =>
'finished_status': instance.finishedStatus,
'edate': instance.edate,
'cdate': instance.cdate,
'remaining_time': instance.remainingTime,
};
... ...
... ... @@ -146,9 +146,9 @@ class _MyMarketingRecordsPageState extends State<MyMarketingRecordsPage> {
HEmptyView(10),
Expanded(
child: Text(
data.edate == null
data.remainingTime == null
? '无限制'
: '剩余${11111}天',
: '剩余${data.remainingTime}天',
overflow: TextOverflow.ellipsis,
style: TextStyle(
color: MyColours.color_333333,
... ...