|
...
|
...
|
@@ -206,11 +206,12 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver { |
|
|
|
create: (_) => StoreBaseIndoProvider(),
|
|
|
|
child: ChangeNotifierProvider<CustomerProvider>(
|
|
|
|
create: (_) => CustomerProvider(),
|
|
|
|
child: ChangeNotifierProvider<MarketingCenterProvider>(
|
|
|
|
create: (_) => MarketingCenterProvider(),
|
|
|
|
child: ChangeNotifierProvider<SmsModel>(
|
|
|
|
create: (_) => SmsModel(),
|
|
|
|
child: TableManagerPage())))))),
|
|
|
|
child:
|
|
|
|
ChangeNotifierProvider<MarketingCenterProvider>(
|
|
|
|
create: (_) => MarketingCenterProvider(),
|
|
|
|
child: ChangeNotifierProvider<SmsModel>(
|
|
|
|
create: (_) => SmsModel(),
|
|
|
|
child: TableManagerPage())))))),
|
|
|
|
)))
|
|
|
|
..add(
|
|
|
|
ChangeNotifierProvider<FeastModel>(
|
|
...
|
...
|
@@ -862,6 +863,51 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver { |
|
|
|
// bus.emit("refresh_untreated_num"); //刷新未读消息数目
|
|
|
|
|
|
|
|
break;
|
|
|
|
case "19":
|
|
|
|
print(notifyParam);
|
|
|
|
//纪念日
|
|
|
|
CustomerBySellerSunModel userHistoryEntity = CustomerBySellerSunModel(
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
notifyParam['phone'],
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
notifyParam['id'],
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
null);
|
|
|
|
|
|
|
|
NavigatorUtil.goCustomerDetailPage(
|
|
|
|
context, userHistoryEntity, FromPage.FromPageMessagePage);
|
|
|
|
MessageDialogModel messageDialogModel =
|
|
|
|
Provider.of<MessageDialogModel>(context, listen: false);
|
|
|
|
|
|
|
|
Map<String, String> params = {
|
|
|
|
"sid": Provider.of<UserModel>(context, listen: false).user.sellerid,
|
|
|
|
"id": notifyParam['mid'],
|
|
|
|
"status": "is_read"
|
|
|
|
};
|
|
|
|
await messageDialogModel.setMessageStatus(context, params);
|
|
|
|
|
|
|
|
break;
|
|
|
|
case '20':
|
|
|
|
print(notifyParam);
|
|
|
|
//补充预订信息
|
|
|
|
//完善客人信息
|
|
|
|
|
|
|
|
NavigatorUtil.goNotebookDetailPage(
|
|
|
|
context, notifyParam['id'].toString(), notifyParam['uid'],
|
|
|
|
mid: notifyParam['mid']);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
// _getAllUnMessages();
|
|
...
|
...
|
@@ -1133,6 +1179,52 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver { |
|
|
|
// bus.emit("refresh_untreated_num"); //刷新未读消息数目
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case "19":
|
|
|
|
print(custom);
|
|
|
|
//纪念日
|
|
|
|
CustomerBySellerSunModel userHistoryEntity =
|
|
|
|
CustomerBySellerSunModel(
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
custom['phone'],
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
custom['id'],
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
null);
|
|
|
|
|
|
|
|
NavigatorUtil.goCustomerDetailPage(
|
|
|
|
context, userHistoryEntity, FromPage.FromPageMessagePage);
|
|
|
|
MessageDialogModel messageDialogModel =
|
|
|
|
Provider.of<MessageDialogModel>(context, listen: false);
|
|
|
|
|
|
|
|
Map<String, String> params = {
|
|
|
|
"sid": Provider.of<UserModel>(context, listen: false)
|
|
|
|
.user
|
|
|
|
.sellerid,
|
|
|
|
"id": custom['mid'],
|
|
|
|
"status": "is_read"
|
|
|
|
};
|
|
|
|
await messageDialogModel.setMessageStatus(context, params);
|
|
|
|
|
|
|
|
break;
|
|
|
|
case '20':
|
|
|
|
print(custom);
|
|
|
|
//补充预订信息
|
|
|
|
//完善客人信息
|
|
|
|
NavigatorUtil.goNotebookDetailPage(
|
|
|
|
context, custom['id'].toString(), custom['uid'],
|
|
|
|
mid: custom['mid']);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
...
|
...
|
@@ -1245,9 +1337,9 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver { |
|
|
|
case AppLifecycleState.resumed: //应用前台可见
|
|
|
|
// if (widget.initialIndex == 1 && needRefreshTemp == false) {
|
|
|
|
// } else {
|
|
|
|
_clearBadge(() {
|
|
|
|
// _getAllUnMessages();
|
|
|
|
});
|
|
|
|
// _clearBadge(() {
|
|
|
|
// _getAllUnMessages();
|
|
|
|
// });
|
|
|
|
// }
|
|
|
|
|
|
|
|
break;
|
...
|
...
|
|