feat: 播放处理,个人中心,
This commit is contained in:
1 parent
e59ac2177b
commit
4ccea08472
37 files changed
+1425
-115
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import '../model_parser.dart';
|
||||
|
||||
class GlimzoUser {
|
||||
class SkywoodUser {
|
||||
final String customerId;
|
||||
final bool isTourist;
|
||||
final String userLevel;
|
||||
@@ -8,7 +8,7 @@ class GlimzoUser {
|
||||
final String? familyName;
|
||||
final String? givingName;
|
||||
|
||||
const GlimzoUser({
|
||||
const SkywoodUser({
|
||||
required this.customerId,
|
||||
required this.isTourist,
|
||||
required this.userLevel,
|
||||
@@ -17,8 +17,8 @@ class GlimzoUser {
|
||||
this.givingName,
|
||||
});
|
||||
|
||||
factory GlimzoUser.fromJson(Map<String, dynamic> json) {
|
||||
return GlimzoUser(
|
||||
factory SkywoodUser.fromJson(Map<String, dynamic> json) {
|
||||
return SkywoodUser(
|
||||
customerId: parseString(json['customer_id']),
|
||||
isTourist: parseBool(json['is_tourist']),
|
||||
userLevel: parseString(json['user_level']),
|
||||
@@ -39,7 +39,7 @@ class GlimzoUser {
|
||||
};
|
||||
}
|
||||
|
||||
GlimzoUser copyWith({
|
||||
SkywoodUser copyWith({
|
||||
String? customerId,
|
||||
bool? isTourist,
|
||||
String? userLevel,
|
||||
@@ -47,7 +47,7 @@ class GlimzoUser {
|
||||
String? familyName,
|
||||
String? givingName,
|
||||
}) {
|
||||
return GlimzoUser(
|
||||
return SkywoodUser(
|
||||
customerId: customerId ?? this.customerId,
|
||||
isTourist: isTourist ?? this.isTourist,
|
||||
userLevel: userLevel ?? this.userLevel,
|
||||
@@ -61,6 +61,26 @@ class ConstImg {
|
||||
static const String playLt = "assets/pics/player_lt.png";
|
||||
static const String liked = "assets/pics/liked.png";
|
||||
static const String unlike = "assets/pics/unlike.png";
|
||||
static const String espBg = "assets/pics/esp_bg.png";
|
||||
static const String cateSelLeft = "assets/pics/cate_sel_left.png";
|
||||
static const String cateSelRight = "assets/pics/cate_sel_right.png";
|
||||
|
||||
static const String playTag = "assets/pics/play_tag.png";
|
||||
static const String rank1 = "assets/pics/rank1.png";
|
||||
static const String rank2 = "assets/pics/rank2.png";
|
||||
static const String rank3 = "assets/pics/rank3.png";
|
||||
|
||||
/// mine
|
||||
static const String copy = "assets/mine/copy.png";
|
||||
static const String littleLeft = "assets/mine/little_left.png";
|
||||
static const String littleRight = "assets/mine/little_right.png";
|
||||
static const String mineTop = "assets/mine/mine_top.png";
|
||||
static const String sectionTopBg = "assets/mine/section_top_bg.png";
|
||||
static const String sectionBg1 = "assets/mine/section_bg1.png";
|
||||
static const String sectionBg2 = "assets/mine/section_bg2.png";
|
||||
static const String sectionBg3 = "assets/mine/section_bg3.png";
|
||||
static const String defAvatar = "assets/mine/def_avatar.png";
|
||||
|
||||
|
||||
|
||||
// nodata
|
||||
|
||||
@@ -16,7 +16,7 @@ class SkyTimeTool {
|
||||
num value, {
|
||||
int decimalDigits = 1,
|
||||
String separator = ',',
|
||||
String unit = 'K',
|
||||
String unit = 'k',
|
||||
}) {
|
||||
String removeTrailingZeros(String str) {
|
||||
if (str.contains('.')) {
|
||||
|
||||
Reference in new issue
Block a user