Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
8c20fe22
Commit
8c20fe22
authored
Sep 10, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 续签
parent
13877534
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
220 additions
and
184 deletions
+220
-184
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+12
-8
YHResignMaterialListVC.swift
...signMaterialManage(续期资料管理)/C/YHResignMaterialListVC.swift
+191
-0
YHResignMaterialUploadVC.swift
...gnMaterialManage(续期资料管理)/C/YHResignMaterialUploadVC.swift
+9
-170
YHResinMaterialManageContainerVC.swift
...alManage(续期资料管理)/C/YHResinMaterialManageContainerVC.swift
+5
-5
YHResignMaterialCell.swift
...ResignMaterialManage(续期资料管理)/V/YHResignMaterialCell.swift
+3
-1
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
8c20fe22
...
@@ -153,9 +153,10 @@
...
@@ -153,9 +153,10 @@
044867B42BA1953B00DFAD4A
/* YHCertificateFilterView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
044867B32BA1953B00DFAD4A
/* YHCertificateFilterView.swift */
;
};
044867B42BA1953B00DFAD4A
/* YHCertificateFilterView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
044867B32BA1953B00DFAD4A
/* YHCertificateFilterView.swift */
;
};
044867B62BA1A03800DFAD4A
/* YHCertificateFilterItemCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
044867B52BA1A03800DFAD4A
/* YHCertificateFilterItemCell.swift */
;
};
044867B62BA1A03800DFAD4A
/* YHCertificateFilterItemCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
044867B52BA1A03800DFAD4A
/* YHCertificateFilterItemCell.swift */
;
};
044867B82BA1C75700DFAD4A
/* YHCertificateUploadFailTipsView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
044867B72BA1C75700DFAD4A
/* YHCertificateUploadFailTipsView.swift */
;
};
044867B82BA1C75700DFAD4A
/* YHCertificateUploadFailTipsView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
044867B72BA1C75700DFAD4A
/* YHCertificateUploadFailTipsView.swift */
;
};
0449EEE92C8EEB1E00A397FD
/* YHResinMaterialManage
ListVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0449EEE82C8EEB1E00A397FD
/* YHResinMaterialManageList
VC.swift */
;
};
0449EEE92C8EEB1E00A397FD
/* YHResinMaterialManage
ContainerVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0449EEE82C8EEB1E00A397FD
/* YHResinMaterialManageContainer
VC.swift */
;
};
0449EEEB2C8EF2B700A397FD
/* YHResignMaterial
UploadVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0449EEEA2C8EF2B700A397FD
/* YHResignMaterialUpload
VC.swift */
;
};
0449EEEB2C8EF2B700A397FD
/* YHResignMaterial
ListVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0449EEEA2C8EF2B700A397FD
/* YHResignMaterialList
VC.swift */
;
};
0449EEEE2C8EF8CB00A397FD
/* YHResignMaterialCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0449EEED2C8EF8CB00A397FD
/* YHResignMaterialCell.swift */
;
};
0449EEEE2C8EF8CB00A397FD
/* YHResignMaterialCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0449EEED2C8EF8CB00A397FD
/* YHResignMaterialCell.swift */
;
};
0449EEF02C902A4100A397FD
/* YHResignMaterialUploadVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0449EEEF2C902A4100A397FD
/* YHResignMaterialUploadVC.swift */
;
};
044BACC72BCFA58E00184C64
/* YHNoDataTipsView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
044BACC62BCFA58E00184C64
/* YHNoDataTipsView.swift */
;
};
044BACC72BCFA58E00184C64
/* YHNoDataTipsView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
044BACC62BCFA58E00184C64
/* YHNoDataTipsView.swift */
;
};
044CF8D42BB6BCF700008CE8
/* YHSignatureUploadTableViewCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
044CF8D32BB6BCF700008CE8
/* YHSignatureUploadTableViewCell.swift */
;
};
044CF8D42BB6BCF700008CE8
/* YHSignatureUploadTableViewCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
044CF8D32BB6BCF700008CE8
/* YHSignatureUploadTableViewCell.swift */
;
};
044CF8D62BBA57DC00008CE8
/* YHFailPromptView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
044CF8D52BBA57DC00008CE8
/* YHFailPromptView.swift */
;
};
044CF8D62BBA57DC00008CE8
/* YHFailPromptView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
044CF8D52BBA57DC00008CE8
/* YHFailPromptView.swift */
;
};
...
@@ -920,9 +921,10 @@
...
@@ -920,9 +921,10 @@
044867B32BA1953B00DFAD4A
/* YHCertificateFilterView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCertificateFilterView.swift
;
sourceTree
=
"<group>"
;
};
044867B32BA1953B00DFAD4A
/* YHCertificateFilterView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCertificateFilterView.swift
;
sourceTree
=
"<group>"
;
};
044867B52BA1A03800DFAD4A
/* YHCertificateFilterItemCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCertificateFilterItemCell.swift
;
sourceTree
=
"<group>"
;
};
044867B52BA1A03800DFAD4A
/* YHCertificateFilterItemCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCertificateFilterItemCell.swift
;
sourceTree
=
"<group>"
;
};
044867B72BA1C75700DFAD4A
/* YHCertificateUploadFailTipsView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCertificateUploadFailTipsView.swift
;
sourceTree
=
"<group>"
;
};
044867B72BA1C75700DFAD4A
/* YHCertificateUploadFailTipsView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCertificateUploadFailTipsView.swift
;
sourceTree
=
"<group>"
;
};
0449EEE82C8EEB1E00A397FD
/* YHResinMaterialManage
ListVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHResinMaterialManageList
VC.swift
;
sourceTree
=
"<group>"
;
};
0449EEE82C8EEB1E00A397FD
/* YHResinMaterialManage
ContainerVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHResinMaterialManageContainer
VC.swift
;
sourceTree
=
"<group>"
;
};
0449EEEA2C8EF2B700A397FD
/* YHResignMaterial
UploadVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHResignMaterialUpload
VC.swift
;
sourceTree
=
"<group>"
;
};
0449EEEA2C8EF2B700A397FD
/* YHResignMaterial
ListVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHResignMaterialList
VC.swift
;
sourceTree
=
"<group>"
;
};
0449EEED2C8EF8CB00A397FD
/* YHResignMaterialCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHResignMaterialCell.swift
;
sourceTree
=
"<group>"
;
};
0449EEED2C8EF8CB00A397FD
/* YHResignMaterialCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHResignMaterialCell.swift
;
sourceTree
=
"<group>"
;
};
0449EEEF2C902A4100A397FD
/* YHResignMaterialUploadVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHResignMaterialUploadVC.swift
;
sourceTree
=
"<group>"
;
};
044BACC62BCFA58E00184C64
/* YHNoDataTipsView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHNoDataTipsView.swift
;
sourceTree
=
"<group>"
;
};
044BACC62BCFA58E00184C64
/* YHNoDataTipsView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHNoDataTipsView.swift
;
sourceTree
=
"<group>"
;
};
044CF8D32BB6BCF700008CE8
/* YHSignatureUploadTableViewCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHSignatureUploadTableViewCell.swift
;
sourceTree
=
"<group>"
;
};
044CF8D32BB6BCF700008CE8
/* YHSignatureUploadTableViewCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHSignatureUploadTableViewCell.swift
;
sourceTree
=
"<group>"
;
};
044CF8D52BBA57DC00008CE8
/* YHFailPromptView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFailPromptView.swift
;
sourceTree
=
"<group>"
;
};
044CF8D52BBA57DC00008CE8
/* YHFailPromptView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFailPromptView.swift
;
sourceTree
=
"<group>"
;
};
...
@@ -1948,8 +1950,9 @@
...
@@ -1948,8 +1950,9 @@
0449EEE72C8EEA8A00A397FD
/* C */
=
{
0449EEE72C8EEA8A00A397FD
/* C */
=
{
isa
=
PBXGroup
;
isa
=
PBXGroup
;
children
=
(
children
=
(
0449EEE82C8EEB1E00A397FD
/* YHResinMaterialManageListVC.swift */
,
0449EEE82C8EEB1E00A397FD
/* YHResinMaterialManageContainerVC.swift */
,
0449EEEA2C8EF2B700A397FD
/* YHResignMaterialUploadVC.swift */
,
0449EEEA2C8EF2B700A397FD
/* YHResignMaterialListVC.swift */
,
0449EEEF2C902A4100A397FD
/* YHResignMaterialUploadVC.swift */
,
);
);
path
=
C
;
path
=
C
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -4531,6 +4534,7 @@
...
@@ -4531,6 +4534,7 @@
04FA8B302C0874CA00ABE43F
/* YHOneKeyLoginViewModel.swift in Sources */
,
04FA8B302C0874CA00ABE43F
/* YHOneKeyLoginViewModel.swift in Sources */
,
04256E112C75BD2700A37BA4
/* YHVisaPaymentListModel.swift in Sources */
,
04256E112C75BD2700A37BA4
/* YHVisaPaymentListModel.swift in Sources */
,
04A7BD0F2BA41C9800BD35A2
/* YHMyDocumentsModel.swift in Sources */
,
04A7BD0F2BA41C9800BD35A2
/* YHMyDocumentsModel.swift in Sources */
,
0449EEF02C902A4100A397FD
/* YHResignMaterialUploadVC.swift in Sources */
,
04174D642BCD52BD000BA46D
/* YHDeviceInfoViewController.swift in Sources */
,
04174D642BCD52BD000BA46D
/* YHDeviceInfoViewController.swift in Sources */
,
0472E25E2C534723008EAB6E
/* YHLifeDetailViewController.swift in Sources */
,
0472E25E2C534723008EAB6E
/* YHLifeDetailViewController.swift in Sources */
,
A5ACE92E2B4564F7002C94D2
/* YHValidateCodeInputView.swift in Sources */
,
A5ACE92E2B4564F7002C94D2
/* YHValidateCodeInputView.swift in Sources */
,
...
@@ -4626,7 +4630,7 @@
...
@@ -4626,7 +4630,7 @@
A5ACE9312B4564F7002C94D2
/* YHPersonalCenterCell.swift in Sources */
,
A5ACE9312B4564F7002C94D2
/* YHPersonalCenterCell.swift in Sources */
,
0430E6562C7342AB000511E2
/* YHAdopterIncomeFileCountTableViewCell.swift in Sources */
,
0430E6562C7342AB000511E2
/* YHAdopterIncomeFileCountTableViewCell.swift in Sources */
,
045EEE9A2B9F171A0022A143
/* YHWorkIntroductionViewModel.swift in Sources */
,
045EEE9A2B9F171A0022A143
/* YHWorkIntroductionViewModel.swift in Sources */
,
0449EEEB2C8EF2B700A397FD
/* YHResignMaterial
Upload
VC.swift in Sources */
,
0449EEEB2C8EF2B700A397FD
/* YHResignMaterial
List
VC.swift in Sources */
,
044D0C1C2C22C30B00C5CF5E
/* YHEditSchoolViewController.swift in Sources */
,
044D0C1C2C22C30B00C5CF5E
/* YHEditSchoolViewController.swift in Sources */
,
A5CA3F562C74850200EB22F5
/* YHUploadCertificateDetailVC.swift in Sources */
,
A5CA3F562C74850200EB22F5
/* YHUploadCertificateDetailVC.swift in Sources */
,
A5ACE9532B4564F7002C94D2
/* YHBaseViewController.swift in Sources */
,
A5ACE9532B4564F7002C94D2
/* YHBaseViewController.swift in Sources */
,
...
@@ -4687,7 +4691,7 @@
...
@@ -4687,7 +4691,7 @@
04256E002C7440A500A37BA4
/* YHFamilyWarmTipsCell.swift in Sources */
,
04256E002C7440A500A37BA4
/* YHFamilyWarmTipsCell.swift in Sources */
,
0445E6AF2BE9CFF6003C52F9
/* YHAppVersionForceUpdateView.swift in Sources */
,
0445E6AF2BE9CFF6003C52F9
/* YHAppVersionForceUpdateView.swift in Sources */
,
04213B272C48C95E00797900
/* YHHomeIdentityCell.swift in Sources */
,
04213B272C48C95E00797900
/* YHHomeIdentityCell.swift in Sources */
,
0449EEE92C8EEB1E00A397FD
/* YHResinMaterialManage
List
VC.swift in Sources */
,
0449EEE92C8EEB1E00A397FD
/* YHResinMaterialManage
Container
VC.swift in Sources */
,
0430E6542C73400A000511E2
/* YHAdopterUploadTableViewCell.swift in Sources */
,
0430E6542C73400A000511E2
/* YHAdopterUploadTableViewCell.swift in Sources */
,
04CE1AD32C2AD91F001CB80A
/* YHTravelModel.swift in Sources */
,
04CE1AD32C2AD91F001CB80A
/* YHTravelModel.swift in Sources */
,
04213B372C4F87C600797900
/* YHHomeLifeCategoryDetailModel.swift in Sources */
,
04213B372C4F87C600797900
/* YHHomeLifeCategoryDetailModel.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignMaterialManage(续期资料管理)/C/YHResignMaterialListVC.swift
0 → 100644
View file @
8c20fe22
//
// YHResignMaterialUploadVC.swift
// galaxy
//
// Created by edy on 2024/9/9.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
import
JXSegmentedView
class
YHResignMaterialListVC
:
YHBaseViewController
{
var
items
:[[
YHSupplementInfo
]]
=
[]
// 列表是否是展开
var
isUnfold
=
true
lazy
var
tableView
:
UITableView
=
{
let
tableView
=
UITableView
(
frame
:
.
zero
,
style
:
.
grouped
)
tableView
.
estimatedSectionHeaderHeight
=
14.0
tableView
.
estimatedSectionFooterHeight
=
1.0
tableView
.
showsVerticalScrollIndicator
=
false
tableView
.
separatorStyle
=
.
none
tableView
.
delegate
=
self
tableView
.
dataSource
=
self
tableView
.
backgroundColor
=
UIColor
(
hexString
:
"#F8F9FB"
)
tableView
.
register
(
UITableViewCell
.
self
,
forCellReuseIdentifier
:
"UITableViewCell"
)
tableView
.
register
(
YHResignMaterialCell
.
self
,
forCellReuseIdentifier
:
YHResignMaterialCell
.
cellReuseIdentifier
)
tableView
.
backgroundView
=
emptyDataTipsView
return
tableView
}()
lazy
var
emptyDataTipsView
:
YHEmptyDataView
=
{
let
view
=
YHEmptyDataView
.
createView
(
"没有找到相关资料哦~"
,
kEmptyCommonBgName
)
view
.
topMargin
=
130
view
.
isHidden
=
true
return
view
}()
lazy
var
previewFileTool
:
YHFilePreviewTool
=
{
let
tool
=
YHFilePreviewTool
(
targetVC
:
self
)
return
tool
}()
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
self
.
view
.
backgroundColor
=
.
white
self
.
gk_navigationBar
.
isHidden
=
true
createUI
()
}
func
createUI
()
{
view
.
addSubview
(
tableView
)
tableView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
left
.
right
.
equalToSuperview
()
make
.
height
.
equalTo
(
KScreenHeight
-
k_Height_NavigationtBarAndStatuBar
-
YHResinMaterialManageContainerVC
.
segmentHeight
-
4
)
}
getData
()
}
func
getData
()
{
let
arr1
=
[
YHSupplementInfo
(
checkStatus
:
1
),
YHSupplementInfo
(
checkStatus
:
2
),
YHSupplementInfo
(
checkStatus
:
3
),
YHSupplementInfo
(
checkStatus
:
4
),]
let
arr2
=
[
YHSupplementInfo
(
checkStatus
:
1
),
YHSupplementInfo
(
checkStatus
:
2
),
YHSupplementInfo
(
checkStatus
:
3
),
YHSupplementInfo
(
checkStatus
:
4
),]
items
.
append
(
contentsOf
:
[
arr1
,
arr2
])
self
.
tableView
.
reloadData
()
}
}
extension
YHResignMaterialListVC
:
UITableViewDelegate
,
UITableViewDataSource
{
func
numberOfSections
(
in
tableView
:
UITableView
)
->
Int
{
return
items
.
count
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
if
0
<=
section
&&
section
<
items
.
count
{
let
arr
=
items
[
section
]
return
arr
.
count
}
return
0
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHResignMaterialCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHResignMaterialCell
if
0
<=
indexPath
.
section
&&
indexPath
.
section
<
items
.
count
{
let
arr
=
items
[
indexPath
.
section
]
if
0
<=
indexPath
.
row
,
indexPath
.
row
<
arr
.
count
{
let
item
=
arr
[
indexPath
.
row
]
cell
.
updateModel
(
item
)
cell
.
templateBlock
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
let
view
=
YHCertificateTemplateSheetView
.
templateView
(
item
.
templateInfo
)
view
.
scanTemplateBlock
=
{
[
weak
self
]
path
in
guard
let
self
=
self
else
{
return
}
if
let
url
=
path
?
.
url
,
!
url
.
isEmpty
{
print
(
url
)
self
.
previewFileTool
.
openXLSXRemoteFile
(
urlString
:
url
,
fileName
:
"预览"
)
}
}
view
.
show
()
}
}
}
return
cell
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
UITableView
.
automaticDimension
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
0
<=
indexPath
.
section
&&
indexPath
.
section
<
items
.
count
{
// let item = items[indexPath.section]
//
// if item.checkStatus == YHCertificateUploadStatus.preUpload.rawValue { // 待上传
// showUploadSheetView(supplementId:item.id)
// return
// }
// // 非待上传的进入详情
// let vc = YHCertificateUploadContentListVC()
// vc.orderId = orderId ?? 0
// vc.categoryId = categoryInfo.categoryId
// vc.supplementId = item.id
// self.navigationController?.pushViewController(vc)
}
}
private
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
CGFloat
{
return
section
==
0
?
56.0
:
52.0
}
private
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
CGFloat
{
return
0.01
}
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
return
UIView
()
}
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
let
view
=
UIView
()
let
titleLabel
=
UILabel
()
titleLabel
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
15
)
titleLabel
.
textColor
=
.
mainTextColor
titleLabel
.
text
=
section
==
0
?
"工作资料"
:
"生活资料"
view
.
addSubview
(
titleLabel
)
let
img
=
isUnfold
?
"resign_material_list_unfold"
:
"resign_material_list_fold"
let
arrowImgV
=
UIImageView
(
image
:
UIImage
(
named
:
img
))
view
.
addSubview
(
arrowImgV
)
titleLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
16
)
make
.
top
.
equalTo
(
section
==
0
?
20.0
:
16.0
)
make
.
right
.
equalTo
(
arrowImgV
.
snp
.
left
)
make
.
bottom
.
equalTo
(
-
16
)
}
arrowImgV
.
snp
.
makeConstraints
{
make
in
make
.
width
.
height
.
equalTo
(
21.0
)
make
.
right
.
equalTo
(
-
16
)
make
.
top
.
equalTo
(
titleLabel
)
}
return
view
}
}
// MARK: - JXSegmentedListContainerViewListDelegate
extension
YHResignMaterialListVC
:
JXSegmentedListContainerViewListDelegate
{
func
listView
()
->
UIView
{
return
view
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignMaterialManage(续期资料管理)/C/YHResignMaterialUploadVC.swift
View file @
8c20fe22
...
@@ -2,190 +2,29 @@
...
@@ -2,190 +2,29 @@
// YHResignMaterialUploadVC.swift
// YHResignMaterialUploadVC.swift
// galaxy
// galaxy
//
//
// Created by edy on 2024/9/
9
.
// Created by edy on 2024/9/
10
.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
//
import
UIKit
import
UIKit
import
JXSegmentedView
class
YHResignMaterialUploadVC
:
YHBaseViewController
{
class
YHResignMaterialUploadVC
:
YHBaseViewController
{
var
items
:[[
YHSupplementInfo
]]
=
[]
// 列表是否是展开
var
isUnfold
=
true
lazy
var
tableView
:
UITableView
=
{
let
tableView
=
UITableView
(
frame
:
.
zero
,
style
:
.
grouped
)
tableView
.
estimatedSectionHeaderHeight
=
14.0
tableView
.
estimatedSectionFooterHeight
=
1.0
tableView
.
showsVerticalScrollIndicator
=
false
tableView
.
separatorStyle
=
.
none
tableView
.
delegate
=
self
tableView
.
dataSource
=
self
tableView
.
backgroundColor
=
UIColor
(
hexString
:
"#F8F9FB"
)
tableView
.
register
(
UITableViewCell
.
self
,
forCellReuseIdentifier
:
"UITableViewCell"
)
tableView
.
register
(
YHResignMaterialCell
.
self
,
forCellReuseIdentifier
:
YHResignMaterialCell
.
cellReuseIdentifier
)
tableView
.
backgroundView
=
emptyDataTipsView
return
tableView
}()
lazy
var
emptyDataTipsView
:
YHEmptyDataView
=
{
let
view
=
YHEmptyDataView
.
createView
(
"没有找到相关资料哦~"
,
kEmptyCommonBgName
)
view
.
topMargin
=
130
view
.
isHidden
=
true
return
view
}()
lazy
var
previewFileTool
:
YHFilePreviewTool
=
{
let
tool
=
YHFilePreviewTool
(
targetVC
:
self
)
return
tool
}()
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
self
.
view
.
backgroundColor
=
.
white
self
.
gk_navigationBar
.
isHidden
=
true
createUI
()
}
func
createUI
()
{
view
.
addSubview
(
tableView
)
tableView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
left
.
right
.
equalToSuperview
()
make
.
height
.
equalTo
(
KScreenHeight
-
k_Height_NavigationtBarAndStatuBar
-
YHResinMaterialManageListVC
.
segmentHeight
-
4
)
}
getData
()
}
func
getData
()
{
let
arr1
=
[
YHSupplementInfo
(
checkStatus
:
1
),
YHSupplementInfo
(
checkStatus
:
2
),
YHSupplementInfo
(
checkStatus
:
3
),
YHSupplementInfo
(
checkStatus
:
4
),]
let
arr2
=
[
YHSupplementInfo
(
checkStatus
:
1
),
YHSupplementInfo
(
checkStatus
:
2
),
YHSupplementInfo
(
checkStatus
:
3
),
YHSupplementInfo
(
checkStatus
:
4
),]
items
.
append
(
contentsOf
:
[
arr1
,
arr2
])
self
.
tableView
.
reloadData
()
}
}
extension
YHResignMaterialUploadVC
:
UITableViewDelegate
,
UITableViewDataSource
{
// Do any additional setup after loading the view.
func
numberOfSections
(
in
tableView
:
UITableView
)
->
Int
{
return
items
.
count
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
if
0
<=
section
&&
section
<
items
.
count
{
let
arr
=
items
[
section
]
return
arr
.
count
}
return
0
}
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHResignMaterialCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHResignMaterialCell
if
0
<=
indexPath
.
section
&&
indexPath
.
section
<
items
.
count
{
let
arr
=
items
[
indexPath
.
section
]
if
0
<=
indexPath
.
row
,
indexPath
.
row
<
arr
.
count
{
let
item
=
arr
[
indexPath
.
row
]
cell
.
updateModel
(
item
)
cell
.
templateBlock
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
let
view
=
YHCertificateTemplateSheetView
.
templateView
(
item
.
templateInfo
)
view
.
scanTemplateBlock
=
{
[
weak
self
]
path
in
guard
let
self
=
self
else
{
return
}
if
let
url
=
path
?
.
url
,
!
url
.
isEmpty
{
print
(
url
)
self
.
previewFileTool
.
openXLSXRemoteFile
(
urlString
:
url
,
fileName
:
"预览"
)
}
}
view
.
show
()
}
}
}
return
cell
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
UITableView
.
automaticDimension
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
0
<=
indexPath
.
section
&&
indexPath
.
section
<
items
.
count
{
// let item = items[indexPath.section]
//
// if item.checkStatus == YHCertificateUploadStatus.preUpload.rawValue { // 待上传
// showUploadSheetView(supplementId:item.id)
// return
// }
// // 非待上传的进入详情
// let vc = YHCertificateUploadContentListVC()
// vc.orderId = orderId ?? 0
// vc.categoryId = categoryInfo.categoryId
// vc.supplementId = item.id
// self.navigationController?.pushViewController(vc)
}
}
private
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
CGFloat
{
/*
return
section
==
0
?
56.0
:
52.0
// MARK: - Navigation
}
private
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
CGFloat
{
return
0.01
}
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
return
UIView
()
}
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
let
view
=
UIView
()
let
titleLabel
=
UILabel
()
titleLabel
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
15
)
titleLabel
.
textColor
=
.
mainTextColor
titleLabel
.
text
=
section
==
0
?
"工作资料"
:
"生活资料"
view
.
addSubview
(
titleLabel
)
let
img
=
isUnfold
?
"resign_material_list_unfold"
:
"resign_material_list_fold"
let
arrowImgV
=
UIImageView
(
image
:
UIImage
(
named
:
img
))
view
.
addSubview
(
arrowImgV
)
titleLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
16
)
make
.
top
.
equalTo
(
section
==
0
?
20.0
:
16.0
)
make
.
right
.
equalTo
(
arrowImgV
.
snp
.
left
)
make
.
bottom
.
equalTo
(
-
16
)
}
arrowImgV
.
snp
.
makeConstraints
{
make
in
make
.
width
.
height
.
equalTo
(
21.0
)
make
.
right
.
equalTo
(
-
16
)
make
.
top
.
equalTo
(
titleLabel
)
}
return
view
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
}
}
}
*/
// MARK: - JXSegmentedListContainerViewListDelegate
extension
YHResignMaterialUploadVC
:
JXSegmentedListContainerViewListDelegate
{
func
listView
()
->
UIView
{
return
view
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignMaterialManage(续期资料管理)/C/YHResinMaterialManage
List
VC.swift
→
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignMaterialManage(续期资料管理)/C/YHResinMaterialManage
Container
VC.swift
View file @
8c20fe22
...
@@ -9,11 +9,11 @@
...
@@ -9,11 +9,11 @@
import
UIKit
import
UIKit
import
JXSegmentedView
import
JXSegmentedView
class
YHResinMaterialManage
List
VC
:
YHBaseViewController
{
class
YHResinMaterialManage
Container
VC
:
YHBaseViewController
{
static
let
segmentHeight
=
40.0
static
let
segmentHeight
=
40.0
var
titles
=
[
"全部"
,
"待上传(0)"
,
"已驳回(0)"
,
"审核中(0)"
,
"已完成(0)"
]
var
titles
=
[
"全部"
,
"待上传(0)"
,
"已驳回(0)"
,
"审核中(0)"
,
"已完成(0)"
]
var
itemVCs
:[
YHResignMaterial
Upload
VC
]
=
[]
var
itemVCs
:[
YHResignMaterial
List
VC
]
=
[]
//分类title 所对应的VC
//分类title 所对应的VC
lazy
var
listContainerView
:
JXSegmentedListContainerView
!
=
{
lazy
var
listContainerView
:
JXSegmentedListContainerView
!
=
{
...
@@ -93,7 +93,7 @@ class YHResinMaterialManageListVC: YHBaseViewController {
...
@@ -93,7 +93,7 @@ class YHResinMaterialManageListVC: YHBaseViewController {
}
}
}
}
extension
YHResinMaterialManage
List
VC
:
JXSegmentedListContainerViewDataSource
{
extension
YHResinMaterialManage
Container
VC
:
JXSegmentedListContainerViewDataSource
{
func
numberOfLists
(
in
listContainerView
:
JXSegmentedListContainerView
)
->
Int
{
func
numberOfLists
(
in
listContainerView
:
JXSegmentedListContainerView
)
->
Int
{
if
let
titleDataSource
=
segmentedView
.
dataSource
as?
JXSegmentedBaseDataSource
{
if
let
titleDataSource
=
segmentedView
.
dataSource
as?
JXSegmentedBaseDataSource
{
...
@@ -107,11 +107,11 @@ extension YHResinMaterialManageListVC: JXSegmentedListContainerViewDataSource {
...
@@ -107,11 +107,11 @@ extension YHResinMaterialManageListVC: JXSegmentedListContainerViewDataSource {
if
0
<=
index
,
index
<
itemVCs
.
count
{
if
0
<=
index
,
index
<
itemVCs
.
count
{
return
itemVCs
[
index
]
return
itemVCs
[
index
]
}
}
return
YHResignMaterial
Upload
VC
()
return
YHResignMaterial
List
VC
()
}
}
}
}
extension
YHResinMaterialManage
List
VC
:
JXSegmentedViewDelegate
{
extension
YHResinMaterialManage
Container
VC
:
JXSegmentedViewDelegate
{
func
segmentedView
(
_
segmentedView
:
JXSegmentedView
,
didSelectedItemAt
index
:
Int
)
{
func
segmentedView
(
_
segmentedView
:
JXSegmentedView
,
didSelectedItemAt
index
:
Int
)
{
if
0
<=
index
&&
index
<
itemVCs
.
count
{
if
0
<=
index
&&
index
<
itemVCs
.
count
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignMaterialManage(续期资料管理)/V/YHResignMaterialCell.swift
View file @
8c20fe22
...
@@ -117,10 +117,12 @@ class YHResignMaterialCell: UITableViewCell {
...
@@ -117,10 +117,12 @@ class YHResignMaterialCell: UITableViewCell {
showTemplateBtn
=
false
showTemplateBtn
=
false
}
}
if
model
.
isNeedSupplemnt
()
{
if
true
{
result
+=
mustTag
result
+=
mustTag
}
}
result
+=
cerName
result
+=
cerName
showTemplateBtn
=
true
if
showTemplateBtn
{
if
showTemplateBtn
{
result
+=
template
result
+=
template
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment