对接接口:评论通知

hmxc
张萌 4 years ago
parent 39260008a0
commit 15089938d6

@ -1,23 +1,32 @@
class MessageCenterModel {
String commentTitle;
int sysCount;
String sysTitle;
int commentCount;
MessageCenterModel.zero() {
commentTitle = '';
sysCount = 0;
sysTitle = '';
commentCount = 0;
}
MessageCenterModel({this.sysCount, this.sysTitle});
MessageCenterModel(
{this.commentTitle, this.sysCount, this.sysTitle, this.commentCount});
MessageCenterModel.fromJson(Map<String, dynamic> json) {
commentTitle = json['commentTitle'];
sysCount = json['sysCount'];
sysTitle = json['sysTitle'];
commentCount = json['commentCount'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['commentTitle'] = this.commentTitle;
data['sysCount'] = this.sysCount;
data['sysTitle'] = this.sysTitle;
data['commentCount'] = this.commentCount;
return data;
}
}

@ -73,12 +73,12 @@ class _MessageCenterPageState extends State<MessageCenterPage> {
count: appProvider.messageCenterModel.sysCount,
onTap: SystemMessagePage().to,
),
// _buildCard(
// path: R.ASSETS_ICONS_COMMENT_NOTICE_PNG,
// title: '评论通知',
// content: '',
// count: 0,
// ),
_buildCard(
path: R.ASSETS_ICONS_COMMENT_NOTICE_PNG,
title: '评论通知',
content: appProvider.messageCenterModel.commentTitle,
count: appProvider.messageCenterModel.commentCount,
),
// _buildCard(
// path: R.ASSETS_ICONS_SHOP_NOTICE_PNG,
// title: '商城通知',

Loading…
Cancel
Save