Commit 757ea8fe authored by Sandy's avatar Sandy

增加退出登录的校验

parent de700f75
......@@ -38,17 +38,20 @@
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[tableView deselectRowAtIndexPath:indexPath animated:YES];
[kGlobal.sideSlipVC showMainView];
if (indexPath.row == 0) { //核销订单
[kGlobal.sideSlipVC showMainView];
[self scanCard];
} else if (indexPath.row == 1) { //修改密码
[kGlobal.sideSlipVC showMainView];
ModifyPswTableViewController *modifyVC = [ModifyPswTableViewController viewControllerWithStoryBoardType:STORYBOARD_TYPE_MAIN];
[kGlobal.mainNaVC pushViewController:modifyVC animated:YES];
} else if (indexPath.row == 2) { //退出登录
[kGlobal.sideSlipVC dismissViewControllerAnimated:YES completion:nil];
[self alertTitle:@"提示" msg:@"确认退出登录?" okAction:^(UIAlertAction * _Nullable action) {
[kGlobal.sideSlipVC dismissViewControllerAnimated:YES completion:nil];
} cancelAction:nil];
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment