|
...
|
...
|
@@ -301,7 +301,8 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver { |
|
|
|
await collectStoreProvider.getSellerVersion(context);
|
|
|
|
if (collectStoreProvider.sellerSimple) {
|
|
|
|
//极速版
|
|
|
|
App.sp.remove('sellerEdate');
|
|
|
|
App.sp.remove('sellerEdate');
|
|
|
|
App.sp.remove('sellerEdateModule');
|
|
|
|
NavigatorUtil.goHomePageSim(context); //跳转到极速版 页面
|
|
|
|
} else {
|
|
|
|
if (collectStoreProvider.sellerVersionList != null &&
|
|
...
|
...
|
@@ -624,72 +625,72 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver { |
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
_showSellerAlert(String day, DateTime edate) {
|
|
|
|
if (App.sp.containsKey('sellerEdate')) {
|
|
|
|
//已经存进去过数据
|
|
|
|
List<String> data = App.sp.getStringList('sellerEdate');
|
|
|
|
if (!data.contains(day)) {
|
|
|
|
data.add(day);
|
|
|
|
App.sp.setStringList("sellerEdate", data);
|
|
|
|
//过期差ji天,提醒一次s
|
|
|
|
if (day == '-1') {
|
|
|
|
DialogUtil.cupertinoAlertSellerHasEdateDialog(
|
|
|
|
context,
|
|
|
|
title: '温馨提示',
|
|
|
|
isBold: true,
|
|
|
|
lCallback: () {
|
|
|
|
NavigatorUtil.goHomePage(context, initialIndex: 4);
|
|
|
|
},
|
|
|
|
rCallback: () {
|
|
|
|
//立即续费
|
|
|
|
},
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
DialogUtil.cupertinoAlertSellerEdateDialog(
|
|
|
|
context,
|
|
|
|
title: '温馨提示',
|
|
|
|
isBold: true,
|
|
|
|
content: DateUtil.formatDate(
|
|
|
|
edate,
|
|
|
|
format: DateFormats.full,
|
|
|
|
),
|
|
|
|
rCallback: () {
|
|
|
|
//立即续费
|
|
|
|
},
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
App.sp.setStringList("sellerEdate", [day]);
|
|
|
|
//过期差ji天,提醒一次s
|
|
|
|
if (day == '-1') {
|
|
|
|
DialogUtil.cupertinoAlertSellerHasEdateDialog(
|
|
|
|
context,
|
|
|
|
title: '温馨提示',
|
|
|
|
isBold: true,
|
|
|
|
lCallback: () {
|
|
|
|
NavigatorUtil.goHomePage(context, initialIndex: 4);
|
|
|
|
},
|
|
|
|
rCallback: () {
|
|
|
|
//立即续费
|
|
|
|
},
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
DialogUtil.cupertinoAlertSellerEdateDialog(
|
|
|
|
context,
|
|
|
|
title: '温馨提示',
|
|
|
|
isBold: true,
|
|
|
|
content: DateUtil.formatDate(
|
|
|
|
edate,
|
|
|
|
format: DateFormats.full,
|
|
|
|
),
|
|
|
|
rCallback: () {
|
|
|
|
//立即续费
|
|
|
|
},
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// _showSellerAlert(String day, DateTime edate) {
|
|
|
|
// if (App.sp.containsKey('sellerEdate')) {
|
|
|
|
// //已经存进去过数据
|
|
|
|
// List<String> data = App.sp.getStringList('sellerEdate');
|
|
|
|
// if (!data.contains(day)) {
|
|
|
|
// data.add(day);
|
|
|
|
// App.sp.setStringList("sellerEdate", data);
|
|
|
|
// //过期差ji天,提醒一次s
|
|
|
|
// if (day == '-1') {
|
|
|
|
// DialogUtil.cupertinoAlertSellerHasEdateDialog(
|
|
|
|
// context,
|
|
|
|
// title: '温馨提示',
|
|
|
|
// isBold: true,
|
|
|
|
// lCallback: () {
|
|
|
|
// NavigatorUtil.goHomePage(context, initialIndex: 4);
|
|
|
|
// },
|
|
|
|
// rCallback: () {
|
|
|
|
// //立即续费
|
|
|
|
// },
|
|
|
|
// );
|
|
|
|
// } else {
|
|
|
|
// DialogUtil.cupertinoAlertSellerEdateDialog(
|
|
|
|
// context,
|
|
|
|
// title: '温馨提示',
|
|
|
|
// isBold: true,
|
|
|
|
// content: DateUtil.formatDate(
|
|
|
|
// edate,
|
|
|
|
// format: DateFormats.full,
|
|
|
|
// ),
|
|
|
|
// rCallback: () {
|
|
|
|
// //立即续费
|
|
|
|
// },
|
|
|
|
// );
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// } else {
|
|
|
|
// App.sp.setStringList("sellerEdate", [day]);
|
|
|
|
// //过期差ji天,提醒一次s
|
|
|
|
// if (day == '-1') {
|
|
|
|
// DialogUtil.cupertinoAlertSellerHasEdateDialog(
|
|
|
|
// context,
|
|
|
|
// title: '温馨提示',
|
|
|
|
// isBold: true,
|
|
|
|
// lCallback: () {
|
|
|
|
// NavigatorUtil.goHomePage(context, initialIndex: 4);
|
|
|
|
// },
|
|
|
|
// rCallback: () {
|
|
|
|
// //立即续费
|
|
|
|
// },
|
|
|
|
// );
|
|
|
|
// } else {
|
|
|
|
// DialogUtil.cupertinoAlertSellerEdateDialog(
|
|
|
|
// context,
|
|
|
|
// title: '温馨提示',
|
|
|
|
// isBold: true,
|
|
|
|
// content: DateUtil.formatDate(
|
|
|
|
// edate,
|
|
|
|
// format: DateFormats.full,
|
|
|
|
// ),
|
|
|
|
// rCallback: () {
|
|
|
|
// //立即续费
|
|
|
|
// },
|
|
|
|
// );
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
_getCustomerActivityBaseinfo() async {
|
|
|
|
Map<String, String> params = {
|
...
|
...
|
|