多语言

This commit is contained in:
czz
2025-07-30 16:48:48 +08:00
parent 92b6896176
commit 300e3b31f6
96 changed files with 3741 additions and 2710 deletions

View File

@@ -7,7 +7,7 @@ import 'package:vbvs_app/controller/user_info_controller.dart';
import 'package:vbvs_app/pages/common/selectDialog.dart';
class GlobalModel {
List deviceList = [];//用户绑定设备数量
List deviceList = []; //用户绑定设备数量
Map deviceMain = {};
Map useBedController = {}; //之前控制的设备
@@ -160,7 +160,6 @@ class GlobalController extends GetControllerEx<GlobalModel> {
return "$mac".toUpperCase();
}
getDeviceList({int time = 1}) async {
await EasyDartModule.dio.get("/api/device/info/list").then((d) {
Map d_ = {};
@@ -187,8 +186,12 @@ class GlobalController extends GetControllerEx<GlobalModel> {
if (!isClose) {
model.deviceMain = {};
updateAll();
showCustomConfirmAndCancelDialog(Get.context!, "设备已经被解绑,是否回到主界面?")
.then((e) {
showCustomConfirmAndCancelDialog(
Get.context!,
"设备已经被解绑,是否回到主界面?",
confirmName: '确定'.tr,
cancelName: '取消'.tr,
).then((e) {
if (e == "confirm") {
Get.find<MainPageController>().model.currentIndex = 0;
Get.offAllNamed("/mianPageBottomChange");