Browse Source

首页更改

wr_2023_business
wurong 2 years ago
parent
commit
126028b949
  1. 14
      lib/home/home_page.dart

14
lib/home/home_page.dart

@ -100,12 +100,12 @@ class HomePageState extends State<HomePage> with AutomaticKeepAliveClientMixin {
/// ///
posterShowAlertDialog(ActivityPos activityPos,firstLoginCouponList) { posterShowAlertDialog(ActivityPos activityPos,firstLoginCouponList) {
// var today = DateTime.now().day; var today = DateTime.now().day;
// SharedPreferences.getInstance().then((value) { SharedPreferences.getInstance().then((value) {
// if(value.getInt("today")==today && (value.getString("ActivityPosCode") ?? "").contains("${activityPos.code}_${value.getString("userId")};")) if(value.getInt("today")==today && (value.getString("ActivityPosCode") ?? "").contains("${activityPos.code}_${value.getString("userId")};"))
// return; return;
// value.setString("ActivityPosCode", "${(value.getString("ActivityPosCode")??"")}${activityPos.code}_${value.getString("userId")};"); value.setString("ActivityPosCode", "${(value.getString("ActivityPosCode")??"")}${activityPos.code}_${value.getString("userId")};");
// value.setInt("today", today); value.setInt("today", today);
// //
showDialog( showDialog(
context: context, context: context,
@ -113,7 +113,7 @@ class HomePageState extends State<HomePage> with AutomaticKeepAliveClientMixin {
return ActivityPoster(activityPos,firstLoginCouponList); return ActivityPoster(activityPos,firstLoginCouponList);
}, },
); );
// }); });
} }
/// ///

Loading…
Cancel
Save