11
This commit is contained in:
1 parent
52c1c30658
commit
7ed1a4a343
5 files changed
+27
-5
No files matched your search
@@ -454,6 +454,19 @@ mixin OrderMixin {
|
||||
/// **************** start 副屏幕相关 start ****************
|
||||
|
||||
void putOffSendSubScreen({int seconds = 5}) {
|
||||
// 如果有商品就不反回
|
||||
if (_sysType == SysType.SUPERMARKET) {
|
||||
if (supermarketSpuList.isNotEmpty) {
|
||||
putOffSendSubScreenDelayed = null;
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (_sysType == SysType.CANTEEN) {
|
||||
if (canteenSpuList.isNotEmpty) {
|
||||
putOffSendSubScreenDelayed = null;
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (putOffSendSubScreenDelayed != null) {
|
||||
sendSubScreenBack();
|
||||
putOffSendSubScreenDelayed = null;
|
||||
@@ -472,9 +485,6 @@ mixin OrderMixin {
|
||||
}
|
||||
|
||||
Future<void> sendSubScreen() async {
|
||||
await SubScreenPlugin.sendMsgToViceScreen(
|
||||
SubScreenAction.jumpSubPage.name,
|
||||
);
|
||||
final json = SubScreenProductEvent(
|
||||
shopList: shopCardList.map((e) => e.toJson()).toList(),
|
||||
sysType: _sysType,
|
||||
|
||||
Reference in new issue
Block a user