提示文本的修改

This commit is contained in:
祝发冬 2023-08-20 12:31:12 +08:00
parent 28645e9c22
commit c9d30ddab7
1 changed files with 8 additions and 2 deletions

View File

@ -139,21 +139,27 @@ extern BOOL isfromCameraView;
NSString*airkisTitle = @"一键联网";
NSString*smartTitle = @"快捷联网";
NSString*apTitle = @"AP联网";
NSString*airkisTips = @"1、插座仅支持2.4G的WiFi网络不支持5G 及 双频合一的网络(需在路由器设置中分开)\n2、先长按插座复位键3秒松手后红灯绿灯同时 闪烁,再点确定按钮。\n3、如多次尝试一键联网都不成功可切换其他 联网方式,每次重新连接时插座需断一次电然后重新复位连接。";
NSString*smartTips = airkisTips;
NSString*apTips = @"1、插座仅支持2.4G的WiFi网络不支持5G 及 双频合一的网络(需在路由器设置中分开)\n2、先长按插座复位键13秒左右松手后红灯绿灯同时熄灭,只有绿灯偶尔闪烁,再点下一步。";
SPAlertController*alert =[SPAlertController alertControllerWithTitle:nil message:nil preferredStyle:SPAlertControllerStyleActionSheet animationType:SPAlertAnimationTypeDefault];
SPAlertAction*airkiss =[SPAlertAction actionWithTitle:airkisTitle style:SPAlertActionStyleDefault handler:^(SPAlertAction * _Nonnull action) {
weakSelf.connectType = ConnectTypeAirKiss;
weakSelf.connectTypeTitle.text = airkisTitle;
weakSelf.connectTipLbl.text = airkisTips;
}];
SPAlertAction*smart =[SPAlertAction actionWithTitle:smartTitle style:SPAlertActionStyleDefault handler:^(SPAlertAction * _Nonnull action) {
weakSelf.connectType = ConnectTypeSmartESPTouch;
weakSelf.connectTypeTitle.text = smartTitle;
weakSelf.connectTipLbl.text = smartTips;
}];
SPAlertAction*ap =[SPAlertAction actionWithTitle:apTitle style:SPAlertActionStyleDefault handler:^(SPAlertAction * _Nonnull action) {
weakSelf.connectType = ConnectTypeSmartESPTouch;
weakSelf.connectTypeTitle.text = apTitle;
weakSelf.connectTipLbl.text = apTips;
}];
SPAlertAction*cancel =[SPAlertAction actionWithTitle:@"取消" style:SPAlertActionStyleCancel handler:^(SPAlertAction * _Nonnull action) {
@ -432,7 +438,7 @@ extern BOOL isfromCameraView;
}
[self savePassw];
[self tapConfirmForResults];
[self configWifiForDevice];
// [self initMMProgressHUD];
[self connectNotNormalView];
@ -538,7 +544,7 @@ extern BOOL isfromCameraView;
[userdefult synchronize];
}
- (void) tapConfirmForResults{
- (void)configWifiForDevice{
NSLog(@"ViewController do confirm action...");