logo和名称替换
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:hgmj/assets_tool/app_colors.dart';
|
||||
import 'package:hgmj/hj_model/drama_media_info.dart';
|
||||
import 'package:hgmj/hj_model/splash/ads_model.dart';
|
||||
import 'package:hgmj/hj_model/video_model.dart';
|
||||
import 'package:hgmj/tools_base/global_store/store.dart';
|
||||
import 'package:wydj/assets_tool/app_colors.dart';
|
||||
import 'package:wydj/hj_model/drama_media_info.dart';
|
||||
import 'package:wydj/hj_model/splash/ads_model.dart';
|
||||
import 'package:wydj/hj_model/video_model.dart';
|
||||
import 'package:wydj/tools_base/global_store/store.dart';
|
||||
|
||||
import 'acg/comic_chapters_model.dart';
|
||||
import 'actress_info.dart';
|
||||
@@ -30,7 +30,8 @@ class CartoonMediaInfo {
|
||||
int? totalEpisode; //总集数
|
||||
int? currentEpisode; //当前集数
|
||||
int? freeEpisode; //免费集数
|
||||
bool isCartoonFreeEpisode = false; //当前播放集是否属于免费集(前 freeEpisode 集):运行时按当前集号计算,命中则不拦播、进度可全程拖
|
||||
bool isCartoonFreeEpisode =
|
||||
false; //当前播放集是否属于免费集(前 freeEpisode 集):运行时按当前集号计算,命中则不拦播、进度可全程拖
|
||||
int? updateStatus; //更新状态 0 默认 1、更新中 2、已完结
|
||||
String? updateTime; //文档更新时间
|
||||
String? createdAt; //文档创建时间
|
||||
@@ -86,16 +87,19 @@ class CartoonMediaInfo {
|
||||
bool isSelected = false; // 是否选中
|
||||
String? heroTag; //本地字段,用于传递hero动画tag 随机数
|
||||
|
||||
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 => mediaType == 'image' ? '话' : '章';
|
||||
//更新状态
|
||||
String get updateDesc => updateStatus == 1 ? '连载中' : '已完结';
|
||||
|
||||
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(',') ?? '';
|
||||
|
||||
//更新状态
|
||||
String get getDetailUpdateString {
|
||||
@@ -237,50 +241,51 @@ class CartoonMediaInfo {
|
||||
globalStore.isSuperUp;
|
||||
}
|
||||
|
||||
CartoonMediaInfo(
|
||||
{this.contents,
|
||||
this.choiceSort,
|
||||
this.countBrowse,
|
||||
this.countCollect,
|
||||
this.countComment,
|
||||
this.countLike,
|
||||
this.countPurchases,
|
||||
this.countPurchasesRate,
|
||||
this.countView,
|
||||
this.createdAt,
|
||||
this.direction,
|
||||
this.freeTime,
|
||||
this.horizontalCover,
|
||||
this.id,
|
||||
this.isDelete,
|
||||
this.kind,
|
||||
this.mId,
|
||||
this.mediaType,
|
||||
this.moduleName,
|
||||
this.permission,
|
||||
this.permissionIconHide,
|
||||
this.price,
|
||||
this.sId,
|
||||
this.discountPrice,
|
||||
this.sectionName,
|
||||
this.sectionSort,
|
||||
this.sortCode,
|
||||
this.status,
|
||||
this.summary,
|
||||
this.tagDetails,
|
||||
this.title,
|
||||
this.totalEpisode,
|
||||
this.currentEpisode,
|
||||
this.updateStatus,
|
||||
this.updateTime,
|
||||
this.updatedAct,
|
||||
this.verticalCover,
|
||||
this.author,
|
||||
this.freeEpisode,
|
||||
this.contentsPrice,
|
||||
this.mediaSubType,
|
||||
this.actress,
|
||||
this.hot,});
|
||||
CartoonMediaInfo({
|
||||
this.contents,
|
||||
this.choiceSort,
|
||||
this.countBrowse,
|
||||
this.countCollect,
|
||||
this.countComment,
|
||||
this.countLike,
|
||||
this.countPurchases,
|
||||
this.countPurchasesRate,
|
||||
this.countView,
|
||||
this.createdAt,
|
||||
this.direction,
|
||||
this.freeTime,
|
||||
this.horizontalCover,
|
||||
this.id,
|
||||
this.isDelete,
|
||||
this.kind,
|
||||
this.mId,
|
||||
this.mediaType,
|
||||
this.moduleName,
|
||||
this.permission,
|
||||
this.permissionIconHide,
|
||||
this.price,
|
||||
this.sId,
|
||||
this.discountPrice,
|
||||
this.sectionName,
|
||||
this.sectionSort,
|
||||
this.sortCode,
|
||||
this.status,
|
||||
this.summary,
|
||||
this.tagDetails,
|
||||
this.title,
|
||||
this.totalEpisode,
|
||||
this.currentEpisode,
|
||||
this.updateStatus,
|
||||
this.updateTime,
|
||||
this.updatedAct,
|
||||
this.verticalCover,
|
||||
this.author,
|
||||
this.freeEpisode,
|
||||
this.contentsPrice,
|
||||
this.mediaSubType,
|
||||
this.actress,
|
||||
this.hot,
|
||||
});
|
||||
|
||||
CartoonMediaInfo.fromJson(dynamic json) {
|
||||
freeEpisode = json['freeEpisode'];
|
||||
@@ -321,11 +326,15 @@ class CartoonMediaInfo {
|
||||
status = json['status'];
|
||||
summary = json['summary'];
|
||||
lsjId = json['lsjId'];
|
||||
actress = json["actress"] == null ? null : ActressInfo.fromJson(json["actress"]);
|
||||
allActress = json["actresses"] == null ? [] : List<ActressInfo>.from(json["actresses"]!.map((x) => ActressInfo.fromJson(x)));
|
||||
actress =
|
||||
json["actress"] == null ? null : ActressInfo.fromJson(json["actress"]);
|
||||
allActress = json["actresses"] == null
|
||||
? []
|
||||
: List<ActressInfo>.from(
|
||||
json["actresses"]!.map((x) => ActressInfo.fromJson(x)));
|
||||
hasFollow = json['hasFollow'];
|
||||
final hot = json['hot'];
|
||||
if(hot is int) {
|
||||
if (hot is int) {
|
||||
this.hot = hot;
|
||||
}
|
||||
if (json['tagDetails'] != null) {
|
||||
|
||||
Reference in New Issue
Block a user