|
@@ -98,7 +98,7 @@ class _InvitationThemeHomePageState extends State<InvitationThemeHomePage> { |
|
@@ -98,7 +98,7 @@ class _InvitationThemeHomePageState extends State<InvitationThemeHomePage> { |
|
98
|
}
|
98
|
}
|
|
99
|
|
99
|
|
|
100
|
_getTitleTypeData() async {
|
100
|
_getTitleTypeData() async {
|
|
101
|
- await marketingCenterProvider.getTitleTypeData(context,showLoading: false);
|
101
|
+ await marketingCenterProvider.getTitleTypeData(context, showLoading: false);
|
|
102
|
}
|
102
|
}
|
|
103
|
|
103
|
|
|
104
|
_getThemeData() async {
|
104
|
_getThemeData() async {
|
|
@@ -140,12 +140,14 @@ class _InvitationThemeHomePageState extends State<InvitationThemeHomePage> { |
|
@@ -140,12 +140,14 @@ class _InvitationThemeHomePageState extends State<InvitationThemeHomePage> { |
|
140
|
// swiperController.notifyListeners();
|
140
|
// swiperController.notifyListeners();
|
|
141
|
if (marketingCenterProvider.isThemeColor) {
|
141
|
if (marketingCenterProvider.isThemeColor) {
|
|
142
|
List<ColorListModel> colors = marketingCenterProvider.colors;
|
142
|
List<ColorListModel> colors = marketingCenterProvider.colors;
|
|
143
|
- themeColor = colors[colors.indexWhere((element) =>
|
|
|
|
144
|
- element.liteClass ==
|
|
|
|
145
|
- marketingCenterProvider.markDataModel!.liteClass)]
|
|
|
|
146
|
- .colorName;
|
|
|
|
147
|
- marketingCenterProvider.templeteDatas![index].themeColorDefault =
|
|
|
|
148
|
- themeColor;
|
143
|
+ if (marketingCenterProvider.markDataModel!.liteClass != '') {
|
|
|
|
144
|
+ themeColor = colors[colors.indexWhere((element) =>
|
|
|
|
145
|
+ element.liteClass ==
|
|
|
|
146
|
+ marketingCenterProvider.markDataModel!.liteClass)]
|
|
|
|
147
|
+ .colorName;
|
|
|
|
148
|
+ marketingCenterProvider.templeteDatas![index].themeColorDefault =
|
|
|
|
149
|
+ themeColor;
|
|
|
|
150
|
+ }
|
|
149
|
}
|
151
|
}
|
|
150
|
|
152
|
|
|
151
|
setState(() {});
|
153
|
setState(() {});
|
|
@@ -163,7 +165,8 @@ class _InvitationThemeHomePageState extends State<InvitationThemeHomePage> { |
|
@@ -163,7 +165,8 @@ class _InvitationThemeHomePageState extends State<InvitationThemeHomePage> { |
|
163
|
}
|
165
|
}
|
|
164
|
|
166
|
|
|
165
|
Future<bool> getSellerTemplateConf(BuildContext context) async {
|
167
|
Future<bool> getSellerTemplateConf(BuildContext context) async {
|
|
166
|
- bool success = await marketingCenterProvider.getSellerTemplateConf(context,showLoading: false);
|
168
|
+ bool success = await marketingCenterProvider.getSellerTemplateConf(context,
|
|
|
|
169
|
+ showLoading: false);
|
|
167
|
if (success && marketingCenterProvider.markDataModel != null) {
|
170
|
if (success && marketingCenterProvider.markDataModel != null) {
|
|
168
|
return true;
|
171
|
return true;
|
|
169
|
} else {
|
172
|
} else {
|
|
@@ -328,8 +331,8 @@ class _InvitationThemeHomePageState extends State<InvitationThemeHomePage> { |
|
@@ -328,8 +331,8 @@ class _InvitationThemeHomePageState extends State<InvitationThemeHomePage> { |
|
328
|
// SellerTemplateColorListModel.fromJson(data).data;
|
331
|
// SellerTemplateColorListModel.fromJson(data).data;
|
|
329
|
// return true;
|
332
|
// return true;
|
|
330
|
|
333
|
|
|
331
|
- bool success =
|
|
|
|
332
|
- await marketingCenterProvider.getSellerTemplateColorList(context,showLoading: false);
|
334
|
+ bool success = await marketingCenterProvider
|
|
|
|
335
|
+ .getSellerTemplateColorList(context, showLoading: false);
|
|
333
|
if (success) {
|
336
|
if (success) {
|
|
334
|
return true;
|
337
|
return true;
|
|
335
|
}
|
338
|
}
|
|
@@ -337,7 +340,8 @@ class _InvitationThemeHomePageState extends State<InvitationThemeHomePage> { |
|
@@ -337,7 +340,8 @@ class _InvitationThemeHomePageState extends State<InvitationThemeHomePage> { |
|
337
|
}
|
340
|
}
|
|
338
|
|
341
|
|
|
339
|
Future<bool> getColorsData() async {
|
342
|
Future<bool> getColorsData() async {
|
|
340
|
- bool success = await marketingCenterProvider.getColorsData(context,showLoading: false);
|
343
|
+ bool success = await marketingCenterProvider.getColorsData(context,
|
|
|
|
344
|
+ showLoading: false);
|
|
341
|
if (success) {
|
345
|
if (success) {
|
|
342
|
return true;
|
346
|
return true;
|
|
343
|
}
|
347
|
}
|