修复绑定设备时,出现白屏现象

This commit is contained in:
wyf
2025-05-26 09:11:59 +08:00
parent 104b39b7c3
commit e0fef11b33
2 changed files with 5 additions and 5 deletions

View File

@@ -110,7 +110,7 @@
"保存":"保存", "保存":"保存",
"名字输入提示":"使用人员姓名(必填)", "名字输入提示":"使用人员姓名(必填)",
"生日输入提示":"生日(必填)", "生日输入提示":"生日(必填)",
"体重输入提示":"体重(必填)", "体重输入提示":"体重kg(必填)",
"疾病标题":"慢病管理", "疾病标题":"慢病管理",
"提示":"提示:填写准确的使用人员相关资料,可以使睡眠报告监测数据更加精准!" "提示":"提示:填写准确的使用人员相关资料,可以使睡眠报告监测数据更加精准!"
}, },
@@ -358,7 +358,7 @@
"微信客服提示":"请先安装微信APP再联系客服", "微信客服提示":"请先安装微信APP再联系客服",
"打开微信客服提示":"正在打开微信客服...", "打开微信客服提示":"正在打开微信客服...",
"身高":"身高", "身高":"身高",
"身高输入提示":"请输入身高(必填)", "身高输入提示":"请输入身高cm(必填)",
"用户协议":"用户协议", "用户协议":"用户协议",
"隐私协议":"隐私协议", "隐私协议":"隐私协议",
"呼吸基准":"呼吸基准", "呼吸基准":"呼吸基准",

View File

@@ -50,7 +50,7 @@ class _WifiPageState extends State<WifiPage> {
blueteethBindController.wifiStatus.value = blueteethBindController.wifiStatus.value =
widget.type['status']['status']; widget.type['status']['status'];
} }
if (widget.type['mac'] == null) { if (widget.type == null) {
THapp bledevice = blueteethBindController.currentDevice!; THapp bledevice = blueteethBindController.currentDevice!;
bledevice.device.connect().then((Value) { bledevice.device.connect().then((Value) {
var res2 = bledevice.isConnected; var res2 = bledevice.isConnected;
@@ -75,7 +75,7 @@ class _WifiPageState extends State<WifiPage> {
} }
if (onData.status == BleEventType.ready) { if (onData.status == BleEventType.ready) {
aa = await getDeviceNetVersion( aa = await getDeviceNetVersion(
blueteethBindController.currentDevice!, 2); blueteethBindController.currentDevice!, 10);
if (aa == "4g") { if (aa == "4g") {
TopSlideNotification.show( TopSlideNotification.show(
context, context,
@@ -198,7 +198,7 @@ class _WifiPageState extends State<WifiPage> {
left: 0, left: 0,
child: returnIconButtom, child: returnIconButtom,
), ),
if (widget.type['mac'] == null) if (widget.type == null)
Positioned( Positioned(
right: 20.rpx, right: 20.rpx,
child: CustomCard( child: CustomCard(