mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 08:38:18 +08:00
@@ -1,3 +1,4 @@
|
|||||||
|
import 'package:PiliPlus/models/model_avatar.dart';
|
||||||
import 'package:PiliPlus/models/model_owner.dart';
|
import 'package:PiliPlus/models/model_owner.dart';
|
||||||
import 'package:PiliPlus/models/model_video.dart';
|
import 'package:PiliPlus/models/model_video.dart';
|
||||||
import 'package:PiliPlus/utils/duration_util.dart';
|
import 'package:PiliPlus/utils/duration_util.dart';
|
||||||
@@ -164,7 +165,7 @@ class SearchUserItemModel {
|
|||||||
int? isUpUser;
|
int? isUpUser;
|
||||||
int? isLive;
|
int? isLive;
|
||||||
int? roomId;
|
int? roomId;
|
||||||
Map? officialVerify;
|
BaseOfficialVerify? officialVerify;
|
||||||
int? isSeniorMember;
|
int? isSeniorMember;
|
||||||
|
|
||||||
SearchUserItemModel.fromJson(Map<String, dynamic> json) {
|
SearchUserItemModel.fromJson(Map<String, dynamic> json) {
|
||||||
@@ -183,7 +184,9 @@ class SearchUserItemModel {
|
|||||||
isUpUser = json['is_upuser'];
|
isUpUser = json['is_upuser'];
|
||||||
isLive = json['is_live'];
|
isLive = json['is_live'];
|
||||||
roomId = json['room_id'];
|
roomId = json['room_id'];
|
||||||
officialVerify = json['official_verify'];
|
officialVerify = json['official_verify'] == null
|
||||||
|
? null
|
||||||
|
: BaseOfficialVerify.fromJson(json['official_verify']);
|
||||||
isSeniorMember = json['is_senior_member'];
|
isSeniorMember = json['is_senior_member'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ class Card {
|
|||||||
String? face;
|
String? face;
|
||||||
int? fans;
|
int? fans;
|
||||||
int? attention;
|
int? attention;
|
||||||
BaseOfficialVerify? officialVerify;
|
BaseOfficialVerify? official;
|
||||||
Vip? vip;
|
Vip? vip;
|
||||||
|
|
||||||
Card({
|
Card({
|
||||||
@@ -15,7 +15,7 @@ class Card {
|
|||||||
this.face,
|
this.face,
|
||||||
this.fans,
|
this.fans,
|
||||||
this.attention,
|
this.attention,
|
||||||
this.officialVerify,
|
this.official,
|
||||||
this.vip,
|
this.vip,
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -25,10 +25,10 @@ class Card {
|
|||||||
face: json['face'] as String?,
|
face: json['face'] as String?,
|
||||||
fans: json['fans'] as int?,
|
fans: json['fans'] as int?,
|
||||||
attention: json['attention'] as int?,
|
attention: json['attention'] as int?,
|
||||||
officialVerify: json['official_verify'] == null
|
official: json['Official'] == null
|
||||||
? null
|
? null
|
||||||
: BaseOfficialVerify.fromJson(
|
: BaseOfficialVerify.fromJson(
|
||||||
json['official_verify'] as Map<String, dynamic>,
|
json['Official'] as Map<String, dynamic>,
|
||||||
),
|
),
|
||||||
vip: json['vip'] == null
|
vip: json['vip'] == null
|
||||||
? null
|
? null
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ class SearchUserItem extends StatelessWidget {
|
|||||||
avatar: item.upic,
|
avatar: item.upic,
|
||||||
size: 42,
|
size: 42,
|
||||||
isVip: false,
|
isVip: false,
|
||||||
officialType: item.officialVerify?['type'],
|
officialType: item.officialVerify?.type,
|
||||||
roomId: item.isLive == 1 ? item.roomId : null,
|
roomId: item.isLive == 1 ? item.roomId : null,
|
||||||
),
|
),
|
||||||
const SizedBox(width: 10),
|
const SizedBox(width: 10),
|
||||||
@@ -59,10 +59,9 @@ class SearchUserItem extends StatelessWidget {
|
|||||||
'粉丝:${NumUtil.numFormat(item.fans)} 视频:${NumUtil.numFormat(item.videos)}',
|
'粉丝:${NumUtil.numFormat(item.fans)} 视频:${NumUtil.numFormat(item.videos)}',
|
||||||
style: style,
|
style: style,
|
||||||
),
|
),
|
||||||
if (item.officialVerify?['desc'] != null &&
|
if (item.officialVerify?.desc?.isNotEmpty == true)
|
||||||
item.officialVerify?['desc'] != '')
|
|
||||||
Text(
|
Text(
|
||||||
item.officialVerify?['desc'],
|
item.officialVerify!.desc!,
|
||||||
style: style,
|
style: style,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -815,7 +815,7 @@ class _UgcIntroPanelState extends TripleState<UgcIntroPanel>
|
|||||||
size: 35,
|
size: 35,
|
||||||
badgeSize: 14,
|
badgeSize: 14,
|
||||||
isVip: isVip,
|
isVip: isVip,
|
||||||
officialType: userStat.card?.officialVerify?.type,
|
officialType: userStat.card?.official?.type,
|
||||||
),
|
),
|
||||||
const SizedBox(width: 10),
|
const SizedBox(width: 10),
|
||||||
Column(
|
Column(
|
||||||
|
|||||||
Reference in New Issue
Block a user