Commit cc16cfd7 authored by Steven杜宇's avatar Steven杜宇

// 方案

parent ad60d466
...@@ -487,6 +487,10 @@ ...@@ -487,6 +487,10 @@
047AB5E62CD083CE002A3573 /* YHButlerMessageReportHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 047AB5E52CD083CE002A3573 /* YHButlerMessageReportHandler.swift */; }; 047AB5E62CD083CE002A3573 /* YHButlerMessageReportHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 047AB5E52CD083CE002A3573 /* YHButlerMessageReportHandler.swift */; };
047F3DD92CE601D1001B2A6D /* YHEducationCertificateConfirmCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 047F3DD82CE601D1001B2A6D /* YHEducationCertificateConfirmCell.swift */; }; 047F3DD92CE601D1001B2A6D /* YHEducationCertificateConfirmCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 047F3DD82CE601D1001B2A6D /* YHEducationCertificateConfirmCell.swift */; };
047F3DDB2CE6DE91001B2A6D /* YHEducationMarkView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 047F3DDA2CE6DE91001B2A6D /* YHEducationMarkView.swift */; }; 047F3DDB2CE6DE91001B2A6D /* YHEducationMarkView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 047F3DDA2CE6DE91001B2A6D /* YHEducationMarkView.swift */; };
047F3DE22CE72524001B2A6D /* YHMyNewSchemeViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 047F3DE12CE72524001B2A6D /* YHMyNewSchemeViewController.swift */; };
047F3DE42CE73916001B2A6D /* YHComprehensiveEvaluationCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 047F3DE32CE73916001B2A6D /* YHComprehensiveEvaluationCell.swift */; };
047F3DE62CE83A0F001B2A6D /* YHHKRequiredItemView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 047F3DE52CE83A0F001B2A6D /* YHHKRequiredItemView.swift */; };
047F3DE82CE83E64001B2A6D /* YHHKRequiredItemListCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 047F3DE72CE83E64001B2A6D /* YHHKRequiredItemListCell.swift */; };
0480582F2C7CA77900502CAA /* YHDisappointHKAlertView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0480582E2C7CA77900502CAA /* YHDisappointHKAlertView.swift */; }; 0480582F2C7CA77900502CAA /* YHDisappointHKAlertView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0480582E2C7CA77900502CAA /* YHDisappointHKAlertView.swift */; };
048058312C7DBDC900502CAA /* YHTravelCertificateTipsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 048058302C7DBDC900502CAA /* YHTravelCertificateTipsView.swift */; }; 048058312C7DBDC900502CAA /* YHTravelCertificateTipsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 048058302C7DBDC900502CAA /* YHTravelCertificateTipsView.swift */; };
048058332C7DC0CF00502CAA /* YHTravelCertificateTipsCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 048058322C7DC0CF00502CAA /* YHTravelCertificateTipsCell.swift */; }; 048058332C7DC0CF00502CAA /* YHTravelCertificateTipsCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 048058322C7DC0CF00502CAA /* YHTravelCertificateTipsCell.swift */; };
...@@ -1459,6 +1463,10 @@ ...@@ -1459,6 +1463,10 @@
047AB5E52CD083CE002A3573 /* YHButlerMessageReportHandler.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHButlerMessageReportHandler.swift; sourceTree = "<group>"; }; 047AB5E52CD083CE002A3573 /* YHButlerMessageReportHandler.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHButlerMessageReportHandler.swift; sourceTree = "<group>"; };
047F3DD82CE601D1001B2A6D /* YHEducationCertificateConfirmCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHEducationCertificateConfirmCell.swift; sourceTree = "<group>"; }; 047F3DD82CE601D1001B2A6D /* YHEducationCertificateConfirmCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHEducationCertificateConfirmCell.swift; sourceTree = "<group>"; };
047F3DDA2CE6DE91001B2A6D /* YHEducationMarkView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHEducationMarkView.swift; sourceTree = "<group>"; }; 047F3DDA2CE6DE91001B2A6D /* YHEducationMarkView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHEducationMarkView.swift; sourceTree = "<group>"; };
047F3DE12CE72524001B2A6D /* YHMyNewSchemeViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHMyNewSchemeViewController.swift; sourceTree = "<group>"; };
047F3DE32CE73916001B2A6D /* YHComprehensiveEvaluationCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHComprehensiveEvaluationCell.swift; sourceTree = "<group>"; };
047F3DE52CE83A0F001B2A6D /* YHHKRequiredItemView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHHKRequiredItemView.swift; sourceTree = "<group>"; };
047F3DE72CE83E64001B2A6D /* YHHKRequiredItemListCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHHKRequiredItemListCell.swift; sourceTree = "<group>"; };
0480582E2C7CA77900502CAA /* YHDisappointHKAlertView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHDisappointHKAlertView.swift; sourceTree = "<group>"; }; 0480582E2C7CA77900502CAA /* YHDisappointHKAlertView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHDisappointHKAlertView.swift; sourceTree = "<group>"; };
048058302C7DBDC900502CAA /* YHTravelCertificateTipsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHTravelCertificateTipsView.swift; sourceTree = "<group>"; }; 048058302C7DBDC900502CAA /* YHTravelCertificateTipsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHTravelCertificateTipsView.swift; sourceTree = "<group>"; };
048058322C7DC0CF00502CAA /* YHTravelCertificateTipsCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHTravelCertificateTipsCell.swift; sourceTree = "<group>"; }; 048058322C7DC0CF00502CAA /* YHTravelCertificateTipsCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHTravelCertificateTipsCell.swift; sourceTree = "<group>"; };
...@@ -3533,6 +3541,41 @@ ...@@ -3533,6 +3541,41 @@
path = VM; path = VM;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
047F3DDD2CE7216D001B2A6D /* MyNewScheme(我的方案) */ = {
isa = PBXGroup;
children = (
047F3DE02CE724FF001B2A6D /* C */,
047F3DDF2CE724FA001B2A6D /* V */,
047F3DDE2CE724F4001B2A6D /* M */,
);
path = "MyNewScheme(我的方案)";
sourceTree = "<group>";
};
047F3DDE2CE724F4001B2A6D /* M */ = {
isa = PBXGroup;
children = (
);
path = M;
sourceTree = "<group>";
};
047F3DDF2CE724FA001B2A6D /* V */ = {
isa = PBXGroup;
children = (
047F3DE32CE73916001B2A6D /* YHComprehensiveEvaluationCell.swift */,
047F3DE72CE83E64001B2A6D /* YHHKRequiredItemListCell.swift */,
047F3DE52CE83A0F001B2A6D /* YHHKRequiredItemView.swift */,
);
path = V;
sourceTree = "<group>";
};
047F3DE02CE724FF001B2A6D /* C */ = {
isa = PBXGroup;
children = (
047F3DE12CE72524001B2A6D /* YHMyNewSchemeViewController.swift */,
);
path = C;
sourceTree = "<group>";
};
0480582C2C7CA6CD00502CAA /* GuideToHongKong(5 赴港行程指南) */ = { 0480582C2C7CA6CD00502CAA /* GuideToHongKong(5 赴港行程指南) */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
...@@ -4615,6 +4658,7 @@ ...@@ -4615,6 +4658,7 @@
A5A60B232CE4C4990083DB2F /* QMAS(优才) */ = { A5A60B232CE4C4990083DB2F /* QMAS(优才) */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
047F3DDD2CE7216D001B2A6D /* MyNewScheme(我的方案) */,
0449EEE52C8EE99000A397FD /* Resign(续签) */, 0449EEE52C8EE99000A397FD /* Resign(续签) */,
0472CBA62C5A11640096F48F /* CustomerService(客服段) */, 0472CBA62C5A11640096F48F /* CustomerService(客服段) */,
A525D22C2BA837C5001A84F5 /* FileList(文件清单) */, A525D22C2BA837C5001A84F5 /* FileList(文件清单) */,
...@@ -5602,6 +5646,7 @@ ...@@ -5602,6 +5646,7 @@
045EEE982B9F171A0022A143 /* YHPreviewInfoQuestionAndAnswerItemsView.swift in Sources */, 045EEE982B9F171A0022A143 /* YHPreviewInfoQuestionAndAnswerItemsView.swift in Sources */,
045EEE7A2B9F171A0022A143 /* YHPreviewForOtherInfoModel.swift in Sources */, 045EEE7A2B9F171A0022A143 /* YHPreviewForOtherInfoModel.swift in Sources */,
0414BDA92BC7E81500225367 /* YHMyPermissionSettingVC.swift in Sources */, 0414BDA92BC7E81500225367 /* YHMyPermissionSettingVC.swift in Sources */,
047F3DE22CE72524001B2A6D /* YHMyNewSchemeViewController.swift in Sources */,
A567E5AA2BD7643D00D5D5A0 /* YHGestureTableView.swift in Sources */, A567E5AA2BD7643D00D5D5A0 /* YHGestureTableView.swift in Sources */,
04CE1ADF2C2AD91F001CB80A /* YHActivityListCell.swift in Sources */, 04CE1ADF2C2AD91F001CB80A /* YHActivityListCell.swift in Sources */,
04256DFC2C742C7D00A37BA4 /* YHFamilyInfoConfirmViewModel.swift in Sources */, 04256DFC2C742C7D00A37BA4 /* YHFamilyInfoConfirmViewModel.swift in Sources */,
...@@ -5828,6 +5873,7 @@ ...@@ -5828,6 +5873,7 @@
A5DF9C632C78733200CE48E6 /* YHHKLegaldaysModel.swift in Sources */, A5DF9C632C78733200CE48E6 /* YHHKLegaldaysModel.swift in Sources */,
0430E65A2C7436CD000511E2 /* YHAdopterNewPeopleViewModel.swift in Sources */, 0430E65A2C7436CD000511E2 /* YHAdopterNewPeopleViewModel.swift in Sources */,
04256E1D2C75C74200A37BA4 /* YHAppointHKResultModel.swift in Sources */, 04256E1D2C75C74200A37BA4 /* YHAppointHKResultModel.swift in Sources */,
047F3DE62CE83A0F001B2A6D /* YHHKRequiredItemView.swift in Sources */,
04CE1ADB2C2AD91F001CB80A /* YHActivityTitleItemView.swift in Sources */, 04CE1ADB2C2AD91F001CB80A /* YHActivityTitleItemView.swift in Sources */,
A5FD63BF2B6250BC00D1D9DA /* YHInformationPerfectCell.swift in Sources */, A5FD63BF2B6250BC00D1D9DA /* YHInformationPerfectCell.swift in Sources */,
04CA2C2F2CBA5C9E00F36DE7 /* YHLookResignGuideLineView.swift in Sources */, 04CA2C2F2CBA5C9E00F36DE7 /* YHLookResignGuideLineView.swift in Sources */,
...@@ -6088,6 +6134,7 @@ ...@@ -6088,6 +6134,7 @@
047AA3D52C4A3643009C4554 /* YHInvitationWithGiftsDetailView.swift in Sources */, 047AA3D52C4A3643009C4554 /* YHInvitationWithGiftsDetailView.swift in Sources */,
04CA2C272CBA0EDB00F36DE7 /* YHLookResignResultStateTwoTableViewCell.swift in Sources */, 04CA2C272CBA0EDB00F36DE7 /* YHLookResignResultStateTwoTableViewCell.swift in Sources */,
04CA2C2B2CBA47CB00F36DE7 /* YHLookResignResultStateThreePeopleTableViewCell.swift in Sources */, 04CA2C2B2CBA47CB00F36DE7 /* YHLookResignResultStateThreePeopleTableViewCell.swift in Sources */,
047F3DE82CE83E64001B2A6D /* YHHKRequiredItemListCell.swift in Sources */,
A5DF3D462BF72BA1003D5F03 /* YHTestViewController.swift in Sources */, A5DF3D462BF72BA1003D5F03 /* YHTestViewController.swift in Sources */,
A566A79C2C227C9B00980D06 /* YHOrderTipsItemView.swift in Sources */, A566A79C2C227C9B00980D06 /* YHOrderTipsItemView.swift in Sources */,
A517A4E52BB6C4BB000DEECD /* YHDocumentFileItemView.swift in Sources */, A517A4E52BB6C4BB000DEECD /* YHDocumentFileItemView.swift in Sources */,
...@@ -6160,6 +6207,7 @@ ...@@ -6160,6 +6207,7 @@
04174D782BCD5B74000BA46D /* YHMessageListVC.swift in Sources */, 04174D782BCD5B74000BA46D /* YHMessageListVC.swift in Sources */,
0430E6742C74A02B000511E2 /* YHAdopterIdCardViewController.swift in Sources */, 0430E6742C74A02B000511E2 /* YHAdopterIdCardViewController.swift in Sources */,
04F243472C9BB6C000DF2C74 /* YHHKRecordsSectionHeaderCell.swift in Sources */, 04F243472C9BB6C000DF2C74 /* YHHKRecordsSectionHeaderCell.swift in Sources */,
047F3DE42CE73916001B2A6D /* YHComprehensiveEvaluationCell.swift in Sources */,
044E31C52CBCFDD200500F8E /* YHResignAppointGuideLineView.swift in Sources */, 044E31C52CBCFDD200500F8E /* YHResignAppointGuideLineView.swift in Sources */,
A517A4E12BB573EB000DEECD /* YHDocListCell.swift in Sources */, A517A4E12BB573EB000DEECD /* YHDocListCell.swift in Sources */,
A58037212BAD7B2A0031C312 /* YHMySchemeModel.swift in Sources */, A58037212BAD7B2A0031C312 /* YHMySchemeModel.swift in Sources */,
......
//
// YHMyNewSchemeViewController.swift
// galaxy
//
// Created by Dufet on 2024/11/15.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
class YHMyNewSchemeViewController: YHBaseViewController {
var items: [String] = ["", ""]
lazy var tableView: UITableView = {
let tableView = UITableView(frame:.zero, style:.grouped)
if #available(iOS 11.0, *) {
tableView.contentInsetAdjustmentBehavior = .never
}
tableView.showsVerticalScrollIndicator = false
tableView.backgroundColor = .init(hex: 0x090B26)
tableView.separatorStyle = .none
tableView.delegate = self
tableView.dataSource = self
tableView.register(UITableViewCell.self, forCellReuseIdentifier: "UITableViewCell")
tableView.register(YHComprehensiveEvaluationCell.self, forCellReuseIdentifier: YHComprehensiveEvaluationCell.cellReuseIdentifier)
tableView.register(YHHKRequiredItemListCell.self, forCellReuseIdentifier: YHHKRequiredItemListCell.cellReuseIdentifier)
tableView.bounces = false
return tableView
}()
override func viewDidLoad() {
super.viewDidLoad()
gk_navTitle = "我的方案"
gk_navTitleColor = .white
gk_navBarAlpha = 1
gk_navBackgroundImage = UIImage(named: "my_scheme_nav")
gk_backImage = UIImage(named: "nav_icon_back_white")
self.view.addSubview(tableView)
tableView.snp.makeConstraints { make in
make.left.right.bottom.equalToSuperview()
make.top.equalTo(k_Height_NavigationtBarAndStatuBar)
}
tableView.reloadData()
}
}
extension YHMyNewSchemeViewController : UITableViewDelegate, UITableViewDataSource {
func numberOfSections(in tableView: UITableView) -> Int {
return 1
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return items.count
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
if 0 <= indexPath.row && indexPath.row < items.count {
let model = items[indexPath.section]
if indexPath.row == 0 {
let evaluationCell = tableView.dequeueReusableCell(withIdentifier: YHComprehensiveEvaluationCell.cellReuseIdentifier, for: indexPath) as! YHComprehensiveEvaluationCell
return evaluationCell
}
let listCell = tableView.dequeueReusableCell(withIdentifier: YHHKRequiredItemListCell.cellReuseIdentifier, for: indexPath) as! YHHKRequiredItemListCell
return listCell
}
let defaultCell = tableView.dequeueReusableCell(withIdentifier: "UITableViewCell", for: indexPath)
return defaultCell
}
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return UITableView.automaticDimension
}
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
}
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
let view = UIView()
return view
}
func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
return 0.01
}
func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
let view = UIView()
return view
}
func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
return 0.01
}
}
//
// YHComprehensiveEvaluationCell.swift
// galaxy
//
// Created by Dufet on 2024/11/15.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
import AttributedString
class YHComprehensiveEvaluationCell: UITableViewCell {
static let cellReuseIdentifier = "YHComprehensiveEvaluationCell"
lazy var markImgV: UIImageView = {
let v = UIImageView(image: UIImage(named: "my_scheme_mark"))
return v
}()
lazy var evaluationLabel: UILabel = {
let label = UILabel()
label.font = UIFont.PFSC_B(ofSize: 17)
label.textColor = .mainTextColor
label.text = "综合评估"
return label
}()
lazy var yellowContentView: UIView = {
let view = UIView()
view.backgroundColor = UIColor.init(hex: 0xCF9764, alpha: 0.12)
view.layer.cornerRadius = 4.0
view.clipsToBounds = true
return view
}()
lazy var tipsLabel: UILabel = {
let label = UILabel()
label.numberOfLines = 0
label.attributed.text = unsatisfiedText
return label
}()
lazy var satisfiedText: ASAttributedString = {
let aa: ASAttributedString = .init("经初步评估,", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor.mainTextColor))
let bb: ASAttributedString = .init("您符合【优秀人才入境计划-综合计分制】甄选条件", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor.init(hex: 0xD48638)))
let cc: ASAttributedString = .init(",您在以下方面具备明显优势,为您感到开心!接下来辛苦您根据指引配合准备申请材料", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor.mainTextColor))
return aa+bb+cc
}()
lazy var unsatisfiedText: ASAttributedString = {
let aa: ASAttributedString = .init("经初步评估,", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor.mainTextColor))
let bb: ASAttributedString = .init("您目前已符合【优秀人才入境计划 - 综合计分制】的部分重要甄选条件", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor.init(hex: 0xD48638)))
let cc: ASAttributedString = .init(",在如下方面具备优势,足以证明您的优秀之处!考虑到优才计划的的多维度要求,以及您目前已经具备的良好基础,如果您能进一步去孵化其他条件,后续的申请将会更具竞争力", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor.mainTextColor))
return aa+bb+cc
}()
lazy var bgView: UIView = {
let view = UIView()
let bgImgView = UIImageView(image: UIImage(named: "my_scheme_head_img"))
view.addSubview(bgImgView)
let leftWheatearImgV = UIImageView(image: UIImage(named: "my_scheme_wheatear_left"))
view.addSubview(leftWheatearImgV)
let rightWheatearImgV = UIImageView(image: UIImage(named: "my_scheme_wheatear_right"))
view.addSubview(rightWheatearImgV)
view.addSubview(titleLabel)
view.addSubview(subTitleLabel)
bgImgView.snp.makeConstraints { make in
make.top.left.right.equalToSuperview()
make.height.equalTo(416.0)
}
leftWheatearImgV.snp.makeConstraints { make in
make.left.equalTo(35)
make.top.equalTo(27)
make.width.equalTo(65)
make.height.equalTo(80)
}
rightWheatearImgV.snp.makeConstraints { make in
make.right.equalTo(-35)
make.top.equalTo(27)
make.width.equalTo(65)
make.height.equalTo(80)
}
titleLabel.snp.makeConstraints { make in
make.top.equalTo(27)
make.height.equalTo(34)
make.centerX.equalToSuperview()
}
subTitleLabel.snp.makeConstraints { make in
make.left.equalTo(leftWheatearImgV.snp.left).offset(38)
make.right.equalTo(rightWheatearImgV.snp.right).offset(-38)
make.top.equalTo(titleLabel.snp.bottom).offset(8)
}
return view
}()
lazy var titleLabel: UILabel = {
let label = UILabel()
label.font = UIFont.PFSC_B(ofSize: 24)
label.textColor = .white
label.text = "尊敬的先生"
return label
}()
lazy var subTitleLabel: UILabel = {
let label = UILabel()
label.numberOfLines = 0
label.font = UIFont.PFSC_R(ofSize: 14)
label.textColor = .white
label.textAlignment = .center
label.text = "您好,根据您的信息,这是我们为您定制的申请方案,方案详情如下:"
return label
}()
lazy var blueBgView: UIView = {
let view = UIView()
view.backgroundColor = .init(UIColor(hex: 0x0D1025))
return view
}()
lazy var whiteBottomView: UIView = {
let view = UIView()
view.backgroundColor = .white
return view
}()
required init?(coder: NSCoder) {
super.init(coder: coder)
}
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
setupUI()
}
func setupUI() {
selectionStyle = .none
contentView.backgroundColor = .clear
contentView.clipsToBounds = true
backgroundColor = .clear
contentView.addSubview(bgView)
contentView.addSubview(whiteBottomView)
contentView.addSubview(markImgV)
contentView.addSubview(evaluationLabel)
contentView.addSubview(yellowContentView)
yellowContentView.addSubview(tipsLabel)
bgView.snp.makeConstraints { make in
make.left.right.top.equalToSuperview()
make.height.equalTo(416)
}
whiteBottomView.snp.makeConstraints { make in
make.left.equalTo(8.5)
make.right.equalTo(-8.5)
make.height.equalTo(10000)
make.top.equalTo(bgView.snp.bottom).offset(0)
}
markImgV.snp.makeConstraints { make in
make.left.equalTo(32)
make.width.equalTo(4)
make.height.equalTo(16)
make.centerY.equalTo(evaluationLabel)
}
evaluationLabel.snp.makeConstraints { make in
make.top.equalTo(238)
make.height.equalTo(24)
make.left.equalTo(markImgV.snp.right).offset(8)
make.right.equalTo(-32)
}
yellowContentView.snp.makeConstraints { make in
make.left.equalTo(32)
make.right.equalTo(-32)
make.top.equalTo(evaluationLabel.snp.bottom).offset(16)
make.bottom.equalTo(-24)
}
tipsLabel.snp.makeConstraints { make in
make.left.equalTo(12)
make.right.equalTo(-12)
make.top.equalTo(12)
make.bottom.equalTo(-12)
}
}
}
//
// YHHKRequiredItemListCell.swift
// galaxy
//
// Created by Dufet on 2024/11/16.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
class YHHKRequiredItemListCell: UITableViewCell {
static let cellReuseIdentifier = "YHHKRequiredItemListCell"
var arr: [String] = ["申请人是否50岁或以下",
"申请人是否持有由合资格大学颁授的硕士或博士学位",
"申请人所持有由合资格大学颁授的硕士或博士学位是否与「STEM」学科有关,即「科学」、「科技」、「工程」或「数学」",
"申请人是否具备两种语言的良好书写及口语能力",
"申请人是否具备良好的英文书写及口语能力",
"申请人是否拥有不少于五年相当于学位程度或专平的工作经验",
"申请人是否拥有不少于三年相当于学位程度或专家水平在跨国公司或知名企业的工作经验,例如上市公司或位列《福布斯》全球企业2000 强、《财富》世界500 强和胡润中国 500 强的企业",
"申请人是否拥有不少于三年相当于学位程度或专家水平在特定领域/行业的工作经验,包括「创新及科技」、「金融」及「国际贸易」(当中包括跨境海运及空运,以及供应链管理)",]
var requireArr: [String] = [] {
didSet {
listView.removeSubviews()
listView.addSubview(topView)
topView.snp.remakeConstraints { make in
make.left.right.top.equalToSuperview()
make.height.equalTo(42)
}
var lastItemView: YHHKRequiredItemView? = nil
for (index, text) in requireArr.enumerated() {
let itemView = YHHKRequiredItemView(frame: .zero)
itemView.text = text
itemView.backgroundColor = index%2 == 0 ? .white : .init(hex: 0xFBF7F3)
listView.addSubview(itemView)
itemView.snp.makeConstraints { make in
make.left.right.equalToSuperview()
if let lastItemView = lastItemView {
make.top.equalTo(lastItemView.snp.bottom)
} else {
make.top.equalTo(topView.snp.bottom)
}
if index == requireArr.count-1 {
make.bottom.equalToSuperview()
}
}
lastItemView = itemView
}
self.setNeedsLayout()
self.layoutIfNeeded()
}
}
lazy var topView: UIView = {
let view = UIView()
view.backgroundColor = .init(hex: 0xFBF7F3)
let requireLabel = UILabel()
requireLabel.text = "港府要求"
requireLabel.font = UIFont.PFSC_M(ofSize: 13)
requireLabel.textColor = UIColor.init(hex: 0xD48638)
view.addSubview(requireLabel)
let fitLabel = UILabel()
fitLabel.text = "是否符合"
fitLabel.font = UIFont.PFSC_M(ofSize: 13)
fitLabel.textColor = UIColor.init(hex: 0x6D788A)
view.addSubview(fitLabel)
let line = UIView()
line.backgroundColor = UIColor.init(hex: 0xF7F2ED)
view.addSubview(line)
requireLabel.snp.makeConstraints { make in
make.centerY.equalToSuperview()
make.left.equalTo(12)
}
fitLabel.snp.makeConstraints { make in
make.centerY.equalToSuperview()
make.right.equalTo(-12)
}
line.snp.makeConstraints { make in
make.right.equalTo(-72)
make.top.bottom.equalToSuperview()
make.width.equalTo(0.5)
}
return view
}()
lazy var whiteBgView: UIView = {
let view = UIView()
view.backgroundColor = .white
return view
}()
lazy var listView: UIView = {
let view = UIView()
view.layer.cornerRadius = 4.0
view.layer.borderWidth = 0.5
view.layer.borderColor = UIColor.init(hex: 0xF7F2ED).cgColor
view.clipsToBounds = true
return view
}()
required init?(coder: NSCoder) {
super.init(coder: coder)
}
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
setupUI()
}
func setupUI() {
selectionStyle = .none
contentView.backgroundColor = .clear
backgroundColor = .clear
contentView.clipsToBounds = true
self.addSubview(whiteBgView)
self.addSubview(listView)
listView.addSubview(topView)
whiteBgView.snp.makeConstraints { make in
make.left.equalTo(8.5)
make.right.equalTo(-8.5)
make.top.bottom.equalToSuperview()
}
listView.snp.makeConstraints { make in
make.left.equalTo(32)
make.right.equalTo(-32)
make.top.bottom.equalToSuperview()
}
topView.snp.makeConstraints { make in
make.left.right.top.equalToSuperview()
make.height.equalTo(42)
}
requireArr = arr
}
}
//
// YHHKRequiredItemView.swift
// galaxy
//
// Created by Dufet on 2024/11/16.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
class YHHKRequiredItemView: UIView {
var text: String = "" {
didSet {
titleLabel.text = text
}
}
lazy var titleLabel: UILabel = {
let label = UILabel()
label.numberOfLines = 0
label.font = UIFont.PFSC_R(ofSize: 13)
label.textColor = .mainTextColor
return label
}()
lazy var requireView: UIView = {
let view = UIView()
let hookImgV = UIImageView(image: UIImage(named: "my_scheme_require_fit"))
view.addSubview(hookImgV)
hookImgV.snp.makeConstraints { make in
make.width.height.equalTo(14)
make.centerX.equalToSuperview()
make.centerY.equalToSuperview()
}
return view
}()
lazy var topSeparaterLine: UIView = {
let view = UIView()
view.backgroundColor = UIColor.init(hex: 0xF7F2ED)
return view
}()
lazy var verticalSeparaterLine: UIView = {
let view = UIView()
view.backgroundColor = UIColor.init(hex: 0xF7F2ED)
return view
}()
override init(frame: CGRect) {
super.init(frame: .zero)
setupUI()
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
func setupUI() {
self.addSubview(titleLabel)
self.addSubview(requireView)
self.addSubview(topSeparaterLine)
self.addSubview(verticalSeparaterLine)
requireView.snp.makeConstraints { make in
make.width.equalTo(72)
make.right.top.bottom.equalToSuperview()
}
topSeparaterLine.snp.makeConstraints { make in
make.left.right.top.equalToSuperview()
make.height.equalTo(0.5)
}
verticalSeparaterLine.snp.makeConstraints { make in
make.left.equalTo(requireView.snp.left)
make.top.bottom.equalToSuperview()
make.width.equalTo(0.5)
}
titleLabel.snp.makeConstraints { make in
make.left.equalTo(12)
make.top.equalTo(12)
make.bottom.equalTo(-12)
make.right.equalTo(requireView.snp.left).offset(-12)
}
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "头部-1 1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "头部.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "角标.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "角标-1.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Group 33333992.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Group 33333992-1.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "image 470@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "image 470@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "image 469@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "image 469@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