This commit is contained in:
dzc committed 2025-08-31 17:56:57 +08:00
1 parent 52c1c30658
commit 7ed1a4a343
5 files changed
+27 -5

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ class Constants {
/// 服务 url 线上
// static const apiUrl = 'https://stgl.pj.gov.cn/api';
static const apiUrl = 'http://192.168.101.185:9999';
static const apiUrl = 'http://192.168.101.196:9999';
/// 静态资源 url
static const ossUrl = apiUrl;
@@ -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,