From 8fae793f618bcaf018a499cc92cc21eeb79b016a Mon Sep 17 00:00:00 2001 From: wyf <494641114@qq.com> Date: Tue, 15 Jul 2025 15:28:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=86=E4=BA=AB=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/controller/device/blueteeth_bind_controller.dart | 3 ++- lib/pages/mh_page/device/mht_bind_device_success.dart | 1 + lib/pages/mh_page/device/mht_wifi_page.dart | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/controller/device/blueteeth_bind_controller.dart b/lib/controller/device/blueteeth_bind_controller.dart index 6729a4b..f69cf67 100644 --- a/lib/controller/device/blueteeth_bind_controller.dart +++ b/lib/controller/device/blueteeth_bind_controller.dart @@ -80,6 +80,7 @@ class BlueteethBindController extends GetControllerEx { RxMap selectWifi = {}.obs; //正在连接wifi信息 int returnPage = 0; //0返回首页 1.返回设备列表 + var shareDevice;//分享设备信息 // 安全展示 TopSlideNotification void safeShowNotification(String msg) { @@ -257,7 +258,7 @@ class BlueteethBindController extends GetControllerEx { // return ApiResponse(code: -1, msg: "未知错误".tr); // } - Future updateDeviceStatus() async { + Future updateDeviceStatus() async { try { String serviceAddress = ServiceConstant.service_address; String serviceName = ServiceConstant.server_service; diff --git a/lib/pages/mh_page/device/mht_bind_device_success.dart b/lib/pages/mh_page/device/mht_bind_device_success.dart index 2c57740..ca88612 100644 --- a/lib/pages/mh_page/device/mht_bind_device_success.dart +++ b/lib/pages/mh_page/device/mht_bind_device_success.dart @@ -241,6 +241,7 @@ class _MHTBindDeviceSuccessState extends State { borderRadius: AppConstants().normal_container_radius, // 圆角半径 onTap: () async { + var data = blueteethBindController.shareDevice; // TopSlideNotification.show( // context, // text: "功能开发中...", diff --git a/lib/pages/mh_page/device/mht_wifi_page.dart b/lib/pages/mh_page/device/mht_wifi_page.dart index 009e850..24d0321 100644 --- a/lib/pages/mh_page/device/mht_wifi_page.dart +++ b/lib/pages/mh_page/device/mht_wifi_page.dart @@ -55,6 +55,7 @@ class _MHTWifiPageState extends State { } void _initController() { + blueteethBindController.shareDevice = widget.deviceInfo; blueteethBindController.netType.value = 0; blueteethBindController.connectStatus.value = 0; blueteethBindController.wifiList = [].obs;