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;