mod: 用户页跳转&样式修改
This commit is contained in:
@ -7,6 +7,9 @@ class MemberInfoModel {
|
||||
this.sign,
|
||||
this.level,
|
||||
this.isFollowed,
|
||||
this.topPhoto,
|
||||
this.official,
|
||||
this.vip,
|
||||
});
|
||||
|
||||
int? mid;
|
||||
@ -16,14 +19,73 @@ class MemberInfoModel {
|
||||
String? sign;
|
||||
int? level;
|
||||
bool? isFollowed;
|
||||
String? topPhoto;
|
||||
Map? official;
|
||||
Vip? vip;
|
||||
LiveRoom? liveRoom;
|
||||
|
||||
MemberInfoModel.fromJson(Map<String, dynamic> json) {
|
||||
mid = json['mid'];
|
||||
name = json['name'];
|
||||
sex = json['sex'];
|
||||
face = json['face'];
|
||||
sign = json['sign'];
|
||||
sign = json['sign'] == '' ? '该用户还没有签名' : json['sign'];
|
||||
level = json['level'];
|
||||
isFollowed = json['is_followed'];
|
||||
topPhoto = json['top_photo'];
|
||||
official = json['official'];
|
||||
vip = Vip.fromJson(json['vip']);
|
||||
liveRoom = LiveRoom.fromJson(json['live_room']);
|
||||
}
|
||||
}
|
||||
|
||||
class Vip {
|
||||
Vip({
|
||||
this.type,
|
||||
this.status,
|
||||
this.dueDate,
|
||||
this.label,
|
||||
});
|
||||
|
||||
int? type;
|
||||
int? status;
|
||||
int? dueDate;
|
||||
Map? label;
|
||||
|
||||
Vip.fromJson(Map<String, dynamic> json) {
|
||||
type = json['type'];
|
||||
status = json['status'];
|
||||
dueDate = json['due_date'];
|
||||
label = json['label'];
|
||||
}
|
||||
}
|
||||
|
||||
class LiveRoom {
|
||||
LiveRoom({
|
||||
this.roomStatus,
|
||||
this.liveStatus,
|
||||
this.url,
|
||||
this.title,
|
||||
this.cover,
|
||||
this.roomId,
|
||||
this.roundStatus,
|
||||
});
|
||||
|
||||
int? roomStatus;
|
||||
int? liveStatus;
|
||||
String? url;
|
||||
String? title;
|
||||
String? cover;
|
||||
int? roomId;
|
||||
int? roundStatus;
|
||||
|
||||
LiveRoom.fromJson(Map<String, dynamic> json) {
|
||||
roomStatus = json['room_status'];
|
||||
liveStatus = json['live_status'];
|
||||
url = json['url'];
|
||||
title = json['title'];
|
||||
cover = json['cover'];
|
||||
roomId = json['room_id'];
|
||||
roundStatus = json['round_status'];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user