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

Loading…
Cancel
Save