Commit 0e6ece70 authored by pete谢兆麟's avatar pete谢兆麟

Merge branch 'qmas-1130' of http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS into qmas-1130

parents 410aa91d 32a6b825
...@@ -499,6 +499,12 @@ ...@@ -499,6 +499,12 @@
047F3DE42CE73916001B2A6D /* YHComprehensiveEvaluationCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 047F3DE32CE73916001B2A6D /* YHComprehensiveEvaluationCell.swift */; }; 047F3DE42CE73916001B2A6D /* YHComprehensiveEvaluationCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 047F3DE32CE73916001B2A6D /* YHComprehensiveEvaluationCell.swift */; };
047F3DE62CE83A0F001B2A6D /* YHHKRequiredItemView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 047F3DE52CE83A0F001B2A6D /* YHHKRequiredItemView.swift */; }; 047F3DE62CE83A0F001B2A6D /* YHHKRequiredItemView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 047F3DE52CE83A0F001B2A6D /* YHHKRequiredItemView.swift */; };
047F3DE82CE83E64001B2A6D /* YHHKRequiredItemListCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 047F3DE72CE83E64001B2A6D /* YHHKRequiredItemListCell.swift */; }; 047F3DE82CE83E64001B2A6D /* YHHKRequiredItemListCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 047F3DE72CE83E64001B2A6D /* YHHKRequiredItemListCell.swift */; };
047F3DEA2CE84B6C001B2A6D /* YHImproveTargetCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 047F3DE92CE84B6C001B2A6D /* YHImproveTargetCell.swift */; };
047F3DEC2CE84BD5001B2A6D /* YHImproveRequireItemView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 047F3DEB2CE84BD5001B2A6D /* YHImproveRequireItemView.swift */; };
047F3DEE2CE87E83001B2A6D /* YHIndustryLocationCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 047F3DED2CE87E83001B2A6D /* YHIndustryLocationCell.swift */; };
047F3DF02CE88380001B2A6D /* YHMaterialListCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 047F3DEF2CE88380001B2A6D /* YHMaterialListCell.swift */; };
047F3DF22CE888EF001B2A6D /* YHDocumentListCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 047F3DF12CE888EF001B2A6D /* YHDocumentListCell.swift */; };
047F3DF42CE88ACD001B2A6D /* YHImproveSchemeCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 047F3DF32CE88ACD001B2A6D /* YHImproveSchemeCell.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 */; };
...@@ -1503,6 +1509,12 @@ ...@@ -1503,6 +1509,12 @@
047F3DE32CE73916001B2A6D /* YHComprehensiveEvaluationCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHComprehensiveEvaluationCell.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>"; }; 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>"; }; 047F3DE72CE83E64001B2A6D /* YHHKRequiredItemListCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHHKRequiredItemListCell.swift; sourceTree = "<group>"; };
047F3DE92CE84B6C001B2A6D /* YHImproveTargetCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHImproveTargetCell.swift; sourceTree = "<group>"; };
047F3DEB2CE84BD5001B2A6D /* YHImproveRequireItemView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHImproveRequireItemView.swift; sourceTree = "<group>"; };
047F3DED2CE87E83001B2A6D /* YHIndustryLocationCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHIndustryLocationCell.swift; sourceTree = "<group>"; };
047F3DEF2CE88380001B2A6D /* YHMaterialListCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHMaterialListCell.swift; sourceTree = "<group>"; };
047F3DF12CE888EF001B2A6D /* YHDocumentListCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHDocumentListCell.swift; sourceTree = "<group>"; };
047F3DF32CE88ACD001B2A6D /* YHImproveSchemeCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHImproveSchemeCell.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>"; };
...@@ -3628,7 +3640,13 @@ ...@@ -3628,7 +3640,13 @@
children = ( children = (
047F3DE32CE73916001B2A6D /* YHComprehensiveEvaluationCell.swift */, 047F3DE32CE73916001B2A6D /* YHComprehensiveEvaluationCell.swift */,
047F3DE72CE83E64001B2A6D /* YHHKRequiredItemListCell.swift */, 047F3DE72CE83E64001B2A6D /* YHHKRequiredItemListCell.swift */,
047F3DE92CE84B6C001B2A6D /* YHImproveTargetCell.swift */,
047F3DED2CE87E83001B2A6D /* YHIndustryLocationCell.swift */,
047F3DEF2CE88380001B2A6D /* YHMaterialListCell.swift */,
047F3DF12CE888EF001B2A6D /* YHDocumentListCell.swift */,
047F3DF32CE88ACD001B2A6D /* YHImproveSchemeCell.swift */,
047F3DE52CE83A0F001B2A6D /* YHHKRequiredItemView.swift */, 047F3DE52CE83A0F001B2A6D /* YHHKRequiredItemView.swift */,
047F3DEB2CE84BD5001B2A6D /* YHImproveRequireItemView.swift */,
); );
path = V; path = V;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -5762,6 +5780,7 @@ ...@@ -5762,6 +5780,7 @@
A5DE0D3C2BB9016200976FE1 /* YHEmailInputAlertView.swift in Sources */, A5DE0D3C2BB9016200976FE1 /* YHEmailInputAlertView.swift in Sources */,
04CCEDFD2CA150ED0026EA70 /* YHHKImmigrationRecordsSingleModel.swift in Sources */, 04CCEDFD2CA150ED0026EA70 /* YHHKImmigrationRecordsSingleModel.swift in Sources */,
0418922A2C91CB2500B9FB94 /* YHResignDocumentStatus.swift in Sources */, 0418922A2C91CB2500B9FB94 /* YHResignDocumentStatus.swift in Sources */,
047F3DF22CE888EF001B2A6D /* YHDocumentListCell.swift in Sources */,
04256DE42C72E3FA00A37BA4 /* YHInfoItemOptionView.swift in Sources */, 04256DE42C72E3FA00A37BA4 /* YHInfoItemOptionView.swift in Sources */,
04256DF22C734E7E00A37BA4 /* YHGrabFileCell.swift in Sources */, 04256DF22C734E7E00A37BA4 /* YHGrabFileCell.swift in Sources */,
04CA2C052CB8F75700F36DE7 /* YHResignUploadDocListViewModel.swift in Sources */, 04CA2C052CB8F75700F36DE7 /* YHResignUploadDocListViewModel.swift in Sources */,
...@@ -5773,6 +5792,7 @@ ...@@ -5773,6 +5792,7 @@
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 */,
047F3DF42CE88ACD001B2A6D /* YHImproveSchemeCell.swift in Sources */,
A598E9DC2C7CA52300F84739 /* YHTravelDocsPreparationTipsCell.swift in Sources */, A598E9DC2C7CA52300F84739 /* YHTravelDocsPreparationTipsCell.swift in Sources */,
045EEE982B9F171A0022A143 /* YHPreviewInfoQuestionAndAnswerItemsView.swift in Sources */, 045EEE982B9F171A0022A143 /* YHPreviewInfoQuestionAndAnswerItemsView.swift in Sources */,
045EEE7A2B9F171A0022A143 /* YHPreviewForOtherInfoModel.swift in Sources */, 045EEE7A2B9F171A0022A143 /* YHPreviewForOtherInfoModel.swift in Sources */,
...@@ -6005,6 +6025,7 @@ ...@@ -6005,6 +6025,7 @@
045EEF102B9F171A0022A143 /* YHMainApplicantInformationViewModel.swift in Sources */, 045EEF102B9F171A0022A143 /* YHMainApplicantInformationViewModel.swift in Sources */,
0493B3DC2BA7EFE600AF9393 /* YHCertificateSearchViewController.swift in Sources */, 0493B3DC2BA7EFE600AF9393 /* YHCertificateSearchViewController.swift in Sources */,
A5DF9C632C78733200CE48E6 /* YHHKLegaldaysModel.swift in Sources */, A5DF9C632C78733200CE48E6 /* YHHKLegaldaysModel.swift in Sources */,
047F3DEC2CE84BD5001B2A6D /* YHImproveRequireItemView.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 */, 047F3DE62CE83A0F001B2A6D /* YHHKRequiredItemView.swift in Sources */,
...@@ -6113,6 +6134,7 @@ ...@@ -6113,6 +6134,7 @@
047AA3E82C4A6D69009C4554 /* YHListViewController.swift in Sources */, 047AA3E82C4A6D69009C4554 /* YHListViewController.swift in Sources */,
048787D92BCF68530036E221 /* YHProgressView.swift in Sources */, 048787D92BCF68530036E221 /* YHProgressView.swift in Sources */,
04256DEE2C73338200A37BA4 /* YHGrabingNumberListCell.swift in Sources */, 04256DEE2C73338200A37BA4 /* YHGrabingNumberListCell.swift in Sources */,
047F3DF02CE88380001B2A6D /* YHMaterialListCell.swift in Sources */,
04B401E62CE83C74005C61A9 /* YHIncomeRemarkCell.swift in Sources */, 04B401E62CE83C74005C61A9 /* YHIncomeRemarkCell.swift in Sources */,
045EEEEC2B9F171A0022A143 /* YHBrotherInfoVC.swift in Sources */, 045EEEEC2B9F171A0022A143 /* YHBrotherInfoVC.swift in Sources */,
0477E17A2BA41C7E00436346 /* YHCertificateModel.swift in Sources */, 0477E17A2BA41C7E00436346 /* YHCertificateModel.swift in Sources */,
...@@ -6395,6 +6417,7 @@ ...@@ -6395,6 +6417,7 @@
04912F822CB7CFAE00CC3105 /* YHResignAppointedScheduleLineView.swift in Sources */, 04912F822CB7CFAE00CC3105 /* YHResignAppointedScheduleLineView.swift in Sources */,
04912F8A2CB9000200CC3105 /* YHResignScheduleSingleInfoCell.swift in Sources */, 04912F8A2CB9000200CC3105 /* YHResignScheduleSingleInfoCell.swift in Sources */,
04256E102C75BD2700A37BA4 /* YHVisaPaymentVC.swift in Sources */, 04256E102C75BD2700A37BA4 /* YHVisaPaymentVC.swift in Sources */,
047F3DEA2CE84B6C001B2A6D /* YHImproveTargetCell.swift in Sources */,
A5ACE9562B4564F7002C94D2 /* YHBouncesContentView.swift in Sources */, A5ACE9562B4564F7002C94D2 /* YHBouncesContentView.swift in Sources */,
A554A5122B99715000EA5973 /* YHConstantArrayData.swift in Sources */, A554A5122B99715000EA5973 /* YHConstantArrayData.swift in Sources */,
045EEE962B9F171A0022A143 /* YHPreviewInfoCertificatePictureItemsView.swift in Sources */, 045EEE962B9F171A0022A143 /* YHPreviewInfoCertificatePictureItemsView.swift in Sources */,
...@@ -6466,6 +6489,7 @@ ...@@ -6466,6 +6489,7 @@
A5DF9C672C78B7E600CE48E6 /* YHUploadCertificateListModel.swift in Sources */, A5DF9C672C78B7E600CE48E6 /* YHUploadCertificateListModel.swift in Sources */,
045EEEDC2B9F171A0022A143 /* YHQualificationDetailVC.swift in Sources */, 045EEEDC2B9F171A0022A143 /* YHQualificationDetailVC.swift in Sources */,
045EEEF52B9F171A0022A143 /* YHSpouseInfoContainerVC.swift in Sources */, 045EEEF52B9F171A0022A143 /* YHSpouseInfoContainerVC.swift in Sources */,
047F3DEE2CE87E83001B2A6D /* YHIndustryLocationCell.swift in Sources */,
047AA3F62C50E773009C4554 /* YHShareCashOutModel.swift in Sources */, 047AA3F62C50E773009C4554 /* YHShareCashOutModel.swift in Sources */,
0472CBAC2C5A11640096F48F /* YHPrincleViewModel.swift in Sources */, 0472CBAC2C5A11640096F48F /* YHPrincleViewModel.swift in Sources */,
044F39542CB80731007CA277 /* YHVisaRenewalPayTipsCell.swift in Sources */, 044F39542CB80731007CA277 /* YHVisaRenewalPayTipsCell.swift in Sources */,
......
...@@ -8,9 +8,27 @@ ...@@ -8,9 +8,27 @@
import UIKit import UIKit
enum YHSchemeItemType: Int {
case none = 0
case evaluate = 1 // 综合评估
case industryLocation = 2 // 行业定位
case materialList = 3 // 资料清单
case documentList = 4 // 文书清单
case improveScheme = 5 // 提升方案
case modifyInfo = 6 // 修改信息
case improveTarget = 7 // 提升目标
case hkRequireList = 8 // 港府要求
}
class YHSchemeItem {
var type: YHSchemeItemType
init(type: YHSchemeItemType) {
self.type = type
}
}
class YHMyNewSchemeViewController: YHBaseViewController { class YHMyNewSchemeViewController: YHBaseViewController {
var items: [String] = ["", ""] var items: [[YHSchemeItem]] = []
lazy var tableView: UITableView = { lazy var tableView: UITableView = {
...@@ -26,10 +44,49 @@ class YHMyNewSchemeViewController: YHBaseViewController { ...@@ -26,10 +44,49 @@ class YHMyNewSchemeViewController: YHBaseViewController {
tableView.register(UITableViewCell.self, forCellReuseIdentifier: "UITableViewCell") tableView.register(UITableViewCell.self, forCellReuseIdentifier: "UITableViewCell")
tableView.register(YHComprehensiveEvaluationCell.self, forCellReuseIdentifier: YHComprehensiveEvaluationCell.cellReuseIdentifier) tableView.register(YHComprehensiveEvaluationCell.self, forCellReuseIdentifier: YHComprehensiveEvaluationCell.cellReuseIdentifier)
tableView.register(YHHKRequiredItemListCell.self, forCellReuseIdentifier: YHHKRequiredItemListCell.cellReuseIdentifier) tableView.register(YHHKRequiredItemListCell.self, forCellReuseIdentifier: YHHKRequiredItemListCell.cellReuseIdentifier)
tableView.register(YHIndustryLocationCell.self, forCellReuseIdentifier: YHIndustryLocationCell.cellReuseIdentifier)
tableView.register(YHMaterialListCell.self, forCellReuseIdentifier: YHMaterialListCell.cellReuseIdentifier)
tableView.register(YHDocumentListCell.self, forCellReuseIdentifier: YHDocumentListCell.cellReuseIdentifier)
tableView.register(YHImproveSchemeCell.self, forCellReuseIdentifier: YHImproveSchemeCell.cellReuseIdentifier)
tableView.register(YHImproveTargetCell.self, forCellReuseIdentifier: YHImproveTargetCell.cellReuseIdentifier)
tableView.bounces = false tableView.bounces = false
tableView.tableFooterView = bottomLogoView
return tableView return tableView
}() }()
lazy var bottomLogoView: UIView = {
let view = UIView(frame: CGRectMake(0, 0, KScreenWidth, 66+k_Height_safeAreaInsetsBottom()))
let leftImgV = UIImageView(image: UIImage(named: "my_scheme_logo_line_left"))
let rightImgV = UIImageView(image: UIImage(named: "my_scheme_logo_line_right"))
let logoImgV = UIImageView(image: UIImage(named: "my_scheme_logo"))
view.addSubview(leftImgV)
view.addSubview(rightImgV)
view.addSubview(logoImgV)
logoImgV.snp.makeConstraints { make in
make.width.equalTo(90)
make.height.equalTo(17)
make.top.equalTo(32)
make.bottom.equalTo(-16-k_Height_safeAreaInsetsBottom())
make.centerX.equalToSuperview()
}
leftImgV.snp.makeConstraints { make in
make.height.equalTo(2.75)
make.left.equalTo(11)
make.right.equalTo(logoImgV.snp.left).offset(-10)
make.bottom.equalTo(logoImgV.snp.bottom).offset(-3)
}
rightImgV.snp.makeConstraints { make in
make.height.equalTo(2.75)
make.right.equalTo(-11)
make.left.equalTo(logoImgV.snp.right).offset(10)
make.bottom.equalTo(logoImgV.snp.bottom).offset(-3)
}
return view
}()
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
...@@ -45,6 +102,34 @@ class YHMyNewSchemeViewController: YHBaseViewController { ...@@ -45,6 +102,34 @@ class YHMyNewSchemeViewController: YHBaseViewController {
make.top.equalTo(k_Height_NavigationtBarAndStatuBar) make.top.equalTo(k_Height_NavigationtBarAndStatuBar)
} }
tableView.reloadData() tableView.reloadData()
requestData()
}
func requestData() {
items.removeAll()
let isPass = true
if isPass {
let item1 = YHSchemeItem(type: .evaluate)
let item2 = YHSchemeItem(type: .hkRequireList)
let item3 = YHSchemeItem(type: .industryLocation)
let item4 = YHSchemeItem(type: .materialList)
let item5 = YHSchemeItem(type: .documentList)
let item6 = YHSchemeItem(type: .improveScheme)
let arr1: [YHSchemeItem] = [item1, item2, item3, item4, item5, item6]
items.append(arr1)
} else {
let item01 = YHSchemeItem(type: .evaluate)
let item02 = YHSchemeItem(type: .hkRequireList)
let item03 = YHSchemeItem(type: .modifyInfo)
let arr1: [YHSchemeItem] = [item01, item02, item03]
let item11 = YHSchemeItem(type: .improveTarget)
let arr2: [YHSchemeItem] = [item11]
items.append(contentsOf: [arr1, arr2])
}
self.tableView.reloadData()
} }
} }
...@@ -52,25 +137,60 @@ class YHMyNewSchemeViewController: YHBaseViewController { ...@@ -52,25 +137,60 @@ class YHMyNewSchemeViewController: YHBaseViewController {
extension YHMyNewSchemeViewController : UITableViewDelegate, UITableViewDataSource { extension YHMyNewSchemeViewController : UITableViewDelegate, UITableViewDataSource {
func numberOfSections(in tableView: UITableView) -> Int { func numberOfSections(in tableView: UITableView) -> Int {
return 1 return items.count
} }
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return items.count if 0 <= section, section < items.count {
let arr = items[section]
return arr.count
}
return 0
} }
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
if 0 <= indexPath.row && indexPath.row < items.count { if 0 <= indexPath.section, indexPath.section < items.count {
let model = items[indexPath.section] let arr = 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 if 0 <= indexPath.row && indexPath.row < arr.count {
return listCell let item = arr[indexPath.row]
if item.type == .evaluate {
let evaluationCell = tableView.dequeueReusableCell(withIdentifier: YHComprehensiveEvaluationCell.cellReuseIdentifier, for: indexPath) as! YHComprehensiveEvaluationCell
return evaluationCell
}
if item.type == .hkRequireList {
let listCell = tableView.dequeueReusableCell(withIdentifier: YHHKRequiredItemListCell.cellReuseIdentifier, for: indexPath) as! YHHKRequiredItemListCell
return listCell
}
if item.type == .industryLocation {
let listCell = tableView.dequeueReusableCell(withIdentifier: YHIndustryLocationCell.cellReuseIdentifier, for: indexPath) as! YHIndustryLocationCell
return listCell
}
if item.type == .materialList {
let listCell = tableView.dequeueReusableCell(withIdentifier: YHMaterialListCell.cellReuseIdentifier, for: indexPath) as! YHMaterialListCell
return listCell
}
if item.type == .documentList {
let listCell = tableView.dequeueReusableCell(withIdentifier: YHDocumentListCell.cellReuseIdentifier, for: indexPath) as! YHDocumentListCell
return listCell
}
if item.type == .improveScheme {
let listCell = tableView.dequeueReusableCell(withIdentifier: YHImproveSchemeCell.cellReuseIdentifier, for: indexPath) as! YHImproveSchemeCell
return listCell
}
if item.type == .improveTarget {
let listCell = tableView.dequeueReusableCell(withIdentifier: YHImproveTargetCell.cellReuseIdentifier, for: indexPath) as! YHImproveTargetCell
return listCell
}
}
} }
let defaultCell = tableView.dequeueReusableCell(withIdentifier: "UITableViewCell", for: indexPath) let defaultCell = tableView.dequeueReusableCell(withIdentifier: "UITableViewCell", for: indexPath)
......
//
// YHDocumentListCell.swift
// galaxy
//
// Created by Dufet on 2024/11/16.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
import AttributedString
class YHDocumentListCell: UITableViewCell {
static let cellReuseIdentifier = "YHDocumentListCell"
lazy var whiteContentView: UIView = {
let view = UIView()
view.backgroundColor = .white
view.clipsToBounds = true
return view
}()
lazy var dotLine: YHDashLineView = {
let view = YHDashLineView(strokeColor: UIColor.init(hex: 0xF7F2ED).cgColor, lineWidth: 0.8, lineDashPattern: [3, 3])
return view
}()
lazy var markImgV: UIImageView = {
let v = UIImageView(image: UIImage(named: "my_scheme_mark"))
return v
}()
lazy var titleLabel: UILabel = {
let label = UILabel()
label.font = UIFont.PFSC_B(ofSize: 17)
label.textColor = .mainTextColor
label.text = "文书清单"
return label
}()
lazy var tips1Label: UILabel = {
let label = UILabel()
label.numberOfLines = 0
let aa: ASAttributedString = .init("您的文书清单,包括推荐信、赴港计划书。文书编写后会发送至APP【我的文书】,与您一起沟通定稿,预计", .font(UIFont.PFSC_R(ofSize: 14)), .foreground(UIColor.mainTextColor))
let bb: ASAttributedString = .init("3周-4周", .font(UIFont.PFSC_M(ofSize: 14)),.foreground(UIColor.init(hex: 0xD48638)))
let cc: ASAttributedString = .init("左右完成,需要咱们共同配合完成噢", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor.mainTextColor))
label.attributed.text = aa+bb+cc
return label
}()
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
contentView.addSubview(whiteContentView)
whiteContentView.addSubview(dotLine)
whiteContentView.addSubview(markImgV)
whiteContentView.addSubview(titleLabel)
whiteContentView.addSubview(tips1Label)
whiteContentView.snp.makeConstraints { make in
make.left.equalTo(8.5)
make.right.equalTo(-8.5)
make.top.bottom.equalToSuperview()
}
dotLine.snp.makeConstraints { make in
make.left.equalTo(24)
make.right.equalTo(-24)
make.top.equalTo(0)
make.height.equalTo(1)
}
markImgV.snp.makeConstraints { make in
make.left.equalTo(24)
make.width.equalTo(4)
make.height.equalTo(16)
make.centerY.equalTo(titleLabel)
}
titleLabel.snp.makeConstraints { make in
make.top.equalTo(26)
make.height.equalTo(24)
make.left.equalTo(markImgV.snp.right).offset(8)
make.right.equalTo(-24)
}
tips1Label.snp.makeConstraints { make in
make.left.equalTo(24)
make.right.equalTo(-24)
make.top.equalTo(titleLabel.snp.bottom).offset(18)
make.bottom.equalTo(-26)
}
}
}
...@@ -139,7 +139,8 @@ class YHHKRequiredItemListCell: UITableViewCell { ...@@ -139,7 +139,8 @@ class YHHKRequiredItemListCell: UITableViewCell {
listView.snp.makeConstraints { make in listView.snp.makeConstraints { make in
make.left.equalTo(32) make.left.equalTo(32)
make.right.equalTo(-32) make.right.equalTo(-32)
make.top.bottom.equalToSuperview() make.top.equalToSuperview()
make.bottom.equalTo(-26)
} }
topView.snp.makeConstraints { make in topView.snp.makeConstraints { make in
......
//
// YHImproveRequireItemView.swift
// galaxy
//
// Created by Dufet on 2024/11/16.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
import AttributedString
class YHImproveItem {
var title: String = ""
var isSelect: Bool = false
init(title: String, isSelect: Bool) {
self.title = title
self.isSelect = isSelect
}
}
class YHImproveRequireItemView: UIView {
var item: YHImproveItem = YHImproveItem(title: "", isSelect: false) {
didSet {
let a: ASAttributedString = .init(string:"港府要求:" , .font(UIFont.PFSC_M(ofSize: 14)), .foreground(UIColor.mainTextColor))
let b: ASAttributedString = .init(string: item.title , .font(UIFont.PFSC_R(ofSize: 14)), .foreground(UIColor.mainTextColor))
titleLabel.attributed.text = a + b
isSelect = item.isSelect
}
}
var isSelect: Bool = false {
didSet {
self.backgroundColor = isSelect ? .init(hex: 0xFBF7F3) : .init(hex: 0xF8F9FB)
self.selectImgV.image = UIImage(named: isSelect ? "my_shceme_improve_select" : "my_shceme_improve_unselect")
self.layer.borderColor = isSelect ? UIColor.init(hex: 0xD48638).cgColor : nil
self.layer.borderWidth = isSelect ? 1.0: 0.0
}
}
lazy var selectImgV = {
let imgV = UIImageView(image: UIImage(named: "my_shceme_improve_unselect"))
return imgV
}()
lazy var titleLabel: UILabel = {
let label = UILabel()
label.numberOfLines = 0
label.font = UIFont.PFSC_R(ofSize: 13)
label.textColor = .mainTextColor
return label
}()
override init(frame: CGRect) {
super.init(frame: .zero)
setupUI()
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
func setupUI() {
let tap = UITapGestureRecognizer(target: self, action: #selector(tap))
self.addGestureRecognizer(tap)
self.backgroundColor = .init(hex: 0xF8F9FB)
self.layer.cornerRadius = 4.0
self.clipsToBounds = true
self.addSubview(selectImgV)
self.addSubview(titleLabel)
selectImgV.snp.makeConstraints { make in
make.width.height.equalTo(14)
make.left.equalTo(12)
make.centerY.equalToSuperview()
}
titleLabel.snp.makeConstraints { make in
make.top.equalTo(12)
make.bottom.equalTo(-12)
make.right.equalTo(-12)
make.left.equalTo(selectImgV.snp.right).offset(12)
}
}
@objc func tap() {
item.isSelect = !item.isSelect
isSelect = item.isSelect
}
}
//
// YHImproveSchemeCell.swift
// galaxy
//
// Created by Dufet on 2024/11/16.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
import AttributedString
class YHImproveSchemeCell: UITableViewCell {
static let cellReuseIdentifier = "YHImproveSchemeCell"
lazy var whiteContentView: UIView = {
let view = UIView()
view.backgroundColor = .white
view.clipsToBounds = true
return view
}()
lazy var dotLine: YHDashLineView = {
let view = YHDashLineView(strokeColor: UIColor.init(hex: 0xF7F2ED).cgColor, lineWidth: 0.8, lineDashPattern: [3, 3])
return view
}()
lazy var markImgV: UIImageView = {
let v = UIImageView(image: UIImage(named: "my_scheme_mark"))
return v
}()
lazy var titleLabel: UILabel = {
let label = UILabel()
label.font = UIFont.PFSC_B(ofSize: 17)
label.textColor = .mainTextColor
label.text = "提升方案"
return label
}()
lazy var tips1Label: UILabel = {
let label = UILabel()
label.numberOfLines = 0
let aa: ASAttributedString = .init("已根据港府甄选条件,为您规划后续提升方案,您可根据实际情况进行提升~", .font(UIFont.PFSC_R(ofSize: 14)), .foreground(UIColor.mainTextColor))
label.attributed.text = aa
return label
}()
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
contentView.addSubview(whiteContentView)
whiteContentView.addSubview(dotLine)
whiteContentView.addSubview(markImgV)
whiteContentView.addSubview(titleLabel)
whiteContentView.addSubview(tips1Label)
whiteContentView.snp.makeConstraints { make in
make.left.equalTo(8.5)
make.right.equalTo(-8.5)
make.top.bottom.equalToSuperview()
}
dotLine.snp.makeConstraints { make in
make.left.equalTo(24)
make.right.equalTo(-24)
make.top.equalTo(0)
make.height.equalTo(1)
}
markImgV.snp.makeConstraints { make in
make.left.equalTo(24)
make.width.equalTo(4)
make.height.equalTo(16)
make.centerY.equalTo(titleLabel)
}
titleLabel.snp.makeConstraints { make in
make.top.equalTo(26)
make.height.equalTo(24)
make.left.equalTo(markImgV.snp.right).offset(8)
make.right.equalTo(-24)
}
tips1Label.snp.makeConstraints { make in
make.left.equalTo(24)
make.right.equalTo(-24)
make.top.equalTo(titleLabel.snp.bottom).offset(18)
make.bottom.equalTo(-32)
}
}
}
//
// YHImproveTargetCell.swift
// galaxy
//
// Created by Dufet on 2024/11/16.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
import AttributedString
class YHImproveTargetCell: UITableViewCell {
static let cellReuseIdentifier = "YHImproveTargetCell"
var arr:[YHImproveItem] = {
let a = YHImproveItem(title: "申请人拥有不少于两年相当于学位程度或专家水平的国际工作经验", isSelect: false)
let b = YHImproveItem(title: "申请人现时是否拥有一家业务实体,而该业务实体在紧接申请前一年,全年盈利达港币500万元或以上(或等值外币", isSelect: false)
let c = YHImproveItem(title: "申请人是否具备良好的英文书写及口语能力", isSelect: false)
let d = YHImproveItem(title: "申请人是否拥有不少于五年相当于学位程度或专业水平的工作经验", isSelect: false)
return [a, b, c, d]
}()
var requireArr:[YHImproveItem] = [] {
didSet {
updateRequireArrUI()
}
}
func updateRequireArrUI() {
listView.removeSubviews()
var lastView: YHImproveRequireItemView? = nil
for (index, item) in requireArr.enumerated() {
let view = YHImproveRequireItemView(frame: .zero)
view.item = item
listView.addSubview(view)
view.snp.makeConstraints { make in
make.left.right.equalToSuperview()
if let lastView = lastView {
make.top.equalTo(lastView.snp.bottom).offset(16)
} else {
make.top.equalTo(0)
}
if index == requireArr.count-1 {
make.bottom.equalTo(0)
}
}
lastView = view
}
}
lazy var whiteContentView: UIView = {
let view = UIView()
view.backgroundColor = .white
view.layer.cornerRadius = 6
view.clipsToBounds = true
return view
}()
lazy var topBgView: UIImageView = {
let imgV = UIImageView(image: UIImage(named: "my_scheme_improve_bg"))
return imgV
}()
lazy var markImgV: UIImageView = {
let v = UIImageView(image: UIImage(named: "my_scheme_mark"))
return v
}()
lazy var improveLabel: UILabel = {
let label = UILabel()
label.font = UIFont.PFSC_B(ofSize: 17)
label.textColor = .mainTextColor
label.text = "提升目标"
return label
}()
lazy var optionsLabel: UILabel = {
let optionsLabel = UILabel()
optionsLabel.text = "多选"
optionsLabel.textAlignment = .center
optionsLabel.font = .PFSC_M(ofSize: 11)
optionsLabel.textColor = .init(hex: 0x949494)
optionsLabel.layer.cornerRadius = 4.0
optionsLabel.clipsToBounds = true
optionsLabel.backgroundColor = .init(hex: 0x949494, alpha: 0.12)
optionsLabel.frame = CGRectMake(0, 0, 30, 16)
return optionsLabel
}()
private lazy var titleLabel : UITextView = {
let lable0 = UITextView()
lable0.isScrollEnabled = false
lable0.isEditable = false
lable0.isSelectable = false
lable0.backgroundColor = .clear
let title: ASAttributedString = .init(string:"请选择您的提升目标,我们将为您生成专属提升方案~" , .font(UIFont.PFSC_M(ofSize: 15)), .foreground(UIColor.mainTextColor))
var options: ASAttributedString = " \(.view(optionsLabel, .original(.center)))"
lable0.attributed.text = title + options
return lable0
}()
lazy var listView: UIView = {
let view = UIView()
return view
}()
lazy var bottomBtn: UIButton = {
let btn = UIButton()
btn.backgroundColor = .init(hex: 0xD48638)
btn.setTitleColor(.white, for: .normal)
btn.titleLabel?.font = .PFSC_M(ofSize: 16)
btn.layer.cornerRadius = 3
btn.setTitle("提交,获取详细方案", for: .normal)
return btn
}()
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
contentView.addSubview(whiteContentView)
whiteContentView.addSubview(topBgView)
whiteContentView.addSubview(markImgV)
whiteContentView.addSubview(improveLabel)
whiteContentView.addSubview(titleLabel)
whiteContentView.addSubview(listView)
whiteContentView.addSubview(bottomBtn)
whiteContentView.snp.makeConstraints { make in
make.left.equalTo(8.5)
make.right.equalTo(-8.5)
make.top.bottom.equalToSuperview()
}
topBgView.snp.makeConstraints { make in
make.left.top.right.equalToSuperview()
make.height.equalTo(105)
}
markImgV.snp.makeConstraints { make in
make.left.equalTo(24)
make.width.equalTo(4)
make.height.equalTo(16)
make.centerY.equalTo(improveLabel)
}
improveLabel.snp.makeConstraints { make in
make.top.equalTo(24)
make.height.equalTo(24)
make.left.equalTo(markImgV.snp.right).offset(8)
make.right.equalTo(-24)
}
titleLabel.snp.makeConstraints { make in
make.left.equalTo(24)
make.right.equalTo(-24)
make.top.equalTo(improveLabel.snp.bottom).offset(16)
}
listView.snp.makeConstraints { make in
make.left.equalTo(24)
make.right.equalTo(-24)
make.top.equalTo(titleLabel.snp.bottom).offset(16)
}
bottomBtn.snp.makeConstraints { make in
make.left.equalTo(24)
make.right.equalTo(-24)
make.top.equalTo(listView.snp.bottom).offset(24)
make.bottom.equalTo(-24)
make.height.equalTo(46)
}
requireArr = arr
}
}
//
// YHIndustryLocationCell.swift
// galaxy
//
// Created by Dufet on 2024/11/16.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
class YHIndustryLocationCell: UITableViewCell {
static let cellReuseIdentifier = "YHIndustryLocationCell"
lazy var whiteContentView: UIView = {
let view = UIView()
view.backgroundColor = .white
view.clipsToBounds = true
return view
}()
lazy var dotLine: YHDashLineView = {
let view = YHDashLineView(strokeColor: UIColor.init(hex: 0xF7F2ED).cgColor, lineWidth: 0.8, lineDashPattern: [3, 3])
return view
}()
lazy var markImgV: UIImageView = {
let v = UIImageView(image: UIImage(named: "my_scheme_mark"))
return v
}()
lazy var titleLabel: UILabel = {
let label = UILabel()
label.font = UIFont.PFSC_B(ofSize: 17)
label.textColor = .mainTextColor
label.text = "行业定位"
return label
}()
lazy var tips1Label: UILabel = {
let label = UILabel()
label.font = UIFont.PFSC_R(ofSize: 14)
label.textColor = .mainTextColor
label.numberOfLines = 0
label.text = "根据您目前给来的材料,初步建议您申请的行业:"
return label
}()
lazy var tips2Label: UILabel = {
let label = UILabel()
label.font = UIFont.PFSC_B(ofSize: 16)
label.textColor = .init(hex: 0xD48638)
label.numberOfLines = 0
label.text = "其他(环境科学、HSE)"
return label
}()
lazy var tips3Label: UILabel = {
let label = UILabel()
label.font = UIFont.PFSC_R(ofSize: 14)
label.textColor = .init(hex: 0x8993A2)
label.numberOfLines = 0
label.text = "后续会根据您文书准备的补充情况来最终确定,如有修改会再告知您。"
return label
}()
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
contentView.addSubview(whiteContentView)
whiteContentView.addSubview(dotLine)
whiteContentView.addSubview(markImgV)
whiteContentView.addSubview(titleLabel)
whiteContentView.addSubview(tips1Label)
whiteContentView.addSubview(tips2Label)
whiteContentView.addSubview(tips3Label)
whiteContentView.snp.makeConstraints { make in
make.left.equalTo(8.5)
make.right.equalTo(-8.5)
make.top.bottom.equalToSuperview()
}
dotLine.snp.makeConstraints { make in
make.left.equalTo(24)
make.right.equalTo(-24)
make.top.equalTo(0)
make.height.equalTo(1)
}
markImgV.snp.makeConstraints { make in
make.left.equalTo(24)
make.width.equalTo(4)
make.height.equalTo(16)
make.centerY.equalTo(titleLabel)
}
titleLabel.snp.makeConstraints { make in
make.top.equalTo(26)
make.height.equalTo(24)
make.left.equalTo(markImgV.snp.right).offset(8)
make.right.equalTo(-24)
}
tips1Label.snp.makeConstraints { make in
make.left.equalTo(24)
make.right.equalTo(-24)
make.top.equalTo(titleLabel.snp.bottom).offset(16)
}
tips2Label.snp.makeConstraints { make in
make.left.equalTo(24)
make.right.equalTo(-24)
make.top.equalTo(tips1Label.snp.bottom).offset(6)
}
tips3Label.snp.makeConstraints { make in
make.left.equalTo(24)
make.right.equalTo(-24)
make.top.equalTo(tips2Label.snp.bottom).offset(6)
make.bottom.equalTo(-26)
}
}
}
//
// YHMaterialListCell.swift
// galaxy
//
// Created by Dufet on 2024/11/16.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
import AttributedString
class YHMaterialListCell: UITableViewCell {
static let cellReuseIdentifier = "YHMaterialListCell"
lazy var whiteContentView: UIView = {
let view = UIView()
view.backgroundColor = .white
view.clipsToBounds = true
return view
}()
lazy var dotLine: YHDashLineView = {
let view = YHDashLineView(strokeColor: UIColor.init(hex: 0xF7F2ED).cgColor, lineWidth: 0.8, lineDashPattern: [3, 3])
return view
}()
lazy var markImgV: UIImageView = {
let v = UIImageView(image: UIImage(named: "my_scheme_mark"))
return v
}()
lazy var titleLabel: UILabel = {
let label = UILabel()
label.font = UIFont.PFSC_B(ofSize: 17)
label.textColor = .mainTextColor
label.text = "资料清单"
return label
}()
lazy var tips1Label: UILabel = {
let label = UILabel()
label.numberOfLines = 0
let aa: ASAttributedString = .init("这是您的资料清单,请您前往查看。请您在", .font(UIFont.PFSC_R(ofSize: 14)), .foreground(UIColor.mainTextColor))
let bb: ASAttributedString = .init("1-2周内", .font(UIFont.PFSC_M(ofSize: 14)),.foreground(UIColor.init(hex: 0xD48638)))
let cc: ASAttributedString = .init("上传基础类证件哦,需要重新办理的可以晚些提供。需要注意的点如下:", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor.mainTextColor))
label.attributed.text = aa+bb+cc
return label
}()
lazy var tips2Label: UILabel = {
let label = UILabel()
label.font = UIFont.PFSC_R(ofSize: 14)
label.textColor = .init(hex: 0x8993A2)
label.numberOfLines = 0
label.text = "(1)港澳通如未办理,请优先安排办理;\n(2)如为国内学校,需准备由教育部学信网出具的学位认证报告;\n(3)如为海外学校,需准备官方成绩单和第三方机构学位认证文件;\n(4)赴港同意书,在获批后1个月内,由您获批时在职公司盖章出具即可(目前不需要提供)。"
return label
}()
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
contentView.addSubview(whiteContentView)
whiteContentView.addSubview(dotLine)
whiteContentView.addSubview(markImgV)
whiteContentView.addSubview(titleLabel)
whiteContentView.addSubview(tips1Label)
whiteContentView.addSubview(tips2Label)
whiteContentView.snp.makeConstraints { make in
make.left.equalTo(8.5)
make.right.equalTo(-8.5)
make.top.bottom.equalToSuperview()
}
dotLine.snp.makeConstraints { make in
make.left.equalTo(24)
make.right.equalTo(-24)
make.top.equalTo(0)
make.height.equalTo(1)
}
markImgV.snp.makeConstraints { make in
make.left.equalTo(24)
make.width.equalTo(4)
make.height.equalTo(16)
make.centerY.equalTo(titleLabel)
}
titleLabel.snp.makeConstraints { make in
make.top.equalTo(26)
make.height.equalTo(24)
make.left.equalTo(markImgV.snp.right).offset(8)
make.right.equalTo(-24)
}
tips1Label.snp.makeConstraints { make in
make.left.equalTo(24)
make.right.equalTo(-24)
make.top.equalTo(titleLabel.snp.bottom).offset(18)
}
tips2Label.snp.makeConstraints { make in
make.left.equalTo(24)
make.right.equalTo(-24)
make.top.equalTo(tips1Label.snp.bottom).offset(6)
make.bottom.equalTo(-26)
}
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Rectangle 7416.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Rectangle 7416-1.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "yinhe-1@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "yinhe-1@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Vector 513@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Vector 513@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Vector 512@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Vector 512@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Group 33333990.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Group 33333990-1.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Rectangle 2956.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Rectangle 2956-1.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