Commit 36851ca2 authored by pete谢兆麟's avatar pete谢兆麟

续签补件相关需求UI

parent de7c1bec
...@@ -592,6 +592,11 @@ ...@@ -592,6 +592,11 @@
04B9EE5A2C06CC3100A4018D /* YHCodeSueecssViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04B9EE582C06CC3100A4018D /* YHCodeSueecssViewController.swift */; }; 04B9EE5A2C06CC3100A4018D /* YHCodeSueecssViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04B9EE582C06CC3100A4018D /* YHCodeSueecssViewController.swift */; };
04B9EE5B2C06CC3100A4018D /* YHOtherLoginViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04B9EE592C06CC3100A4018D /* YHOtherLoginViewController.swift */; }; 04B9EE5B2C06CC3100A4018D /* YHOtherLoginViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04B9EE592C06CC3100A4018D /* YHOtherLoginViewController.swift */; };
04BD83452CCA2009003A88DF /* AlimamaShuHeiTi-Bold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 04BD83442CCA2009003A88DF /* AlimamaShuHeiTi-Bold.ttf */; }; 04BD83452CCA2009003A88DF /* AlimamaShuHeiTi-Bold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 04BD83442CCA2009003A88DF /* AlimamaShuHeiTi-Bold.ttf */; };
04BD83472CD0B04F003A88DF /* YHResignUploadDocExplainViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04BD83462CD0B04F003A88DF /* YHResignUploadDocExplainViewController.swift */; };
04BD83492CD0B7C5003A88DF /* YHResignUploadDocExplainViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04BD83482CD0B7C4003A88DF /* YHResignUploadDocExplainViewCell.swift */; };
04BD834B2CD0C93D003A88DF /* YHResignUploadDocSelectViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04BD834A2CD0C93D003A88DF /* YHResignUploadDocSelectViewCell.swift */; };
04BD834D2CD0E2BF003A88DF /* YHResignUploadTextView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04BD834C2CD0E2BF003A88DF /* YHResignUploadTextView.swift */; };
04BD834F2CD0FEC4003A88DF /* YHResignUploadDocExplainResultViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04BD834E2CD0FEC4003A88DF /* YHResignUploadDocExplainResultViewController.swift */; };
04C693622B723AB8004C1758 /* YHMySettingViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04C693612B723AB8004C1758 /* YHMySettingViewController.swift */; }; 04C693622B723AB8004C1758 /* YHMySettingViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04C693612B723AB8004C1758 /* YHMySettingViewController.swift */; };
04C693642B723B56004C1758 /* YHMySettingCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04C693632B723B56004C1758 /* YHMySettingCell.swift */; }; 04C693642B723B56004C1758 /* YHMySettingCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04C693632B723B56004C1758 /* YHMySettingCell.swift */; };
04C85DDF2C364FE9008B20D6 /* YHAboutUsCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04C85DDE2C364FE9008B20D6 /* YHAboutUsCell.swift */; }; 04C85DDF2C364FE9008B20D6 /* YHAboutUsCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04C85DDE2C364FE9008B20D6 /* YHAboutUsCell.swift */; };
...@@ -1561,6 +1566,11 @@ ...@@ -1561,6 +1566,11 @@
04B9EE582C06CC3100A4018D /* YHCodeSueecssViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHCodeSueecssViewController.swift; sourceTree = "<group>"; }; 04B9EE582C06CC3100A4018D /* YHCodeSueecssViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHCodeSueecssViewController.swift; sourceTree = "<group>"; };
04B9EE592C06CC3100A4018D /* YHOtherLoginViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHOtherLoginViewController.swift; sourceTree = "<group>"; }; 04B9EE592C06CC3100A4018D /* YHOtherLoginViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHOtherLoginViewController.swift; sourceTree = "<group>"; };
04BD83442CCA2009003A88DF /* AlimamaShuHeiTi-Bold.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "AlimamaShuHeiTi-Bold.ttf"; sourceTree = "<group>"; }; 04BD83442CCA2009003A88DF /* AlimamaShuHeiTi-Bold.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "AlimamaShuHeiTi-Bold.ttf"; sourceTree = "<group>"; };
04BD83462CD0B04F003A88DF /* YHResignUploadDocExplainViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHResignUploadDocExplainViewController.swift; sourceTree = "<group>"; };
04BD83482CD0B7C4003A88DF /* YHResignUploadDocExplainViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHResignUploadDocExplainViewCell.swift; sourceTree = "<group>"; };
04BD834A2CD0C93D003A88DF /* YHResignUploadDocSelectViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHResignUploadDocSelectViewCell.swift; sourceTree = "<group>"; };
04BD834C2CD0E2BF003A88DF /* YHResignUploadTextView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHResignUploadTextView.swift; sourceTree = "<group>"; };
04BD834E2CD0FEC4003A88DF /* YHResignUploadDocExplainResultViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHResignUploadDocExplainResultViewController.swift; sourceTree = "<group>"; };
04C693612B723AB8004C1758 /* YHMySettingViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHMySettingViewController.swift; sourceTree = "<group>"; }; 04C693612B723AB8004C1758 /* YHMySettingViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHMySettingViewController.swift; sourceTree = "<group>"; };
04C693632B723B56004C1758 /* YHMySettingCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHMySettingCell.swift; sourceTree = "<group>"; }; 04C693632B723B56004C1758 /* YHMySettingCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHMySettingCell.swift; sourceTree = "<group>"; };
04C85DDE2C364FE9008B20D6 /* YHAboutUsCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHAboutUsCell.swift; sourceTree = "<group>"; }; 04C85DDE2C364FE9008B20D6 /* YHAboutUsCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHAboutUsCell.swift; sourceTree = "<group>"; };
...@@ -3935,6 +3945,9 @@ ...@@ -3935,6 +3945,9 @@
04CA2BFE2CB7C9A000F36DE7 /* YHResignUploadSuccessDocListCell.swift */, 04CA2BFE2CB7C9A000F36DE7 /* YHResignUploadSuccessDocListCell.swift */,
04CA2C022CB7D3C200F36DE7 /* YHFileExplainReasonInputView.swift */, 04CA2C022CB7D3C200F36DE7 /* YHFileExplainReasonInputView.swift */,
045792202CBF8B3900EBD99B /* YHResignUploadDetailFileNameCell.swift */, 045792202CBF8B3900EBD99B /* YHResignUploadDetailFileNameCell.swift */,
04BD83482CD0B7C4003A88DF /* YHResignUploadDocExplainViewCell.swift */,
04BD834A2CD0C93D003A88DF /* YHResignUploadDocSelectViewCell.swift */,
04BD834C2CD0E2BF003A88DF /* YHResignUploadTextView.swift */,
); );
path = V; path = V;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -3944,6 +3957,8 @@ ...@@ -3944,6 +3957,8 @@
children = ( children = (
04CA2BFA2CB7BAC600F36DE7 /* YHResignUploadDocListViewController.swift */, 04CA2BFA2CB7BAC600F36DE7 /* YHResignUploadDocListViewController.swift */,
04CA2C002CB7CEDC00F36DE7 /* YHResignUploadDocDetailViewController.swift */, 04CA2C002CB7CEDC00F36DE7 /* YHResignUploadDocDetailViewController.swift */,
04BD83462CD0B04F003A88DF /* YHResignUploadDocExplainViewController.swift */,
04BD834E2CD0FEC4003A88DF /* YHResignUploadDocExplainResultViewController.swift */,
); );
path = C; path = C;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -5455,6 +5470,7 @@ ...@@ -5455,6 +5470,7 @@
A5CA3F582C749E0100EB22F5 /* YHUploadCertificateDateItem.swift in Sources */, A5CA3F582C749E0100EB22F5 /* YHUploadCertificateDateItem.swift in Sources */,
045EEF0C2B9F171A0022A143 /* YHBasicInfoFillBottomView.swift in Sources */, 045EEF0C2B9F171A0022A143 /* YHBasicInfoFillBottomView.swift in Sources */,
0485DFD62C64E70200B50293 /* YHPrincipleApprovedWaitSubmitVC.swift in Sources */, 0485DFD62C64E70200B50293 /* YHPrincipleApprovedWaitSubmitVC.swift in Sources */,
04BD83492CD0B7C5003A88DF /* YHResignUploadDocExplainViewCell.swift in Sources */,
A5ACE93D2B4564F7002C94D2 /* UIButton+Extension.swift in Sources */, A5ACE93D2B4564F7002C94D2 /* UIButton+Extension.swift in Sources */,
04213B232C48B7F700797900 /* YHIdentityTabBar.swift in Sources */, 04213B232C48B7F700797900 /* YHIdentityTabBar.swift in Sources */,
04F5F86C2C1A9B52004A463C /* YHOtherServiceListViewController.swift in Sources */, 04F5F86C2C1A9B52004A463C /* YHOtherServiceListViewController.swift in Sources */,
...@@ -5499,6 +5515,7 @@ ...@@ -5499,6 +5515,7 @@
047AA3D92C4A4A91009C4554 /* YHInvatationShareViewController.swift in Sources */, 047AA3D92C4A4A91009C4554 /* YHInvatationShareViewController.swift in Sources */,
045EEEDE2B9F171A0022A143 /* YHEducationInfoCell.swift in Sources */, 045EEEDE2B9F171A0022A143 /* YHEducationInfoCell.swift in Sources */,
0409BEEB2C5B41D4003FCFD7 /* YHPrincipleProfileListCell.swift in Sources */, 0409BEEB2C5B41D4003FCFD7 /* YHPrincipleProfileListCell.swift in Sources */,
04BD834D2CD0E2BF003A88DF /* YHResignUploadTextView.swift in Sources */,
04F243452C9BB6A000DF2C74 /* YHHKRecordsExpandedCell.swift in Sources */, 04F243452C9BB6A000DF2C74 /* YHHKRecordsExpandedCell.swift in Sources */,
A5ACE93A2B4564F7002C94D2 /* NSAttributedString+Extension.swift in Sources */, A5ACE93A2B4564F7002C94D2 /* NSAttributedString+Extension.swift in Sources */,
044F39202CB50A5F007CA277 /* YHResignDocumentUploadHeaderCell.swift in Sources */, 044F39202CB50A5F007CA277 /* YHResignDocumentUploadHeaderCell.swift in Sources */,
...@@ -5534,6 +5551,7 @@ ...@@ -5534,6 +5551,7 @@
041892242C91BCF100B9FB94 /* YHResignRoundCellType.swift in Sources */, 041892242C91BCF100B9FB94 /* YHResignRoundCellType.swift in Sources */,
04912F7A2CB7A5F400CC3105 /* YHResignHaveAppointedApplicantsInfoCell.swift in Sources */, 04912F7A2CB7A5F400CC3105 /* YHResignHaveAppointedApplicantsInfoCell.swift in Sources */,
0430E6722C749E74000511E2 /* YHAdopterBirthViewController.swift in Sources */, 0430E6722C749E74000511E2 /* YHAdopterBirthViewController.swift in Sources */,
04BD834F2CD0FEC4003A88DF /* YHResignUploadDocExplainResultViewController.swift in Sources */,
048058392C7F289700502CAA /* YHTravelCertificateItemView.swift in Sources */, 048058392C7F289700502CAA /* YHTravelCertificateItemView.swift in Sources */,
045EEE7B2B9F171A0022A143 /* YHPersonInfoCellModel2.swift in Sources */, 045EEE7B2B9F171A0022A143 /* YHPersonInfoCellModel2.swift in Sources */,
A53B61122BB128AF0010B573 /* YHFileListItemsView2.swift in Sources */, A53B61122BB128AF0010B573 /* YHFileListItemsView2.swift in Sources */,
...@@ -5578,6 +5596,7 @@ ...@@ -5578,6 +5596,7 @@
04FD85662C2124AF00BEF9C5 /* YHNameCardViewController.swift in Sources */, 04FD85662C2124AF00BEF9C5 /* YHNameCardViewController.swift in Sources */,
044E31C72CBD264D00500F8E /* YHResignInfoConfirmInfoListModel.swift in Sources */, 044E31C72CBD264D00500F8E /* YHResignInfoConfirmInfoListModel.swift in Sources */,
0430E63B2C6DA106000511E2 /* CGFloat+Extention.swift in Sources */, 0430E63B2C6DA106000511E2 /* CGFloat+Extention.swift in Sources */,
04BD83472CD0B04F003A88DF /* YHResignUploadDocExplainViewController.swift in Sources */,
045EEF192B9F171A0022A143 /* YHAddressModel.swift in Sources */, 045EEF192B9F171A0022A143 /* YHAddressModel.swift in Sources */,
045EEEDB2B9F171A0022A143 /* YHCollegeSearchViewController.swift in Sources */, 045EEEDB2B9F171A0022A143 /* YHCollegeSearchViewController.swift in Sources */,
04C85DE72C36ADAE008B20D6 /* YHMyFileListHeaderView.swift in Sources */, 04C85DE72C36ADAE008B20D6 /* YHMyFileListHeaderView.swift in Sources */,
...@@ -6133,6 +6152,7 @@ ...@@ -6133,6 +6152,7 @@
A580371E2BAD784B0031C312 /* YHMySchemeViewModel.swift in Sources */, A580371E2BAD784B0031C312 /* YHMySchemeViewModel.swift in Sources */,
0457920B2CBCE7B200EBD99B /* YHResignUploadTravelCardViewModel.swift in Sources */, 0457920B2CBCE7B200EBD99B /* YHResignUploadTravelCardViewModel.swift in Sources */,
0425E6482BA96B4100A5E763 /* YHSchemeHeadScoreItemView.swift in Sources */, 0425E6482BA96B4100A5E763 /* YHSchemeHeadScoreItemView.swift in Sources */,
04BD834B2CD0C93D003A88DF /* YHResignUploadDocSelectViewCell.swift in Sources */,
04A271252BAC33BB00652B1B /* YHFilePreviewTool.swift in Sources */, 04A271252BAC33BB00652B1B /* YHFilePreviewTool.swift in Sources */,
044F39322CB64CC0007CA277 /* YHBottomPresentationController.swift in Sources */, 044F39322CB64CC0007CA277 /* YHBottomPresentationController.swift in Sources */,
045EEEC32B9F171A0022A143 /* YHOtherResidenceFillView.swift in Sources */, 045EEEC32B9F171A0022A143 /* YHOtherResidenceFillView.swift in Sources */,
...@@ -6498,7 +6518,7 @@ ...@@ -6498,7 +6518,7 @@
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual; CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 0; CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = ""; DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = RXHYW88XR7; "DEVELOPMENT_TEAM[sdk=iphoneos*]" = RXHYW88XR7;
ENABLE_USER_SCRIPT_SANDBOXING = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO;
...@@ -6706,7 +6726,7 @@ ...@@ -6706,7 +6726,7 @@
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual; CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 0; CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = ""; DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = RXHYW88XR7; "DEVELOPMENT_TEAM[sdk=iphoneos*]" = RXHYW88XR7;
ENABLE_USER_SCRIPT_SANDBOXING = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO;
...@@ -6756,7 +6776,7 @@ ...@@ -6756,7 +6776,7 @@
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual; CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 0; CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = ""; DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = RXHYW88XR7; "DEVELOPMENT_TEAM[sdk=iphoneos*]" = RXHYW88XR7;
ENABLE_USER_SCRIPT_SANDBOXING = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO;
......
...@@ -578,8 +578,12 @@ extension YHResignUploadDocDetailViewController: UITableViewDelegate, UITableVie ...@@ -578,8 +578,12 @@ extension YHResignUploadDocDetailViewController: UITableViewDelegate, UITableVie
} else { } else {
self.clickInputViewIndex = 1 self.clickInputViewIndex = 1
IQKeyboardManager.shared.enable = false IQKeyboardManager.shared.enable = false
self.reasonInputView.textField.text = self.materialModel.unavailable_reason // self.reasonInputView.textField.text = self.materialModel.unavailable_reason
self.reasonInputView.textField.becomeFirstResponder() // self.reasonInputView.textField.becomeFirstResponder()
self.blackMaskView.isHidden = false
self.reasonInputView.snp.updateConstraints { make in
make.bottom.equalToSuperview()
}
} }
}) })
...@@ -761,7 +765,6 @@ extension YHResignUploadDocDetailViewController { ...@@ -761,7 +765,6 @@ extension YHResignUploadDocDetailViewController {
self.tableView.reloadData() self.tableView.reloadData()
} }
} }
} }
//
// YHResignUploadDocExplainResultViewController.swift
// galaxy
//
// Created by EDY on 2024/10/29.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
class YHResignUploadDocExplainResultViewController: YHBaseViewController {
// 进入该页面以下三个参数必传
// 订单id
var id: Int = 0
var materialModel: YHResignUploadDetailModel = YHResignUploadDetailModel()
var templateArr: [YHResignUploadDetailTemplateListModel] = []
var viewModel: YHResignUploadDetailViewModel = YHResignUploadDetailViewModel()
var fileDataSource:[YHWorkExperienceFileModel] = []
var selectEditItem: YHWorkExperienceFileModel?
var clickInputViewIndex: Int = 0
var selectItems: [Int] = []
lazy var centerView: UIView = {
let view = UIView()
return view
}()
lazy var headImageView: UIImageView = {
let view = UIImageView()
view.image = UIImage(named: "resign_upload_doc_explain_result_head")
return view
}()
lazy var titleLabel: UILabel = {
let view = UILabel()
view.text = "已提交您的解释说明"
view.font = UIFont.PFSC_M(ofSize: 16)
view.textColor = UIColor.mainTextColor
view.textAlignment = .center
return view
}()
lazy var messageLabel: UILabel = {
let view = UILabel()
view.text = "请耐心等待文书撰写~"
view.font = UIFont.PFSC_M(ofSize: 12)
view.textColor = UIColor(hex: 0x8893a2)
view.textAlignment = .center
return view
}()
lazy var uploadBtn:UIButton = {
let btn = UIButton()
btn.setTitle("返回补件清单".local, for: .normal)
btn.titleLabel?.font = UIFont.PFSC_M(ofSize: 13)
btn.setTitleColor(.white, for: .normal)
btn.backgroundColor = UIColor.brandMainColor
btn.layer.cornerRadius = kCornerRadius3
btn.addTarget(self, action: #selector(didClickUploadBtn), for: .touchUpInside)
return btn
}()
override func viewDidLoad() {
super.viewDidLoad()
self.view.backgroundColor = .white
self.gk_navTitle = "解释说明"
createUI()
}
@objc func didClickUploadBtn() {
let mineVC = YHResignUploadDocListViewController()
var targetVC : UIViewController!
for controller in self.navigationController!.viewControllers {
if controller.isKind(of: mineVC.classForCoder) {
targetVC = controller
}
}
if targetVC != nil {
self.navigationController?.popToViewController(targetVC, animated: true)
}
}
func createUI() {
view.addSubview(centerView)
centerView.addSubview(headImageView)
centerView.addSubview(titleLabel)
centerView.addSubview(messageLabel)
centerView.addSubview(uploadBtn)
centerView.snp.makeConstraints { make in
make.left.equalToSuperview()
make.right.equalToSuperview()
make.centerY.equalToSuperview()
make.height.equalTo(251)
}
uploadBtn.snp.makeConstraints { make in
make.width.equalTo(110)
make.centerX.equalToSuperview()
make.height.equalTo(38.0)
make.bottom.equalToSuperview()
}
headImageView.snp.makeConstraints { make in
make.width.equalTo(128)
make.centerX.equalToSuperview()
make.height.equalTo(128)
make.top.equalToSuperview()
}
titleLabel.snp.makeConstraints { make in
make.left.right.equalToSuperview()
make.height.equalTo(24)
make.top.equalTo(headImageView.snp.bottom).offset(12)
}
messageLabel.snp.makeConstraints { make in
make.left.right.equalToSuperview()
make.height.equalTo(17)
make.top.equalTo(titleLabel.snp.bottom).offset(8)
}
}
override func backItemClick(_ sender: Any) {
let mineVC = YHResignUploadDocListViewController()
var targetVC : UIViewController!
for controller in self.navigationController!.viewControllers {
if controller.isKind(of: mineVC.classForCoder) {
targetVC = controller
}
}
if targetVC != nil {
self.navigationController?.popToViewController(targetVC, animated: true)
}
}
/// 是否可以返回,包括点击返回和手势返回,默认YES
override func navigationShouldPop() -> Bool {
return false
}
}
...@@ -137,7 +137,7 @@ private extension YHResignUploadDocListViewController { ...@@ -137,7 +137,7 @@ private extension YHResignUploadDocListViewController {
return label return label
}() }()
view.addSubview(titleLabel) view.addSubview(titleLabel)
titleLabel.snp.makeConstraints { make in titleLabel.snp.makeConstraints { make in
make.left.equalTo(20) make.left.equalTo(20)
make.right.equalTo(-20) make.right.equalTo(-20)
make.height.equalTo(60) make.height.equalTo(60)
...@@ -234,13 +234,16 @@ extension YHResignUploadDocListViewController: UITableViewDelegate, UITableViewD ...@@ -234,13 +234,16 @@ extension YHResignUploadDocListViewController: UITableViewDelegate, UITableViewD
vc.id = model.id vc.id = model.id
self.navigationController?.pushViewController(vc) self.navigationController?.pushViewController(vc)
} else { } else {
let vc = YHResignUploadDocExplainViewController()
self.navigationController?.pushViewController(vc)
// 跳转列表 // 跳转列表
if model.status == 0 { // if model.status == 0 {
YHHUD.flash(message: "文书正在努力撰写中,请等待") // YHHUD.flash(message: "文书正在努力撰写中,请等待")
} else { // } else {
let vc = YHResignDocumentManagementVC(orderId: orderId, id: batchId) // let vc = YHResignDocumentManagementVC(orderId: orderId, id: batchId)
self.navigationController?.pushViewController(vc) // self.navigationController?.pushViewController(vc)
} // }
} }
} }
return approveCell return approveCell
......
//
// YHResignUploadDocExplainViewCell.swift
// galaxy
//
// Created by EDY on 2024/10/29.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
class YHResignUploadDocExplainViewCell: UITableViewCell {
static let cellReuseIdentifier = "YHResignUploadDocExplainViewCell"
typealias ExperienceListBlock = (_ model: YHWorkExperienceFileModel, _ type: YHWorkFileClickType) -> ()
typealias AddIntroductionBlock = () -> ()
var experienceListBlock: ExperienceListBlock?
var addIntroductionBlock: AddIntroductionBlock?
var selectIntroductionBlock: AddIntroductionBlock?
var centerView: UIView!
var titleLabel: UILabel!
var subTitleLabel: UILabel!
var mainItemView: UIView!
var bottomView: YHWorkItemAddView!
var selectbottomView: YHWorkItemAddView!
var dataSource: [YHWorkExperienceFileModel]?{
didSet {
updateAllViews()
}
}
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
required init?(coder: NSCoder) {
super.init(coder: coder)
}
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
selectionStyle = .none
setupUI()
}
func setupUI() {
backgroundColor = .clear
centerView = {
let view = UIView()
view.backgroundColor = .white
view.layer.cornerRadius = kCornerRadius6
return view
}()
contentView.addSubview(centerView)
centerView.snp.makeConstraints { make in
make.left.equalTo(16)
make.right.equalTo(-16)
make.top.bottom.equalToSuperview()
}
titleLabel = {
let label = UILabel()
label.font = UIFont.PFSC_M(ofSize: 15)
label.text = "04.上传其他证明: "
label.textColor = UIColor.mainTextColor
return label
}()
centerView.addSubview(titleLabel)
titleLabel.snp.makeConstraints { make in
make.left.equalTo(18)
make.top.equalTo(24)
make.height.equalTo(21)
make.right.equalTo(-18)
}
subTitleLabel = {
let label = UILabel()
label.font = UIFont.PFSC_R(ofSize: 12)
label.text = "如有请上传证明文件,例如自己和家人生病证明、子女在港读书材料、在港开公司材料、香港保险执照文件等"
label.textColor = UIColor.labelTextColor2
label.numberOfLines = 0
return label
}()
centerView.addSubview(subTitleLabel)
subTitleLabel.snp.makeConstraints { make in
make.left.equalTo(18)
make.top.equalTo(57)
make.right.equalTo(-18)
}
mainItemView = {
let view = UIView()
view.backgroundColor = .white
return view
}()
centerView.addSubview(mainItemView)
mainItemView.snp.makeConstraints { make in
make.left.right.equalToSuperview()
make.bottom.equalTo(-79)
make.top.equalTo(subTitleLabel.snp.bottom).offset(16)
}
bottomView = {
let view = YHWorkItemAddView()
view.addBtn.setTitle("上传".local, for: .normal)
view.clickBlock = {[weak self] in
guard let self = self else { return }
if let block = self.addIntroductionBlock {
block()
}
}
return view
}()
centerView.addSubview(bottomView)
bottomView.snp.makeConstraints { make in
make.bottom.equalTo(-18)
make.left.equalTo(18)
make.height.equalTo(45)
make.right.equalTo(-18)
}
}
func updateAllViews() {
mainItemView.removeSubviews()
for i in 0 ..< (dataSource?.count ?? 0) {
let itemView = YHWorkFileItemView()
itemView.dataSource = dataSource?[i]
itemView.block = {[weak self] model, type in
guard let self = self else { return }
if let block = self.experienceListBlock {
block(model, type)
}
}
mainItemView.addSubview(itemView)
itemView.snp.makeConstraints { make in
make.left.right.equalToSuperview()
make.top.equalTo(69 * i)
make.height.equalTo(69)
if i == (dataSource?.count ?? 0) - 1 {
make.bottom.equalToSuperview()
}
}
}
}
@objc func cannal() {
}
@objc func more() {
}
}
...@@ -302,9 +302,12 @@ class YHResignUploadDocItemView: UIView { ...@@ -302,9 +302,12 @@ class YHResignUploadDocItemView: UIView {
nextStepImageView.image = UIImage(named: "service_adopter_income_wait") nextStepImageView.image = UIImage(named: "service_adopter_income_wait")
} }
if dataSource.status == 6 { if dataSource.status == 6 {
explainLabel.text = "已驳回" explainLabel.text = "待补充"
explainLabel.textColor = UIColor.failColor explainLabel.textColor = UIColor.brandMainColor
nextStepImageView.image = UIImage(named: "service_adopter_income_fail") nextStepImageView.image = UIImage(named: "service_adopter_income_start")
// explainLabel.text = "已驳回"
// explainLabel.textColor = UIColor.failColor
// nextStepImageView.image = UIImage(named: "service_adopter_income_fail")
} }
if dataSource.status == 5 { if dataSource.status == 5 {
explainLabel.text = "已完成" explainLabel.text = "已完成"
......
//
// YHResignUploadDocSelectViewCell.swift
// galaxy
//
// Created by EDY on 2024/10/29.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
import AttributedString
class YHResignUploadDocSelectViewCell: UITableViewCell {
static let cellReuseIdentifier = "YHResignUploadDocSelectViewCell"
typealias SelectBlock = (_ selectIndex: [Int], _ value: String, _ otherValue: String) -> ()
var selectBlock: SelectBlock?
var selectItem: [Int] = []
var centerView: UIView!
var titleLabel: UITextView!
var subTitleLabel: UILabel!
var mainItemView: UIView!
var dataSource: [String]? {
didSet {
updateAllViews()
}
}
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
required init?(coder: NSCoder) {
super.init(coder: coder)
}
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
selectionStyle = .none
setupUI()
}
func setupUI() {
backgroundColor = .clear
centerView = {
let view = UIView()
view.backgroundColor = .white
view.layer.cornerRadius = kCornerRadius6
return view
}()
contentView.addSubview(centerView)
centerView.snp.makeConstraints { make in
make.left.equalTo(16)
make.right.equalTo(-16)
make.top.bottom.equalToSuperview()
}
titleLabel = {
let label = UITextView()
label.textColor = UIColor.mainTextColor
label.font = UIFont.PFSC_M(ofSize: 16)
label.isScrollEnabled = false
label.isEditable = false
label.isSelectable = false
return label
}()
centerView.addSubview(titleLabel)
titleLabel.snp.makeConstraints { make in
make.left.equalTo(12)
make.top.equalTo(20)
make.right.equalTo(-12)
}
subTitleLabel = {
let label = UILabel()
label.font = UIFont.PFSC_R(ofSize: 11)
label.text = "多选"
label.textColor = UIColor.labelTextColor2
label.layer.cornerRadius = 2
label.layer.masksToBounds = true
label.textAlignment = .center
label.backgroundColor = UIColor(hex: 0x949494).withAlphaComponent(0.12)
return label
}()
centerView.addSubview(subTitleLabel)
subTitleLabel.snp.makeConstraints { make in
make.height.equalTo(16)
make.width.equalTo(30)
}
mainItemView = {
let view = UIView()
view.backgroundColor = .white
return view
}()
centerView.addSubview(mainItemView)
mainItemView.snp.makeConstraints { make in
make.left.right.equalToSuperview()
make.bottom.equalTo(-24)
make.top.equalTo(titleLabel.snp.bottom).offset(16)
}
var flagName: ASAttributedString = .init(string: "* ", .font(UIFont.PFSC_M(ofSize: 15)), .foreground(UIColor.failColor))
let cerName: ASAttributedString = .init(string: "01.迟递交原因? ", .font(UIFont.PFSC_M(ofSize: 15)), .foreground(UIColor.mainTextColor))
let template: ASAttributedString = " \(.view(subTitleLabel, .original(.center)))"
flagName = flagName + cerName + template
titleLabel.attributed.text = flagName
}
func updateAllViews() {
mainItemView.removeSubviews()
for i in 0 ..< (dataSource?.count ?? 0) {
let agreeButton = {
let button = UIButton(type: .custom)
button.setBackgroundImage(UIImage(named: "login_privacy_disagree_glay"), for: .normal)
button.setBackgroundImage(UIImage(named: "login_privacy_agree"), for: .selected)
button.addTarget(self, action: #selector(agreeClick(sender:)), for: .touchUpInside)
button.tag = 10000 + i
if selectItem.contains(i) {
button.isSelected = true
}
return button
}()
mainItemView.addSubview(agreeButton)
agreeButton.snp.makeConstraints { make in
if i == 0 {
make.top.equalToSuperview()
} else {
if i == 3 && selectItem.contains(2) {
let view = mainItemView.viewWithTag(2000 + i - 1)
make.top.equalTo(view?.snp.bottom ?? mainItemView.snp.bottom).offset(16)
} else {
let view = mainItemView.viewWithTag(1000 + i - 1)
make.top.equalTo(view?.snp.bottom ?? mainItemView.snp.bottom).offset(16)
}
}
make.left.equalTo(16)
make.height.equalTo(13)
make.width.equalTo(13)
}
let subTitleLabel = {
let label = UILabel()
label.font = UIFont.PFSC_R(ofSize: 14)
label.text = dataSource?[i]
label.textColor = UIColor.mainTextColor
label.numberOfLines = 0
label.tag = 1000 + i
return label
}()
mainItemView.addSubview(subTitleLabel)
subTitleLabel.snp.makeConstraints { make in
make.top.equalTo(agreeButton.snp.top).offset(-3)
make.left.equalTo(46)
make.right.equalTo(-16)
if i == (dataSource?.count ?? 0) - 1 && !selectItem.contains(6) {
make.bottom.equalToSuperview()
}
}
agreeButton.YH_clickEdgeInsets = UIEdgeInsets(top: 20, left: 20, bottom: 20, right: 20)
if (i == 2 && selectItem.contains(2)) || (i == 6 && selectItem.contains(6)) {
let subTextView = {
let label = YHResignUploadTextView()
label.tag = 2000 + i
return label
}()
mainItemView.addSubview(subTextView)
subTextView.snp.makeConstraints { make in
make.top.equalTo(subTitleLabel.snp.bottom).offset(12)
make.left.equalTo(24)
make.right.equalTo(-16)
make.height.equalTo(114)
if i == 6 {
make.bottom.equalToSuperview()
}
}
}
}
}
@objc func agreeClick(sender: UIButton) {
sender.isSelected = !sender.isSelected
if sender.isSelected {
selectItem.append(sender.tag - 10000)
} else {
selectItem.removeAll(where: {$0 == sender.tag - 10000})
}
if let block = selectBlock {
block(selectItem,"","")
}
}
}
//
// YHResignUploadTextView.swift
// galaxy
//
// Created by EDY on 2024/10/29.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
class YHResignUploadTextView: UIView {
var maxWordsCount = 50
lazy var countLabel: UILabel = {
let label = UILabel()
label.textColor = UIColor.mainTextColor18
label.textAlignment = .right
label.font = UIFont.PFSC_B(ofSize:16)
label.text = "0/0"
return label
}()
lazy var inputContentView: UIView = {
let view = UIView()
view.backgroundColor = .contentBkgColor
view.layer.cornerRadius = kCornerRadius3
view.clipsToBounds = true
return view
}()
lazy var textField: UITextView = {
let textField = UITextView()
textField.backgroundColor = .clear
textField.font = UIFont.PFSC_M(ofSize: 16)
textField.tintColor = UIColor.brandMainColor
textField.textColor = UIColor.mainTextColor
textField.delegate = self
textField.returnKeyType = .done
return textField
}()
override init(frame: CGRect) {
super.init(frame:frame)
createUI()
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
func createUI() {
self.addSubview(inputContentView)
inputContentView.addSubview(textField)
inputContentView.addSubview(countLabel)
inputContentView.snp.makeConstraints { make in
make.left.right.bottom.top.equalToSuperview()
}
textField.snp.makeConstraints { make in
make.left.equalToSuperview().offset(16)
make.right.equalToSuperview().offset(-16)
make.height.equalTo(88)
make.top.equalToSuperview()
}
countLabel.snp.makeConstraints { make in
make.left.equalToSuperview().offset(16)
make.right.equalToSuperview().offset(-16)
make.height.equalTo(20)
make.bottom.equalTo(-14)
}
}
}
extension YHResignUploadTextView: UITextViewDelegate {
func textViewDidChange(_ textView: UITextView) {
let maxLength = 50
let currentString: String = textView.text
if currentString.count >= maxLength {
// 截取字符串至最大长度
textView.text = String(currentString.prefix(maxLength))
}
countLabel.text = "\(textView.text.count)/50"
}
}
...@@ -71,4 +71,16 @@ class YHWorkExperienceFileModel: SmartCodable { ...@@ -71,4 +71,16 @@ class YHWorkExperienceFileModel: SmartCodable {
var isSelect: Bool = false var isSelect: Bool = false
required init() { required init() {
} }
func getFileSuffixName()->String {
let res1 = fileUrl.pathExtension.lowercased()
if !res1.isEmpty {
return res1
}
let res2 = fileName.pathExtension.lowercased()
if !res2.isEmpty {
return res2
}
return ""
}
} }
...@@ -601,7 +601,7 @@ class YHAllApiName { ...@@ -601,7 +601,7 @@ class YHAllApiName {
//续签段 - 10续签补件 //续签段 - 10续签补件
struct ResignUploadDoc { struct ResignUploadDoc {
static let progress = "super-app/renewal/supplement/progress" static let progress = "super-app/renewal/supplement/progress"
static let list = "super-app/renewal/supplement/list" static let list = "super-app/renewal/supplement/list/v2"
static let detail = "super-app/renewal/supplement/upload/detail" static let detail = "super-app/renewal/supplement/upload/detail"
static let reason = "super-app/renewal/supplement/fill-unavailable-reason" static let reason = "super-app/renewal/supplement/fill-unavailable-reason"
......
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "resign_upload_doc_explain_result_head@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "resign_upload_doc_explain_result_head@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
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