feat:收银页面副屏改大

This commit is contained in:
dzc committed 2026-08-14 15:42:15 +08:00
1 parent 72486eb7ac
commit aff30bf45d
4 files changed
+210 -95

No files matched your search

@@ -168,13 +168,16 @@ class CustomerDisplayCoordinator extends ChangeNotifier {
final unitPrice = _nonNegativeInt(data['productPrice']);
final totalPrice = _nonNegativeInt(data['totalPrice']);
final nature = data['nature'];
final rawImageSource = data['productPic'];
if (name is! String ||
name.trim().isEmpty ||
unitPrice == null ||
totalPrice == null ||
nature is! String) {
nature is! String ||
(rawImageSource != null && rawImageSource is! String)) {
return null;
}
final trimmedImageSource = (rawImageSource as String?)?.trim();
String quantityLabel;
if (nature == 'WEIGHT') {
@@ -207,6 +210,8 @@ class CustomerDisplayCoordinator extends ChangeNotifier {
quantityLabel: quantityLabel,
unitPrice: unitPrice,
totalPrice: totalPrice,
imageSource:
trimmedImageSource?.isEmpty == true ? null : trimmedImageSource,
// 套餐组成非空时兼容主屏仅透传明细但缺失标识的过渡消息。
isCombo: rawIsCombo == true || comboItems.isNotEmpty,
comboItems: List.unmodifiable(comboItems),