修改分享设备信息

This commit is contained in:
wyf
2025-07-15 15:28:02 +08:00
parent d062b751c5
commit 8fae793f61
3 changed files with 4 additions and 1 deletions

View File

@@ -80,6 +80,7 @@ class BlueteethBindController extends GetControllerEx<BlueteethBindModel> {
RxMap selectWifi = {}.obs; //正在连接wifi信息
int returnPage = 0; //0返回首页 1.返回设备列表
var shareDevice;//分享设备信息
// 安全展示 TopSlideNotification
void safeShowNotification(String msg) {
@@ -257,7 +258,7 @@ class BlueteethBindController extends GetControllerEx<BlueteethBindModel> {
// return ApiResponse(code: -1, msg: "未知错误".tr);
// }
Future<ApiResponse> updateDeviceStatus() async {
Future<ApiResponse> updateDeviceStatus() async {
try {
String serviceAddress = ServiceConstant.service_address;
String serviceName = ServiceConstant.server_service;

View File

@@ -241,6 +241,7 @@ class _MHTBindDeviceSuccessState extends State<MHTBindDeviceSuccess> {
borderRadius:
AppConstants().normal_container_radius, // 圆角半径
onTap: () async {
var data = blueteethBindController.shareDevice;
// TopSlideNotification.show(
// context,
// text: "功能开发中...",

View File

@@ -55,6 +55,7 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
}
void _initController() {
blueteethBindController.shareDevice = widget.deviceInfo;
blueteethBindController.netType.value = 0;
blueteethBindController.connectStatus.value = 0;
blueteethBindController.wifiList = [].obs;