feat:部门交易记录样式

This commit is contained in:
dzc committed 2025-08-29 16:16:14 +08:00
1 parent ceef83f5c9
commit 52c1c30658
5 files changed
+35 -3

No files matched your search

@@ -16,7 +16,17 @@ Widget appWalletSelector(
if (ObjectUtil.isEmpty(list)) {
return const SizedBox();
}
ServiceWallet currentSelector = list[0];
ServiceWallet? currentSelector = selector;
// 判断是为为自己的钱包
if (currentSelector != null) {
final target = list.firstWhereOrNull(
(item) => item.userId == currentSelector!.userId,
);
if (target == null) {
currentSelector = null;
}
}
currentSelector ??= list[0];
onChange(currentSelector);
final theme = FTheme.of(context);
return list
@@ -455,17 +455,26 @@ mixin OrderMixin {
void putOffSendSubScreen({int seconds = 5}) {
if (putOffSendSubScreenDelayed != null) {
sendSubScreen();
sendSubScreenBack();
putOffSendSubScreenDelayed = null;
return;
}
putOffSendSubScreenDelayed = Future.delayed(Duration(seconds: seconds), () {
sendSubScreen();
sendSubScreenBack();
putOffSendSubScreenDelayed = null;
});
}
Future<void> sendSubScreenBack() async {
await SubScreenPlugin.sendMsgToViceScreen(
SubScreenAction.jumpSubBack.name,
);
}
Future<void> sendSubScreen() async {
await SubScreenPlugin.sendMsgToViceScreen(
SubScreenAction.jumpSubPage.name,
);
final json = SubScreenProductEvent(
shopList: shopCardList.map((e) => e.toJson()).toList(),
sysType: _sysType,
@@ -138,6 +138,7 @@ class SelectPayTypeDialogController extends GetxController {
_closeStatus() {
payUser.value = null;
userWalletList.value = [];
currentWallet.value = null;
isRecognition.value = false;
globalQrCode = null;
_faceCallbackLock = false;