|
@@ -66,6 +66,18 @@
|
|
|
[self.navBarBGView setHidden:NO];
|
|
|
[self.titleLabel setText:NSLocalizedString(@"more_set",nil)];
|
|
|
|
|
|
+ UIButton* rightButton = [[UIButton alloc] init];
|
|
|
+ [rightButton setImage:[UIImage imageNamed:@"icon_file_transfer"] forState:UIControlStateNormal];
|
|
|
+ [rightButton addTarget:self action:@selector(didiClikRightButFun:) forControlEvents:UIControlEventTouchUpInside];
|
|
|
+ [self.navBarBGView addSubview:rightButton];
|
|
|
+
|
|
|
+ [rightButton mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
+ make.width.mas_equalTo(40);
|
|
|
+ make.height.mas_equalTo(40);
|
|
|
+ make.right.mas_equalTo(-15);
|
|
|
+ make.centerY.mas_equalTo(self.titleLabel.mas_centerY);
|
|
|
+ }];
|
|
|
+
|
|
|
[self.view addSubview:self.tableView];
|
|
|
[self.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
make.left.mas_equalTo(0);
|
|
@@ -99,32 +111,111 @@
|
|
|
return _customTableHeadView;
|
|
|
}
|
|
|
|
|
|
+- (void)didiClikRightButFun:(UIButton*)but
|
|
|
+{
|
|
|
+ uploadFileRecordViewController *vc = [uploadFileRecordViewController new];
|
|
|
+ vc.isNotUploadingType = YES;
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+}
|
|
|
+
|
|
|
#pragma mark 点击文件上传相关
|
|
|
- (void)didClickUploadFileByTag:(NSInteger)tag
|
|
|
{
|
|
|
HLog(@"hhh %ld",tag);
|
|
|
|
|
|
- if(tag ==2 || tag ==3){
|
|
|
-
|
|
|
- if(self->_getBaseInfo){
|
|
|
- self->_getBaseInfo();
|
|
|
- }
|
|
|
-
|
|
|
- uploadImageOrVideoViewController *vc = [uploadImageOrVideoViewController new];
|
|
|
- if(tag ==2){
|
|
|
- vc.isPhotoType = YES;
|
|
|
- }
|
|
|
- else{
|
|
|
- vc.isPhotoType = NO;
|
|
|
+ switch (tag) {
|
|
|
+ case 1:
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ case 3:
|
|
|
+ {
|
|
|
+
|
|
|
+ if(self->_getBaseInfo){
|
|
|
+ self->_getBaseInfo();
|
|
|
+ }
|
|
|
+
|
|
|
+ uploadImageOrVideoViewController *vc = [uploadImageOrVideoViewController new];
|
|
|
+ if(tag ==2){
|
|
|
+ vc.isPhotoType = YES;
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ vc.isPhotoType = NO;
|
|
|
+ }
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+
|
|
|
}
|
|
|
- [self.navigationController pushViewController:vc animated:YES];
|
|
|
-
|
|
|
- }
|
|
|
- else if(tag == 1){
|
|
|
- uploadFileRecordViewController *vc = [uploadFileRecordViewController new];
|
|
|
- vc.isNotUploadingType = YES;
|
|
|
- [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ break;
|
|
|
+ case 4:
|
|
|
+ {
|
|
|
+ inputPWDViewController *nextVC = [inputPWDViewController new];
|
|
|
+ nextVC.isCheckPwdType = YES;
|
|
|
+ [self.navigationController pushViewController:nextVC animated:YES];
|
|
|
+
|
|
|
+ KWeakSelf
|
|
|
+ nextVC.didInputRightPwdFun = ^{
|
|
|
+ [weakSelf gotoPrivacyModeVCFun];
|
|
|
+ };
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 10:
|
|
|
+ {
|
|
|
+ TipsQRCodeForChangeDeviceViewController *vc = [[TipsQRCodeForChangeDeviceViewController alloc] init];
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 11:
|
|
|
+ {
|
|
|
+ /*弹窗提示重启*/
|
|
|
+ ComontAlretViewController *nextVC = [[ComontAlretViewController alloc] initWithTiTle:NSLocalizedString(@"my_set_no_restart_phone_tips",nil)
|
|
|
+ msg:nil
|
|
|
+ imageStr:nil
|
|
|
+ cancelTitle:NSLocalizedString(@"other_cancel",nil)
|
|
|
+ okTitle:NSLocalizedString(@"my_set_no_restart_phone_btn_ok",nil) isOkBtnHighlight:NO
|
|
|
+ didClickOk:^{
|
|
|
+
|
|
|
+ } didClickCancel:^{
|
|
|
+
|
|
|
+ }];
|
|
|
+ nextVC.modalPresentationStyle = UIModalPresentationCustom;
|
|
|
+ nextVC.delegate = self;
|
|
|
+ [self presentViewController:nextVC animated:YES completion:^{
|
|
|
+ nextVC.view.superview.backgroundColor = [UIColor clearColor];
|
|
|
+ }];
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 12:
|
|
|
+ {
|
|
|
+ [self RestoreFactoryAleartFun];
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 13:
|
|
|
+ {
|
|
|
+ CustomerWebViewController *vc = [[CustomerWebViewController alloc] init];
|
|
|
+ vc.titleStr = NSLocalizedString(@"my_set_no_common_problem",nil);
|
|
|
+ NSString *url = @"https://cliys.armclouding.com/h5/microserviceUserH5/commonProblem/questionIndex.html";
|
|
|
+ vc.webUrl = url;
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 14:
|
|
|
+ {
|
|
|
+ AboutViewController *vc = [[AboutViewController alloc] init];
|
|
|
+ vc.getSysInfo = ^{
|
|
|
+ if(self->_getSysInfo){
|
|
|
+ self->_getSysInfo();
|
|
|
+ }
|
|
|
+ };
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ break;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
- (UIView *)tableFoorView{
|