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
52fb1494
Commit
52fb1494
authored
Aug 19, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS
into develop
parents
ab6cefed
f9642897
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
646 additions
and
3 deletions
+646
-3
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+20
-0
YHAddAdoptersViewController.swift
...cate(办证段)/AddAdopters/C/YHAddAdoptersViewController.swift
+24
-0
YHAdopterIncomeDetailViewController.swift
...)/AddAdopters/C/YHAdopterIncomeDetailViewController.swift
+256
-0
YHAdopterAddNewTableViewCell.swift
...ate(办证段)/AddAdopters/V/YHAdopterAddNewTableViewCell.swift
+3
-3
YHAdopterIncomeFileCountTableViewCell.swift
...AddAdopters/V/YHAdopterIncomeFileCountTableViewCell.swift
+58
-0
YHAdopterIncomeFileTableViewCell.swift
...办证段)/AddAdopters/V/YHAdopterIncomeFileTableViewCell.swift
+79
-0
YHAdopterIncomeTitleTableViewCell.swift
...证段)/AddAdopters/V/YHAdopterIncomeTitleTableViewCell.swift
+125
-0
YHAdopterUploadTableViewCell.swift
...ate(办证段)/AddAdopters/V/YHAdopterUploadTableViewCell.swift
+59
-0
Contents.json
...增受养人/service_adopter_income_fail 1.imageset/Contents.json
+22
-0
service_adopter_income_fail@2x.png
...income_fail 1.imageset/service_adopter_income_fail@2x.png
+0
-0
service_adopter_income_fail@3x.png
...income_fail 1.imageset/service_adopter_income_fail@3x.png
+0
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
52fb1494
...
...
@@ -70,6 +70,11 @@
0430E6482C731B0A000511E2
/* YHAdopterAddNewTableViewCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0430E6472C731B0A000511E2
/* YHAdopterAddNewTableViewCell.swift */
;
};
0430E64A2C731E02000511E2
/* YHAdopterIncomeTableViewCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0430E6492C731E02000511E2
/* YHAdopterIncomeTableViewCell.swift */
;
};
0430E64C2C732821000511E2
/* YHNoAdopterAlertView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0430E64B2C732821000511E2
/* YHNoAdopterAlertView.swift */
;
};
0430E64E2C733477000511E2
/* YHAdopterIncomeDetailViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0430E64D2C733477000511E2
/* YHAdopterIncomeDetailViewController.swift */
;
};
0430E6502C73376A000511E2
/* YHAdopterIncomeTitleTableViewCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0430E64F2C733769000511E2
/* YHAdopterIncomeTitleTableViewCell.swift */
;
};
0430E6522C733D82000511E2
/* YHAdopterIncomeFileTableViewCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0430E6512C733D82000511E2
/* YHAdopterIncomeFileTableViewCell.swift */
;
};
0430E6542C73400A000511E2
/* YHAdopterUploadTableViewCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0430E6532C73400A000511E2
/* YHAdopterUploadTableViewCell.swift */
;
};
0430E6562C7342AB000511E2
/* YHAdopterIncomeFileCountTableViewCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0430E6552C7342AB000511E2
/* YHAdopterIncomeFileCountTableViewCell.swift */
;
};
0435FA7F2BA178C100024EAE
/* YHCommonAlertView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0435FA7E2BA178C100024EAE
/* YHCommonAlertView.swift */
;
};
0435FA812BA186D600024EAE
/* YHMyFileMethodTableViewCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0435FA802BA186D600024EAE
/* YHMyFileMethodTableViewCell.swift */
;
};
0435FA832BA2DEB100024EAE
/* YHCardButton.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0435FA822BA2DEB100024EAE
/* YHCardButton.swift */
;
};
...
...
@@ -753,6 +758,11 @@
0430E6472C731B0A000511E2
/* YHAdopterAddNewTableViewCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHAdopterAddNewTableViewCell.swift
;
sourceTree
=
"<group>"
;
};
0430E6492C731E02000511E2
/* YHAdopterIncomeTableViewCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHAdopterIncomeTableViewCell.swift
;
sourceTree
=
"<group>"
;
};
0430E64B2C732821000511E2
/* YHNoAdopterAlertView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHNoAdopterAlertView.swift
;
sourceTree
=
"<group>"
;
};
0430E64D2C733477000511E2
/* YHAdopterIncomeDetailViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHAdopterIncomeDetailViewController.swift
;
sourceTree
=
"<group>"
;
};
0430E64F2C733769000511E2
/* YHAdopterIncomeTitleTableViewCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHAdopterIncomeTitleTableViewCell.swift
;
sourceTree
=
"<group>"
;
};
0430E6512C733D82000511E2
/* YHAdopterIncomeFileTableViewCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHAdopterIncomeFileTableViewCell.swift
;
sourceTree
=
"<group>"
;
};
0430E6532C73400A000511E2
/* YHAdopterUploadTableViewCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHAdopterUploadTableViewCell.swift
;
sourceTree
=
"<group>"
;
};
0430E6552C7342AB000511E2
/* YHAdopterIncomeFileCountTableViewCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHAdopterIncomeFileCountTableViewCell.swift
;
sourceTree
=
"<group>"
;
};
0435FA7E2BA178C100024EAE
/* YHCommonAlertView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCommonAlertView.swift
;
sourceTree
=
"<group>"
;
};
0435FA802BA186D600024EAE
/* YHMyFileMethodTableViewCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMyFileMethodTableViewCell.swift
;
sourceTree
=
"<group>"
;
};
0435FA822BA2DEB100024EAE
/* YHCardButton.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCardButton.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -1591,6 +1601,10 @@
0430E6472C731B0A000511E2
/* YHAdopterAddNewTableViewCell.swift */
,
0430E6492C731E02000511E2
/* YHAdopterIncomeTableViewCell.swift */
,
0430E64B2C732821000511E2
/* YHNoAdopterAlertView.swift */
,
0430E64F2C733769000511E2
/* YHAdopterIncomeTitleTableViewCell.swift */
,
0430E6512C733D82000511E2
/* YHAdopterIncomeFileTableViewCell.swift */
,
0430E6532C73400A000511E2
/* YHAdopterUploadTableViewCell.swift */
,
0430E6552C7342AB000511E2
/* YHAdopterIncomeFileCountTableViewCell.swift */
,
);
path
=
V
;
sourceTree
=
"<group>"
;
...
...
@@ -1599,6 +1613,7 @@
isa
=
PBXGroup
;
children
=
(
0430E6412C72E120000511E2
/* YHAddAdoptersViewController.swift */
,
0430E64D2C733477000511E2
/* YHAdopterIncomeDetailViewController.swift */
,
);
path
=
C
;
sourceTree
=
"<group>"
;
...
...
@@ -3954,6 +3969,7 @@
04F5F86C2C1A9B52004A463C
/* YHOtherServiceListViewController.swift in Sources */
,
04CC2EF02BC3DDB2000305DD
/* YHServiceBannerView.swift in Sources */
,
045EEEA32B9F171A0022A143
/* YHCompanyModel.swift in Sources */
,
0430E64E2C733477000511E2
/* YHAdopterIncomeDetailViewController.swift in Sources */
,
045EEEC62B9F171A0022A143
/* YHOtherTextViewItemView.swift in Sources */
,
046A95312C6EFB980059326A
/* YHFamilyMemberRiskWarningAlertView.swift in Sources */
,
A5ACE9292B4564F7002C94D2
/* YHSmsCodeInputView.swift in Sources */
,
...
...
@@ -4174,6 +4190,7 @@
04754A952B96FF3D00F8ADCA
/* UITextField+Extension.swift in Sources */
,
04256DD02C7041C700A37BA4
/* YHInfoItemView.swift in Sources */
,
A5ACE9312B4564F7002C94D2
/* YHPersonalCenterCell.swift in Sources */
,
0430E6562C7342AB000511E2
/* YHAdopterIncomeFileCountTableViewCell.swift in Sources */
,
045EEE9A2B9F171A0022A143
/* YHWorkIntroductionViewModel.swift in Sources */
,
044D0C1C2C22C30B00C5CF5E
/* YHEditSchoolViewController.swift in Sources */
,
A5ACE9532B4564F7002C94D2
/* YHBaseViewController.swift in Sources */
,
...
...
@@ -4208,6 +4225,7 @@
A5EF21332BA6E030005027E6
/* YHFileListViewController.swift in Sources */
,
045EEF1E2B9F171A0022A143
/* YHBottomNextView.swift in Sources */
,
A567E59E2BD7643D00D5D5A0
/* YHHomePageViewController.swift in Sources */
,
0430E6502C73376A000511E2
/* YHAdopterIncomeTitleTableViewCell.swift in Sources */
,
0485DFD82C66036600B50293
/* YHPrincipleFileRenameView.swift in Sources */
,
045EEEBA2B9F171A0022A143
/* YHWorkResponsibilitiesTableViewCell.swift in Sources */
,
047AA3ED2C4A70F6009C4554
/* YHHeadView.swift in Sources */
,
...
...
@@ -4224,6 +4242,7 @@
04CE1AD22C2AD91F001CB80A
/* YHActivityModel.swift in Sources */
,
0445E6AF2BE9CFF6003C52F9
/* YHAppVersionForceUpdateView.swift in Sources */
,
04213B272C48C95E00797900
/* YHHomeIdentityCell.swift in Sources */
,
0430E6542C73400A000511E2
/* YHAdopterUploadTableViewCell.swift in Sources */
,
04CE1AD32C2AD91F001CB80A
/* YHTravelModel.swift in Sources */
,
04213B372C4F87C600797900
/* YHHomeLifeCategoryDetailModel.swift in Sources */
,
04B9EE5A2C06CC3100A4018D
/* YHCodeSueecssViewController.swift in Sources */
,
...
...
@@ -4398,6 +4417,7 @@
04C85DE32C368B45008B20D6
/* YHMyFileListViewController.swift in Sources */
,
045EEEF82B9F171A0022A143
/* YHFormItemOnlyDoubleChoiceCell.swift in Sources */
,
0480976D2BA158A1000B9DCA
/* YHCertificateListVC.swift in Sources */
,
0430E6522C733D82000511E2
/* YHAdopterIncomeFileTableViewCell.swift in Sources */
,
045EEE8B2B9F171A0022A143
/* YHPreviewMainApplicantInfoViewController.swift in Sources */
,
045EEE922B9F171A0022A143
/* YHPreviewInfoNameAndSubNameItemView.swift in Sources */
,
0430E6482C731B0A000511E2
/* YHAdopterAddNewTableViewCell.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AddAdopters/C/YHAddAdoptersViewController.swift
View file @
52fb1494
...
...
@@ -116,9 +116,33 @@ extension YHAddAdoptersViewController: UITableViewDelegate, UITableViewDataSourc
return
cell
}
else
if
indexPath
.
row
==
2
{
let
cell
=
tableView
.
dequeueReusableCell
(
withClass
:
YHAdopterAddNewTableViewCell
.
self
)
cell
.
newAdopterBlock
=
{[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
let
items
=
[
YHCertificateEditItem
(
type
:
.
rename
,
title
:
"新增配偶"
),
YHCertificateEditItem
(
type
:
.
preview
,
title
:
"新增子女"
),
YHCertificateEditItem
(
type
:
.
cancel
,
title
:
"取消"
)]
YHCertificateEditSheetView
.
sheetView
(
items
:
items
)
{
[
weak
self
]
editType
in
guard
let
self
=
self
else
{
return
}
if
editType
==
.
rename
{
}
if
editType
==
.
preview
{
}
if
editType
==
.
delete
{
}
}
.
show
()
}
return
cell
}
else
{
let
cell
=
tableView
.
dequeueReusableCell
(
withClass
:
YHAdopterIncomeTableViewCell
.
self
)
cell
.
clickBlock
=
{
[
weak
self
]
index
in
guard
let
self
=
self
else
{
return
}
let
vc
=
YHAdopterIncomeDetailViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
)
}
return
cell
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AddAdopters/C/YHAdopterIncomeDetailViewController.swift
0 → 100644
View file @
52fb1494
//
// YHAdopterIncomeDetailViewController.swift
// galaxy
//
// Created by EDY on 2024/8/19.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHAdopterIncomeDetailViewController
:
YHBaseViewController
{
var
tableView
:
UITableView
!
var
nextButton
:
UIButton
!
var
clickIndex
=
-
1
var
file
:
[
YHWorkExperienceFileModel
]
=
[]
var
viewModel
=
YHBaseViewModel
()
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
gk_navTitle
=
"上传存款证明"
setView
()
getData
()
}
func
getData
()
{
tableView
.
reloadData
()
}
func
setView
()
{
tableView
=
{
let
tableView
=
UITableView
(
frame
:
.
zero
,
style
:
.
plain
)
tableView
.
contentInsetAdjustmentBehavior
=
.
never
tableView
.
backgroundColor
=
.
clear
tableView
.
separatorStyle
=
.
none
tableView
.
delegate
=
self
tableView
.
dataSource
=
self
tableView
.
register
(
cellWithClass
:
YHAdopterIncomeTitleTableViewCell
.
self
)
tableView
.
register
(
cellWithClass
:
YHAdopterIncomeFileTableViewCell
.
self
)
tableView
.
register
(
cellWithClass
:
YHAdopterUploadTableViewCell
.
self
)
tableView
.
register
(
cellWithClass
:
YHAdopterIncomeFileCountTableViewCell
.
self
)
return
tableView
}()
view
.
addSubview
(
tableView
)
tableView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
k_Height_NavigationtBarAndStatuBar
+
8
)
make
.
bottom
.
left
.
right
.
equalTo
(
view
)
}
nextButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
button
.
backgroundColor
=
UIColor
.
brandMainColor
button
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
16
)
button
.
contentHorizontalAlignment
=
.
center
button
.
setTitle
(
"确认"
,
for
:
.
normal
)
button
.
setTitleColor
(
UIColor
(
hex
:
0xffffff
),
for
:
.
normal
)
button
.
layer
.
cornerRadius
=
kCornerRadius3
button
.
addTarget
(
self
,
action
:
#selector(
nextStep
)
,
for
:
.
touchUpInside
)
return
button
}()
view
.
addSubview
(
nextButton
)
nextButton
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
16
)
make
.
right
.
equalTo
(
-
16
)
make
.
bottom
.
equalTo
(
-
8
-
k_Height_safeAreaInsetsBottom
())
make
.
height
.
equalTo
(
48
)
}
}
@objc
func
nextStep
()
{
}
@objc
func
submit
()
{
}
func
uploadImage
(
_
img
:
UIImage
,
imageName
:
String
,
callBack
:((
Bool
,
String
)
->
())?)
{
// 先OSS上传得到URL
self
.
viewModel
.
uploadImage
(
img
)
{
[
weak
self
]
url
,
error
in
guard
self
!=
nil
else
{
return
}
if
let
url
=
url
,
!
url
.
isEmpty
{
callBack
?(
true
,
url
)
return
}
callBack
?(
false
,
""
)
}
}
func
uploadFile
(
_
fileUrl
:
URL
)
{
if
let
fileData
=
try
?
Data
(
contentsOf
:
fileUrl
)
{
// 将文件数据上传到服务器
let
size
=
String
(
format
:
"%.2fM"
,
Double
(
fileData
.
count
)
/
(
1024.0
*
1024.0
))
// print("\(size)")
// 先OSS上传得到URL
YHHUD
.
show
(
.
progress
(
message
:
"上传中..."
))
self
.
viewModel
.
uploadFile
(
fileUrl
.
absoluteString
)
{
[
weak
self
]
successUrl
,
error
in
YHHUD
.
hide
()
guard
let
self
=
self
else
{
return
}
// 再调用业务接口
if
let
successUrl
=
successUrl
,
!
successUrl
.
isEmpty
{
var
fileName
=
fileUrl
.
lastPathComponent
if
fileName
.
isEmpty
{
fileName
=
successUrl
.
lastPathComponent
}
let
suffixName
=
successUrl
.
pathExtension
.
lowercased
()
let
timestamp
=
Date
()
.
timeIntervalSince1970
let
dateFormatter
=
DateFormatter
()
dateFormatter
.
dateFormat
=
"yyyy.MM.dd HH:mm:ss"
let
currentDate
=
Date
()
let
formattedDate
=
dateFormatter
.
string
(
from
:
currentDate
)
let
model
=
YHWorkExperienceFileModel
()
model
.
fileUrl
=
successUrl
model
.
fileName
=
fileName
model
.
uploadedAt
=
formattedDate
self
.
file
.
append
(
model
)
self
.
tableView
.
reloadData
()
YHHUD
.
flash
(
message
:
"上传成功"
)
return
}
var
msg
=
"上传文件失败"
if
let
errorMsg
=
error
?
.
errorMsg
,
!
errorMsg
.
isEmpty
{
msg
=
errorMsg
}
YHHUD
.
flash
(
message
:
msg
)
}
}
else
{
YHHUD
.
flash
(
message
:
"识别文件失败"
)
}
}
}
extension
YHAdopterIncomeDetailViewController
:
UITableViewDelegate
,
UITableViewDataSource
{
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
4
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
if
indexPath
.
row
==
0
{
let
cell
=
tableView
.
dequeueReusableCell
(
withClass
:
YHAdopterIncomeTitleTableViewCell
.
self
)
return
cell
}
if
indexPath
.
row
==
1
{
let
cell
=
tableView
.
dequeueReusableCell
(
withClass
:
YHAdopterIncomeFileTableViewCell
.
self
)
cell
.
dataSource
=
self
.
file
return
cell
}
if
indexPath
.
row
==
2
{
let
cell
=
tableView
.
dequeueReusableCell
(
withClass
:
YHAdopterUploadTableViewCell
.
self
)
cell
.
newFileBlock
=
{[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
let
count
=
self
.
file
.
count
if
count
>=
10
{
YHHUD
.
flash
(
message
:
"最多上传10个图片或文件"
)
return
}
var
maxCount
=
10
-
count
if
maxCount
>
9
{
maxCount
=
9
}
let
sheetView
=
YHCertificateUploadSheetView
.
sheetView
()
sheetView
.
maxSelectImageCount
=
maxCount
sheetView
.
uploadFilesBlock
=
{
[
weak
self
]
fileUrl
in
guard
let
self
=
self
else
{
return
}
print
(
fileUrl
)
uploadFile
(
fileUrl
)
}
sheetView
.
uploadImageBlock
=
{
[
weak
self
]
imgArr
in
guard
let
self
=
self
else
{
return
}
let
group
=
DispatchGroup
()
var
successArr
:[
String
]
=
[]
var
failArr
:[
YHSelectImageItem
]
=
[]
YHHUD
.
show
(
.
progress
(
message
:
"上传中..."
))
for
item
in
imgArr
{
if
let
image
=
item
.
data
{
group
.
enter
()
uploadImage
(
image
,
imageName
:
item
.
name
)
{
success
,
url
in
if
success
{
successArr
.
append
(
url
)
}
else
{
failArr
.
append
(
item
)
}
group
.
leave
()
}
}
}
// 等待所有任务完成
group
.
notify
(
queue
:
.
main
)
{
YHHUD
.
hide
()
// 所有任务完成,回到主线程继续执行
if
imgArr
.
count
==
successArr
.
count
{
YHHUD
.
flash
(
message
:
"上传成功"
)
for
item
in
successArr
{
let
timestamp
=
Date
()
.
timeIntervalSince1970
let
dateFormatter
=
DateFormatter
()
dateFormatter
.
dateFormat
=
"yyyy.MM.dd HH:mm:ss"
let
currentDate
=
Date
()
let
formattedDate
=
dateFormatter
.
string
(
from
:
currentDate
)
let
model
=
YHWorkExperienceFileModel
()
model
.
fileUrl
=
item
model
.
fileName
=
"
\(
UInt64
(
timestamp
)
)
"
+
".jpg"
model
.
uploadedAt
=
formattedDate
self
.
file
.
append
(
model
)
}
self
.
tableView
.
reloadData
()
}
else
{
YHHUD
.
flash
(
message
:
"
\(
successArr
.
count
)
张照片上传成功
\n\(
failArr
.
count
)
张照片上传失败"
)
}
}
}
sheetView
.
show
()
}
return
cell
}
if
indexPath
.
row
==
3
{
let
cell
=
tableView
.
dequeueReusableCell
(
withClass
:
YHAdopterIncomeFileCountTableViewCell
.
self
)
return
cell
}
return
UITableViewCell
()
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
if
indexPath
.
row
==
0
{
return
119
}
if
indexPath
.
row
==
1
{
let
count
=
self
.
file
.
count
if
count
==
0
{
return
0
}
else
{
return
CGFloat
(
55
*
count
+
16
)
}
}
if
indexPath
.
row
==
2
{
return
71
}
return
45
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AddAdopters/V/YHAdopterAddNewTableViewCell.swift
View file @
52fb1494
...
...
@@ -11,11 +11,11 @@ import UIKit
class
YHAdopterAddNewTableViewCell
:
UITableViewCell
{
typealias
ExperienceListBlock
=
(
_
model
:
YHWorkItemListModel
)
->
()
typealias
IsMoreBlock
=
(
_
isMore
:
Bool
)
->
()
typealias
New
Work
Block
=
()
->
()
typealias
New
Adopter
Block
=
()
->
()
var
clickBlock
:
ExperienceListBlock
?
var
deleteBlock
:
ExperienceListBlock
?
var
isMoreBlock
:
IsMoreBlock
?
var
new
WorkBlock
:
NewWork
Block
?
var
new
AdopterBlock
:
NewAdopter
Block
?
var
centerView
:
UIView
!
var
titleLabel
:
UILabel
!
var
cannalButton
:
UIButton
!
...
...
@@ -143,7 +143,7 @@ class YHAdopterAddNewTableViewCell: UITableViewCell {
view
.
addBtn
.
setTitle
(
"新增受养人"
.
local
,
for
:
.
normal
)
view
.
clickBlock
=
{[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
if
let
block
=
self
.
new
Work
Block
{
if
let
block
=
self
.
new
Adopter
Block
{
block
()
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AddAdopters/V/YHAdopterIncomeFileCountTableViewCell.swift
0 → 100644
View file @
52fb1494
//
// YHAdopterIncomeFileCountTableViewCell.swift
// galaxy
//
// Created by EDY on 2024/8/19.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
import
AttributedString
class
YHAdopterIncomeFileCountTableViewCell
:
UITableViewCell
{
var
alertLabel
:
UILabel
!
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
// Initialization code
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
super
.
setSelected
(
selected
,
animated
:
animated
)
// Configure the view for the selected state
}
required
init
?(
coder
:
NSCoder
)
{
super
.
init
(
coder
:
coder
)
}
override
init
(
style
:
UITableViewCell
.
CellStyle
,
reuseIdentifier
:
String
?)
{
super
.
init
(
style
:
style
,
reuseIdentifier
:
reuseIdentifier
)
selectionStyle
=
.
none
setupUI
()
}
func
setupUI
()
{
backgroundColor
=
.
clear
alertLabel
=
{
let
label
=
UILabel
()
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
label
.
textColor
=
UIColor
.
mainTextColor50
label
.
textAlignment
=
.
center
label
.
numberOfLines
=
0
let
a
:
ASAttributedString
=
.
init
(
"已上传 "
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
12
)),
.
foreground
(
UIColor
.
labelTextColor2
))
let
b
:
ASAttributedString
=
.
init
(
" 0/10"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
12
)),
.
foreground
(
UIColor
(
hex
:
0x222222
)))
let
c
:
ASAttributedString
=
.
init
(
" 张图片或文件"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
12
)),
.
foreground
(
UIColor
.
labelTextColor2
))
label
.
attributed
.
text
=
a
+
b
+
c
return
label
}()
contentView
.
addSubview
(
alertLabel
)
alertLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
18
)
make
.
bottom
.
equalTo
(
0
)
make
.
right
.
equalTo
(
-
18
)
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AddAdopters/V/YHAdopterIncomeFileTableViewCell.swift
0 → 100644
View file @
52fb1494
//
// YHAdopterIncomeFileTableViewCell.swift
// galaxy
//
// Created by EDY on 2024/8/19.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHAdopterIncomeFileTableViewCell
:
UITableViewCell
{
typealias
ExperienceListBlock
=
(
_
model
:
YHWorkExperienceFileModel
,
_
type
:
YHWorkFileClickType
)
->
()
typealias
AddIntroductionBlock
=
()
->
()
var
experienceListBlock
:
ExperienceListBlock
?
var
selectIntroductionBlock
:
AddIntroductionBlock
?
var
mainItemView
:
UIView
!
var
dataSource
:
[
YHWorkExperienceFileModel
]?{
didSet
{
updateAllViews
()
}
}
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
// Initialization code
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
super
.
setSelected
(
selected
,
animated
:
animated
)
// Configure the view for the selected state
}
required
init
?(
coder
:
NSCoder
)
{
super
.
init
(
coder
:
coder
)
}
override
init
(
style
:
UITableViewCell
.
CellStyle
,
reuseIdentifier
:
String
?)
{
super
.
init
(
style
:
style
,
reuseIdentifier
:
reuseIdentifier
)
selectionStyle
=
.
none
setupUI
()
}
func
setupUI
()
{
backgroundColor
=
.
clear
mainItemView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
white
return
view
}()
contentView
.
addSubview
(
mainItemView
)
mainItemView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalToSuperview
()
make
.
bottom
.
equalToSuperview
()
make
.
top
.
equalTo
(
16
)
}
}
func
updateAllViews
()
{
mainItemView
.
removeSubviews
()
for
i
in
0
..<
(
dataSource
?
.
count
??
0
)
{
let
itemView
=
YHWorkFileItemView
()
itemView
.
backgroundColor
=
UIColor
.
pageBkgColor
itemView
.
dataSource
=
dataSource
?[
i
]
itemView
.
block
=
{[
weak
self
]
model
,
type
in
guard
let
self
=
self
else
{
return
}
if
let
block
=
self
.
experienceListBlock
{
block
(
model
,
type
)
}
}
mainItemView
.
addSubview
(
itemView
)
itemView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalToSuperview
()
make
.
top
.
equalTo
(
55
*
i
)
make
.
height
.
equalTo
(
55
)
}
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AddAdopters/V/YHAdopterIncomeTitleTableViewCell.swift
0 → 100644
View file @
52fb1494
//
// YHAdopterIncomeTitleTableViewCell.swift
// galaxy
//
// Created by EDY on 2024/8/19.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHAdopterIncomeTitleTableViewCell
:
UITableViewCell
{
var
titleLabel
:
UILabel
!
var
subTitleLabel
:
UILabel
!
var
alertLabel
:
UILabel
!
var
failLabel
:
UILabel
!
var
failImageView
:
UIImageView
!
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
// Initialization code
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
super
.
setSelected
(
selected
,
animated
:
animated
)
// Configure the view for the selected state
}
required
init
?(
coder
:
NSCoder
)
{
super
.
init
(
coder
:
coder
)
}
override
init
(
style
:
UITableViewCell
.
CellStyle
,
reuseIdentifier
:
String
?)
{
super
.
init
(
style
:
style
,
reuseIdentifier
:
reuseIdentifier
)
selectionStyle
=
.
none
setupUI
()
}
func
setupUI
()
{
backgroundColor
=
.
clear
titleLabel
=
{
let
label
=
UILabel
()
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
17
)
label
.
textColor
=
UIColor
.
mainTextColor
label
.
text
=
"存款证明"
return
label
}()
contentView
.
addSubview
(
titleLabel
)
titleLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
18
)
make
.
top
.
equalTo
(
16
)
make
.
height
.
equalTo
(
24
)
}
subTitleLabel
=
{
let
label
=
UILabel
()
label
.
text
=
"已完成"
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
10
)
label
.
textColor
=
UIColor
(
hex
:
0x3cc694
)
label
.
backgroundColor
=
UIColor
(
hex
:
0xf0fbf7
)
//带上传
// label.textColor = UIColor.brandMainColor
// label.backgroundColor = UIColor(hex: 0xf0f4fb)
//审核中
// label.textColor = UIColor(hex: 0xff8000)
// label.backgroundColor = UIColor(hex: 0xfff5eb)
//已驳回
// label.textColor = UIColor(hex: 0xf81d22)
// label.backgroundColor = UIColor(hex: 0xfff2f2)
return
label
}()
contentView
.
addSubview
(
subTitleLabel
)
subTitleLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
titleLabel
.
snp
.
right
)
.
offset
(
4
)
make
.
width
.
equalTo
(
38
)
make
.
height
.
equalTo
(
16
)
make
.
centerY
.
equalTo
(
titleLabel
.
snp
.
centerY
)
}
alertLabel
=
{
let
label
=
UILabel
()
label
.
text
=
"存款证明有效期为3个月,并且存款金额为每个成员(包括额外新增受养人)最低为12万"
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
label
.
textColor
=
UIColor
.
mainTextColor50
label
.
numberOfLines
=
0
return
label
}()
contentView
.
addSubview
(
alertLabel
)
alertLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
18
)
make
.
top
.
equalTo
(
46
)
make
.
right
.
equalTo
(
-
18
)
}
failLabel
=
{
let
label
=
UILabel
()
label
.
text
=
"驳回原因:存款证明钱不够"
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
label
.
textColor
=
UIColor
(
hex
:
0xf81d22
)
return
label
}()
contentView
.
addSubview
(
failLabel
)
failLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
36
)
make
.
bottom
.
equalTo
(
0
)
make
.
height
.
equalTo
(
17
)
make
.
right
.
equalToSuperview
()
}
failImageView
=
{
let
view
=
UIImageView
()
view
.
image
=
UIImage
(
named
:
"service_adopter_income_fail"
)
return
view
}()
contentView
.
addSubview
(
failImageView
)
failImageView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
20
)
make
.
width
.
height
.
equalTo
(
12
)
make
.
centerY
.
equalTo
(
failLabel
.
snp
.
centerY
)
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AddAdopters/V/YHAdopterUploadTableViewCell.swift
0 → 100644
View file @
52fb1494
//
// YHAdopterUploadTableViewCell.swift
// galaxy
//
// Created by EDY on 2024/8/19.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHAdopterUploadTableViewCell
:
UITableViewCell
{
typealias
NewFileBlock
=
()
->
()
var
newFileBlock
:
NewFileBlock
?
var
bottomView
:
YHWorkItemAddView
!
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
// Initialization code
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
super
.
setSelected
(
selected
,
animated
:
animated
)
// Configure the view for the selected state
}
required
init
?(
coder
:
NSCoder
)
{
super
.
init
(
coder
:
coder
)
}
override
init
(
style
:
UITableViewCell
.
CellStyle
,
reuseIdentifier
:
String
?)
{
super
.
init
(
style
:
style
,
reuseIdentifier
:
reuseIdentifier
)
selectionStyle
=
.
none
setupUI
()
}
func
setupUI
()
{
backgroundColor
=
.
clear
bottomView
=
{
let
view
=
YHWorkItemAddView
()
view
.
addBtn
.
setTitle
(
"上传"
.
local
,
for
:
.
normal
)
view
.
clickBlock
=
{[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
if
let
block
=
self
.
newFileBlock
{
block
()
}
}
return
view
}()
contentView
.
addSubview
(
bottomView
)
bottomView
.
snp
.
makeConstraints
{
make
in
make
.
right
.
equalTo
(
-
18
)
make
.
left
.
equalTo
(
18
)
make
.
height
.
equalTo
(
45
)
make
.
bottom
.
equalToSuperview
()
}
}
}
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/新增受养人/service_adopter_income_fail 1.imageset/Contents.json
0 → 100644
View file @
52fb1494
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"service_adopter_income_fail@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"service_adopter_income_fail@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/新增受养人/service_adopter_income_fail 1.imageset/service_adopter_income_fail@2x.png
0 → 100644
View file @
52fb1494
622 Bytes
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/新增受养人/service_adopter_income_fail 1.imageset/service_adopter_income_fail@3x.png
0 → 100644
View file @
52fb1494
853 Bytes
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