From c4c4c757a6c06a2ff3aba81ff038d4343110da45 Mon Sep 17 00:00:00 2001 From: "23028876916@qq.com" Date: Thu, 6 May 2021 18:46:43 +0800 Subject: [PATCH] =?UTF-8?q?0506=20modle=E6=B7=BB=E5=8A=A0=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/models/base/base_tab_model.dart | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/lib/models/base/base_tab_model.dart b/lib/models/base/base_tab_model.dart index 09136e7..e759896 100644 --- a/lib/models/base/base_tab_model.dart +++ b/lib/models/base/base_tab_model.dart @@ -9,16 +9,19 @@ class BaseTabModel extends SkipModel { String cateTag; String bgColor; String fontColor; + //抖券判断是否是底部创建,默认不是 + bool isBottomVideo = false; - BaseTabModel( - {this.name, - this.isShow, - this.icon, - this.chooseColor, - this.chooseIcon, - this.cateTag, - this.bgColor, - this.fontColor}); + BaseTabModel({this.name, + this.isShow, + this.icon, + this.chooseColor, + this.chooseIcon, + this.cateTag, + this.bgColor, + this.fontColor, + this.isBottomVideo + }); BaseTabModel.fromJson(Map json) { super.fromJson(json); @@ -33,6 +36,7 @@ class BaseTabModel extends SkipModel { requiredTaobaoAuth = json['required_taobao_auth']; bgColor = json['bg_color']; fontColor = json['font_color']; + isBottomVideo=json['is_bottom_video']; } Map toJson() { @@ -45,6 +49,7 @@ class BaseTabModel extends SkipModel { data['cate_tag'] = this.cateTag; data['bg_color'] = this.bgColor; data['font_color'] = this.fontColor; + data['is_bottom_video'] = this.isBottomVideo; return data; } }