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
1be88d79
Commit
1be88d79
authored
Aug 24, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节修改
parent
1aee84a5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
7 deletions
+25
-7
YHUploadCertificateVC.swift
.../UploadCertificate(7上传过关证件)/C/YHUploadCertificateVC.swift
+14
-3
YHUploadCertificateDetailCell.swift
...ertificate(7上传过关证件)/V/YHUploadCertificateDetailCell.swift
+4
-4
YHUploadCertificateTitleCell.swift
...Certificate(7上传过关证件)/V/YHUploadCertificateTitleCell.swift
+7
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/UploadCertificate(7上传过关证件)/C/YHUploadCertificateVC.swift
View file @
1be88d79
...
@@ -69,6 +69,9 @@ class YHUploadCertificateVC: YHBaseViewController {
...
@@ -69,6 +69,9 @@ class YHUploadCertificateVC: YHBaseViewController {
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
setupUI
()
setupUI
()
orderId
=
150661
//for test hjl
loadData
()
loadData
()
}
}
}
}
...
@@ -137,9 +140,9 @@ extension YHUploadCertificateVC: UITableViewDelegate, UITableViewDataSource {
...
@@ -137,9 +140,9 @@ extension YHUploadCertificateVC: UITableViewDelegate, UITableViewDataSource {
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
if
let
model
=
viewModel
.
uploadCertificateDataListModel
{
if
let
model
=
viewModel
.
uploadCertificateDataListModel
{
if
section
==
0
{
if
section
==
0
{
return
model
.
small_whites
.
count
return
model
.
small_whites
.
count
+
1
}
else
if
section
==
1
{
}
else
if
section
==
1
{
return
model
.
id_cards
.
count
return
model
.
id_cards
.
count
+
1
}
}
}
}
return
0
return
0
...
@@ -148,7 +151,15 @@ extension YHUploadCertificateVC: UITableViewDelegate, UITableViewDataSource {
...
@@ -148,7 +151,15 @@ extension YHUploadCertificateVC: UITableViewDelegate, UITableViewDataSource {
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
if
0
<=
indexPath
.
section
&&
indexPath
.
section
<
items
.
count
{
if
0
<=
indexPath
.
section
&&
indexPath
.
section
<
items
.
count
{
if
indexPath
.
row
==
0
{
if
indexPath
.
row
==
0
{
let
warningCell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHUploadCertificateTitleCell
.
cellReuseIdentifier
,
for
:
indexPath
)
let
warningCell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHUploadCertificateTitleCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHUploadCertificateTitleCell
var
title
=
""
if
indexPath
.
section
==
0
{
title
=
"小白条"
}
else
{
title
=
"香港身份证"
}
warningCell
.
updateTitle
(
title
)
return
warningCell
return
warningCell
}
else
{
}
else
{
let
approveCell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHUploadCertificateDetailCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHUploadCertificateDetailCell
let
approveCell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHUploadCertificateDetailCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHUploadCertificateDetailCell
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/UploadCertificate(7上传过关证件)/V/YHUploadCertificateDetailCell.swift
View file @
1be88d79
...
@@ -95,16 +95,16 @@ private extension YHUploadCertificateDetailCell {
...
@@ -95,16 +95,16 @@ private extension YHUploadCertificateDetailCell {
func
updateCell
()
{
func
updateCell
()
{
if
isLastCell
{
if
isLastCell
{
let
corner
=
UIRectCorner
(
rawValue
:
UIRectCorner
.
bottomLeft
.
rawValue
|
UIRectCorner
.
bottomRight
.
rawValue
)
let
corner
=
UIRectCorner
(
rawValue
:
UIRectCorner
.
bottomLeft
.
rawValue
|
UIRectCorner
.
bottomRight
.
rawValue
)
let
path
=
UIBezierPath
(
roundedRect
:
bounds
,
byRoundingCorners
:
corner
,
cornerRadii
:
CGSizeMake
(
8
,
8
))
;
let
path
=
UIBezierPath
(
roundedRect
:
bounds
,
byRoundingCorners
:
corner
,
cornerRadii
:
CGSizeMake
(
8
,
8
))
let
layer
=
CAShapeLayer
()
;
let
layer
=
CAShapeLayer
()
layer
.
frame
=
whiteContentView
.
bounds
;
layer
.
frame
=
whiteContentView
.
bounds
;
layer
.
path
=
path
.
cgPath
;
layer
.
path
=
path
.
cgPath
;
whiteContentView
.
layer
.
mask
=
layer
;
whiteContentView
.
layer
.
mask
=
layer
whiteContentView
.
clipsToBounds
=
true
whiteContentView
.
clipsToBounds
=
true
lineView
.
isHidden
=
true
lineView
.
isHidden
=
true
}
else
{
}
else
{
whiteContentView
.
layer
.
mask
=
nil
;
whiteContentView
.
layer
.
mask
=
nil
lineView
.
isHidden
=
false
lineView
.
isHidden
=
false
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/UploadCertificate(7上传过关证件)/V/YHUploadCertificateTitleCell.swift
View file @
1be88d79
...
@@ -90,4 +90,11 @@ class YHUploadCertificateTitleCell: UITableViewCell {
...
@@ -90,4 +90,11 @@ class YHUploadCertificateTitleCell: UITableViewCell {
self
.
whiteContentView
.
clipsToBounds
=
true
self
.
whiteContentView
.
clipsToBounds
=
true
}
}
}
}
func
updateTitle
(
_
title
:
String
)
{
titleLable
.
text
=
title
}
}
}
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