logo和名称替换
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:hgmj/assets_tool/app_colors.dart';
|
||||
import 'package:hgmj/hj_model/media_content.dart';
|
||||
import 'package:hgmj/hj_model/video_model.dart';
|
||||
import 'package:wydj/assets_tool/app_colors.dart';
|
||||
import 'package:wydj/hj_model/media_content.dart';
|
||||
import 'package:wydj/hj_model/video_model.dart';
|
||||
|
||||
/// 短剧作品信息(接口 DramaInfo:一部剧 + 一堆分集)
|
||||
/// 单集播放数据用 [toVideoModel] 转成 VideoModel 交给短视频播放器
|
||||
@@ -72,9 +72,11 @@ class DramaMediaInfo {
|
||||
bool haxNextEpisode = true; //是否还有下一页
|
||||
bool isSelected = false; //是否选中
|
||||
|
||||
String? get coverH => horizontalCover?.isNotEmpty == true ? horizontalCover : verticalCover;
|
||||
String? get coverH =>
|
||||
horizontalCover?.isNotEmpty == true ? horizontalCover : verticalCover;
|
||||
|
||||
String? get coverV => verticalCover?.isNotEmpty == true ? verticalCover : horizontalCover;
|
||||
String? get coverV =>
|
||||
verticalCover?.isNotEmpty == true ? verticalCover : horizontalCover;
|
||||
|
||||
String get unit => '集';
|
||||
|
||||
@@ -83,9 +85,11 @@ class DramaMediaInfo {
|
||||
|
||||
String get tagIds => tagDetails?.map((e) => e.id).toList().join(',') ?? '';
|
||||
|
||||
String get tagNames => tagDetails?.map((e) => e.name).toList().join(',') ?? '';
|
||||
String get tagNames =>
|
||||
tagDetails?.map((e) => e.name).toList().join(',') ?? '';
|
||||
|
||||
Color get updateDescColor => updateStatus == 1 ? AppColors.actionRed : const Color(0xff989898);
|
||||
Color get updateDescColor =>
|
||||
updateStatus == 1 ? AppColors.actionRed : const Color(0xff989898);
|
||||
|
||||
//集数状态描述
|
||||
String get episodeNumberStatus {
|
||||
@@ -172,13 +176,14 @@ class DramaMediaInfo {
|
||||
countView = json['countView'];
|
||||
hasFollow = json['hasFollow'];
|
||||
final hot = json['hot'];
|
||||
if(hot is int) {
|
||||
if (hot is int) {
|
||||
this.hot = hot;
|
||||
}
|
||||
direction = json['direction'];
|
||||
freeTime = json['freeTime'];
|
||||
mediaStatus = VidStatus.fromMap(json['mediaStatus']);
|
||||
tagDetails = (json['tagDetails'] as List?)?.map((e) => TagsBean.fromMap(e)).toList();
|
||||
tagDetails =
|
||||
(json['tagDetails'] as List?)?.map((e) => TagsBean.fromMap(e)).toList();
|
||||
}
|
||||
|
||||
/// 落本地观看记录用(见 [DramaResume.drama])。只序列化后端字段,
|
||||
|
||||
Reference in New Issue
Block a user