feat:饭卡、二维码支付语音提示
This commit is contained in:
1 parent
74af303915
commit
228ac844c3
2 files changed
+4
-1
No files matched your search
@@ -232,6 +232,8 @@ mixin OrderMixin {
|
||||
sqlOrderDetail.weight = getProductWeight();
|
||||
sqlOrderDetail.price = getTotalPrice();
|
||||
sqlOrderDetail.hourType = hourType.value.code;
|
||||
sqlOrderDetail.type = orderType;
|
||||
sqlOrderDetail.payType = orderPayType.value!;
|
||||
await orderDao.edit(sqlOrderDetail);
|
||||
logger.i("|$_tag|更新本地订单,成功orderId:|$sqlOrderId|;");
|
||||
await createSqlChildCar();
|
||||
|
||||
@@ -170,6 +170,7 @@ class SelectPayTypeDialogController extends GetxController {
|
||||
Toast.error(msg: "正在识别中,请勿重复点击");
|
||||
return;
|
||||
}
|
||||
TtsManage.speak("请出示二维码");
|
||||
BarcodeScanManage.instance.startListening();
|
||||
BarcodeScanManage.instance.scanStream.listen((event) async {
|
||||
final serviceCode = await BarcodeScanManage.instance.getCodeInfo(event);
|
||||
@@ -236,6 +237,7 @@ class SelectPayTypeDialogController extends GetxController {
|
||||
Toast.error(msg: "正在识别中,请勿重复点击");
|
||||
return;
|
||||
}
|
||||
TtsManage.speak("请在合适区域放置饭卡");
|
||||
try {
|
||||
await app.serialCardManage.connect();
|
||||
if (!app.serialCardManage.isConnect) {
|
||||
@@ -574,7 +576,6 @@ Widget selectPayTypeHint(
|
||||
OrderPayDisplayType? type,
|
||||
bool isLoading = false,
|
||||
}) {
|
||||
final theme = FTheme.of(Get.context!);
|
||||
if (type == null) return const SizedBox.shrink();
|
||||
const baseMsg = "请点击开始识别按钮";
|
||||
String msg = "";
|
||||
|
||||
Reference in new issue
Block a user