You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

127 lines
3.9 KiB

4 years ago
/// vipNo : null
/// nickname : "回乡_019921"
/// headimg : ""
/// userType : true
/// sex : ""
/// level : 1
/// addressId : "0"
/// remark : ""
/// phone : "15827991714"
/// createTime : "2021-06-21 15:40:38"
/// birth : ""
/// balance : null
/// money : "0.00"
/// points : "0"
/// isBind : null
/// memberRankVo : null
4 years ago
import 'package:huixiang/retrofit/data/member_rank.dart';
4 years ago
4 years ago
class UserInfo {
UserInfo();
4 years ago
4 years ago
String vipNo;
2 years ago
String vipScanNo;
4 years ago
String nickname;
String headimg;
bool userType;
String sex;
int level;
String addressId;
String remark;
String phone;
String createTime;
String birth;
dynamic balance;
String money;
String activityMoney;
String expendAmount;
4 years ago
String points;
String greenMoney;
String raiseMoney;
String raiseExpireTime;
bool isBind;
String masterId;
dynamic inviteNumber;
dynamic todayInviteNumber;
String masterCardRankName;
4 years ago
MemberRank memberRankVo;
3 years ago
String inviteCode;
String signature;
String background;
bool hasPayPassword;
String happyBean;
1.动态详情,评论-已显示全部—修改; 2.新增加集换卡详情页面; 3.语言-增加部分文本语言并更改; 4.回乡VIP板块更改;原本的VIP卡逻辑暂时不用,换成用户充值200即成为会员,该页面ui调整;(原来逻辑未删减,暂保留不使用) 5.16进制渐变色值的方法,改变亮度暂定统一为95; 6.首页ui调整;邀请好友图片处,原单一图片现更改为轮播效果,新增集换卡引导也放在此处; 7.积分明细页面更改;共用一个页面根据积分跟集换卡的入口,传对应的值,查看对应的数据; 8.积分明细跳转路径更改,新增一个类型带入路径中跳转传入; 9.更改测试版本服务地址; 10.我的页面跟首页更改一致,单一图片改轮播效果; 11.会员中心,会员卡部分更改;将原有写法去掉,重写了会员卡的使用显示,并优化了该页面数据的显示; 12.我的页面,vip等级显示更改; 13.会员卡列表等级接口,实体类新增部分字段;(原定位分数已不用,更改为originScore,后期若用的原字段,需要修改) 14.订单结算页,支付类型更换时queryOrderInfo()接口中。优惠类型做了调整更改;(改修改需要多测试下,尝试多种情况看下,是否有问题;有可能部分情况没有预判到) 15.点单页结算跳转,vipLevelName,vipLevelName字段做了非空判断; 16.UserInfo实体类新增isVip字段;(主要用于查看用户数据是查询该用户是否已是vip卡状态) 17.福利兑换中心页面,我的信息部分ui做调整,新增集换卡数量的显示;
2 years ago
bool isVip;
4 years ago
4 years ago
factory UserInfo.fromJson(Map<String, dynamic> json) =>
4 years ago
UserInfo()
..vipNo = json['vipNo'] as String
2 years ago
..vipScanNo =json['vipScanNo'] as String
4 years ago
..nickname = json['nickname'] as String
..headimg = json['headimg'] as String
..userType = json['userType'] as bool
..sex = json['sex'] as String
..level = json['level'] as int
..addressId = json['addressId'] as String
..remark = json['remark'] as String
..phone = json['phone'] as String
..createTime = json['createTime'] as String
..birth = json['birth'] as String
..balance = json['balance']
..money = json['money'] as String
..activityMoney = json['activityMoney'] as String
..expendAmount = json['expendAmount'] as String
4 years ago
..points = json['points'] as String
..greenMoney = json['greenMoney'] as String
..raiseMoney = json['raiseMoney'] as String
..raiseExpireTime = json['raiseExpireTime'] as String
4 years ago
..isBind = json['isBind'] as bool
..masterId = json['masterId'] as String
..inviteNumber = json['inviteNumber'] as dynamic
..todayInviteNumber = json['todayInviteNumber'] as dynamic
..masterCardRankName = json['masterCardRankName'] as String
3 years ago
..inviteCode = json['inviteCode'] as String
..signature = json['signature'] as String
..background = json['background'] as String
..hasPayPassword = json['hasPayPassword'] as bool
..happyBean = json['happyBean'] as String
1.动态详情,评论-已显示全部—修改; 2.新增加集换卡详情页面; 3.语言-增加部分文本语言并更改; 4.回乡VIP板块更改;原本的VIP卡逻辑暂时不用,换成用户充值200即成为会员,该页面ui调整;(原来逻辑未删减,暂保留不使用) 5.16进制渐变色值的方法,改变亮度暂定统一为95; 6.首页ui调整;邀请好友图片处,原单一图片现更改为轮播效果,新增集换卡引导也放在此处; 7.积分明细页面更改;共用一个页面根据积分跟集换卡的入口,传对应的值,查看对应的数据; 8.积分明细跳转路径更改,新增一个类型带入路径中跳转传入; 9.更改测试版本服务地址; 10.我的页面跟首页更改一致,单一图片改轮播效果; 11.会员中心,会员卡部分更改;将原有写法去掉,重写了会员卡的使用显示,并优化了该页面数据的显示; 12.我的页面,vip等级显示更改; 13.会员卡列表等级接口,实体类新增部分字段;(原定位分数已不用,更改为originScore,后期若用的原字段,需要修改) 14.订单结算页,支付类型更换时queryOrderInfo()接口中。优惠类型做了调整更改;(改修改需要多测试下,尝试多种情况看下,是否有问题;有可能部分情况没有预判到) 15.点单页结算跳转,vipLevelName,vipLevelName字段做了非空判断; 16.UserInfo实体类新增isVip字段;(主要用于查看用户数据是查询该用户是否已是vip卡状态) 17.福利兑换中心页面,我的信息部分ui做调整,新增集换卡数量的显示;
2 years ago
..isVip = json['isVip'] as bool
4 years ago
..memberRankVo = json['memberRankVo'] == null
? null
: MemberRank.fromJson(json['memberRankVo'] as Map<String, dynamic>);
4 years ago
Map<String, dynamic> toJson() => <String, dynamic>{
'vipNo': this.vipNo,
2 years ago
'vipScanNo':this.vipScanNo,
4 years ago
'nickname': this.nickname,
'headimg': this.headimg,
'userType': this.userType,
'sex': this.sex,
'level': this.level,
'addressId': this.addressId,
'remark': this.remark,
'phone': this.phone,
'createTime': this.createTime,
'birth': this.birth,
'balance': this.balance,
'money': this.money,
'activityMoney': this.activityMoney,
'expendAmount': this.expendAmount,
4 years ago
'points': this.points,
'greenMoney': this.greenMoney,
'raiseMoney': this.raiseMoney,
'raiseExpireTime': this.raiseExpireTime,
4 years ago
'isBind': this.isBind,
'masterId': this.masterId,
"inviteNumber": this.inviteNumber,
"todayInviteNumber": this.todayInviteNumber,
'masterCardRankName': this.masterCardRankName,
3 years ago
'inviteCode' : this.inviteCode,
'signature' : this.signature,
'background' : this.background,
'hasPayPassword' : this.hasPayPassword,
'happyBean':this.happyBean,
1.动态详情,评论-已显示全部—修改; 2.新增加集换卡详情页面; 3.语言-增加部分文本语言并更改; 4.回乡VIP板块更改;原本的VIP卡逻辑暂时不用,换成用户充值200即成为会员,该页面ui调整;(原来逻辑未删减,暂保留不使用) 5.16进制渐变色值的方法,改变亮度暂定统一为95; 6.首页ui调整;邀请好友图片处,原单一图片现更改为轮播效果,新增集换卡引导也放在此处; 7.积分明细页面更改;共用一个页面根据积分跟集换卡的入口,传对应的值,查看对应的数据; 8.积分明细跳转路径更改,新增一个类型带入路径中跳转传入; 9.更改测试版本服务地址; 10.我的页面跟首页更改一致,单一图片改轮播效果; 11.会员中心,会员卡部分更改;将原有写法去掉,重写了会员卡的使用显示,并优化了该页面数据的显示; 12.我的页面,vip等级显示更改; 13.会员卡列表等级接口,实体类新增部分字段;(原定位分数已不用,更改为originScore,后期若用的原字段,需要修改) 14.订单结算页,支付类型更换时queryOrderInfo()接口中。优惠类型做了调整更改;(改修改需要多测试下,尝试多种情况看下,是否有问题;有可能部分情况没有预判到) 15.点单页结算跳转,vipLevelName,vipLevelName字段做了非空判断; 16.UserInfo实体类新增isVip字段;(主要用于查看用户数据是查询该用户是否已是vip卡状态) 17.福利兑换中心页面,我的信息部分ui做调整,新增集换卡数量的显示;
2 years ago
'isVip':this.isVip,
'memberRankVo': this.memberRankVo == null ? "" : this.memberRankVo.toJson(),
4 years ago
};
4 years ago
}