宠物笼绑定界面修改,不同类型弹框

This commit is contained in:
kai60
2020-07-07 17:26:22 +08:00
parent 80e310693f
commit f9b3f4074f
5 changed files with 52 additions and 28 deletions
@@ -472,7 +472,18 @@ extern BOOL formLogIn;//连接页面是否来自登录界面
}else if ([resultDic[@"result"] isEqualToString:@"101"]){
[self showTitle:@"" messsage:@"绑定失败"];
NSString*msg= resultDic[@"data"];
if ([msg isKindOfClass:[NSString class]]&&msg.length&&![msg isEqualToString:@"null"])
{
}
else
{
msg=@"绑定失败";
}
[self.view makeToast:msg];
self.bakbutton.userInteractionEnabled=YES;
}else if ([resultDic[@"result"] isEqualToString:@"301"]){
[self showTitle:@"" messsage:@"请求验证失败,请重新登录"];
@@ -699,7 +699,7 @@ extern BOOL isfromCameraView;
mask.alpha=0.5;
_mask=mask;
UITapGestureRecognizer*tap=[[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(dismissStore)];
[mask addGestureRecognizer:tap];
// [mask addGestureRecognizer:tap];
}
return _mask;
@@ -727,6 +727,11 @@ extern BOOL isfromCameraView;
};
store.sureBlock=^(NSString*name)
{
if (!name.length)
{
[weakSelf.view makeToast:@"请设置或者选择名称!"];
return ;
}
[weakSelf.mask removeFromSuperview];
[weakSelf.storeNameView removeFromSuperview];
weakSelf.storeName=name;
@@ -828,7 +833,18 @@ extern BOOL isfromCameraView;
}else if ([resultDic[@"result"] isEqualToString:@"101"]){
[self.view makeToast:@"绑定失败"];
NSString*msg= resultDic[@"data"];
if ([msg isKindOfClass:[NSString class]]&&msg.length&&![msg isEqualToString:@"null"])
{
}
else
{
msg=@"绑定失败";
}
[self.view makeToast:msg];
self.bakbutton.userInteractionEnabled=YES;
NSString *str =[NSString stringWithFormat:@"mac%@错误吗101",bssid];
[self initMacIdString:str];