|
@@ -12,6 +12,9 @@ class AppConfigModel { |
|
|
// 引导页 |
|
|
// 引导页 |
|
|
AppConfigGuideModel guideImage; |
|
|
AppConfigGuideModel guideImage; |
|
|
|
|
|
|
|
|
|
|
|
// H5根域名 |
|
|
|
|
|
DomainModel domain; |
|
|
|
|
|
|
|
|
///新引导页参数 |
|
|
///新引导页参数 |
|
|
GuideData guideData; |
|
|
GuideData guideData; |
|
|
|
|
|
|
|
@@ -19,7 +22,7 @@ class AppConfigModel { |
|
|
|
|
|
|
|
|
static AppConfigModel _config; |
|
|
static AppConfigModel _config; |
|
|
|
|
|
|
|
|
AppConfigModel({this.keys, this.guideImage}); |
|
|
|
|
|
|
|
|
AppConfigModel({this.keys, this.guideImage, this.domain}); |
|
|
|
|
|
|
|
|
static AppConfigModel getConfig() => _config; |
|
|
static AppConfigModel getConfig() => _config; |
|
|
|
|
|
|
|
@@ -55,6 +58,7 @@ class AppConfigModel { |
|
|
guideImage = json['guide_image'] != null ? new AppConfigGuideModel.fromJson(json['guide_image']) : null; |
|
|
guideImage = json['guide_image'] != null ? new AppConfigGuideModel.fromJson(json['guide_image']) : null; |
|
|
guideData = json['guide_data'] != null ? GuideData.fromJson(json['guide_data']) : null; |
|
|
guideData = json['guide_data'] != null ? GuideData.fromJson(json['guide_data']) : null; |
|
|
appStartDelay = json['app_start_delay'] != null ? json['app_start_delay'] : '0.5'; |
|
|
appStartDelay = json['app_start_delay'] != null ? json['app_start_delay'] : '0.5'; |
|
|
|
|
|
domain = json['domain'] != null ? new DomainModel.fromJson(json['domain']) : null; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() { |
|
|
Map<String, dynamic> toJson() { |
|
@@ -65,6 +69,9 @@ class AppConfigModel { |
|
|
if (this.guideImage != null) { |
|
|
if (this.guideImage != null) { |
|
|
data['guide_image'] = this.guideImage.toJson(); |
|
|
data['guide_image'] = this.guideImage.toJson(); |
|
|
} |
|
|
} |
|
|
|
|
|
if (this.domain != null) { |
|
|
|
|
|
data['domain'] = this.domain.toJson(); |
|
|
|
|
|
} |
|
|
return data; |
|
|
return data; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@@ -79,6 +86,7 @@ class AppConfigKeyModel { |
|
|
AppConfigKeyItemModel bugly; |
|
|
AppConfigKeyItemModel bugly; |
|
|
GDModel gd; |
|
|
GDModel gd; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AppConfigKeyModel({this.weibo, this.qq, this.weixin, this.jdIos, this.jdAndroid, this.taobao, this.bugly}); |
|
|
AppConfigKeyModel({this.weibo, this.qq, this.weixin, this.jdIos, this.jdAndroid, this.taobao, this.bugly}); |
|
|
|
|
|
|
|
|
AppConfigKeyModel.fromJson(Map<String, dynamic> json) { |
|
|
AppConfigKeyModel.fromJson(Map<String, dynamic> json) { |
|
@@ -118,7 +126,6 @@ class AppConfigKeyModel { |
|
|
if (this.bugly != null) { |
|
|
if (this.bugly != null) { |
|
|
data['bugly_list'] = this.bugly.toJson(); |
|
|
data['bugly_list'] = this.bugly.toJson(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return data; |
|
|
return data; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@@ -261,6 +268,23 @@ class AppConfigGuideModel { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
class DomainModel { |
|
|
|
|
|
String h5Url; |
|
|
|
|
|
|
|
|
|
|
|
DomainModel({this.h5Url}); |
|
|
|
|
|
|
|
|
|
|
|
DomainModel.fromJson(Map<String, dynamic> json) { |
|
|
|
|
|
h5Url = json['h5_url']?.toString(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() { |
|
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>(); |
|
|
|
|
|
data['h5_url'] = this.h5Url; |
|
|
|
|
|
return data; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
class GDModel { |
|
|
class GDModel { |
|
|
String androidKey; |
|
|
String androidKey; |
|
|
String iosKey; |
|
|
String iosKey; |
|
|