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
3fc029cd
Commit
3fc029cd
authored
Oct 17, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 护照修改
parent
bbbb97f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
YHResignCertificateDetailHkViewController.swift
...续期证件管理)/C/YHResignCertificateDetailHkViewController.swift
+13
-0
YHResignCertificatePassportTableViewCell.swift
...(续期证件管理)/V/YHResignCertificatePassportTableViewCell.swift
+8
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignCertificateManage(续期证件管理)/C/YHResignCertificateDetailHkViewController.swift
View file @
3fc029cd
...
@@ -293,12 +293,19 @@ extension YHResignCertificateDetailHkViewController: UITableViewDelegate, UITabl
...
@@ -293,12 +293,19 @@ extension YHResignCertificateDetailHkViewController: UITableViewDelegate, UITabl
self
.
viewModel
.
getHKCardInfoByOcr
(
url
,
isBack
:
0
)
{
success
,
result
in
self
.
viewModel
.
getHKCardInfoByOcr
(
url
,
isBack
:
0
)
{
success
,
result
in
YHHUD
.
hide
()
YHHUD
.
hide
()
if
success
,
let
result
=
result
{
if
success
,
let
result
=
result
{
if
!
result
.
card_num
.
isEmpty
{
self
.
dataModel
.
cert_info
.
number
=
result
.
card_num
}
if
!
result
.
issuing_authority
.
isEmpty
{
self
.
dataModel
.
cert_info
.
address
=
result
.
issuing_authority
}
if
!
result
.
term_begins
.
isEmpty
{
if
!
result
.
term_begins
.
isEmpty
{
self
.
dataModel
.
cert_info
.
issue_start
=
result
.
term_begins
self
.
dataModel
.
cert_info
.
issue_start
=
result
.
term_begins
}
}
if
!
result
.
end_of_term
.
isEmpty
{
if
!
result
.
end_of_term
.
isEmpty
{
self
.
dataModel
.
cert_info
.
issue_end
=
result
.
end_of_term
self
.
dataModel
.
cert_info
.
issue_end
=
result
.
end_of_term
}
}
}
else
{
}
else
{
// OCR 无法识别
// OCR 无法识别
self
.
failString
=
"非逗留(D)签证,请检查文件"
self
.
failString
=
"非逗留(D)签证,请检查文件"
...
@@ -309,6 +316,12 @@ extension YHResignCertificateDetailHkViewController: UITableViewDelegate, UITabl
...
@@ -309,6 +316,12 @@ extension YHResignCertificateDetailHkViewController: UITableViewDelegate, UITabl
self
.
viewModel
.
getHKCardBackInfoByOcr
(
url
,
isBack
:
1
)
{
success
,
result
in
self
.
viewModel
.
getHKCardBackInfoByOcr
(
url
,
isBack
:
1
)
{
success
,
result
in
YHHUD
.
hide
()
YHHUD
.
hide
()
if
success
,
let
result
=
result
{
if
success
,
let
result
=
result
{
if
!
result
.
card_num
.
isEmpty
{
self
.
dataModel
.
cert_info
.
number
=
result
.
card_num
}
if
!
result
.
issuing_authority
.
isEmpty
{
self
.
dataModel
.
cert_info
.
address
=
result
.
issuing_authority
}
if
!
result
.
back_term_begins
.
isEmpty
{
self
.
dataModel
.
cert_info
.
validate_start
=
result
.
back_term_begins
if
!
result
.
back_term_begins
.
isEmpty
{
self
.
dataModel
.
cert_info
.
validate_start
=
result
.
back_term_begins
}
}
if
!
result
.
back_end_of_term
.
isEmpty
{
if
!
result
.
back_end_of_term
.
isEmpty
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignCertificateManage(续期证件管理)/V/YHResignCertificatePassportTableViewCell.swift
View file @
3fc029cd
...
@@ -54,10 +54,18 @@ class YHResignCertificatePassportTableViewCell: UITableViewCell {
...
@@ -54,10 +54,18 @@ class YHResignCertificatePassportTableViewCell: UITableViewCell {
var
urls
:
[
String
]?
{
var
urls
:
[
String
]?
{
didSet
{
didSet
{
guard
let
firstUrl
=
urls
?
.
first
,
firstUrl
.
count
!=
0
else
{
guard
let
firstUrl
=
urls
?
.
first
,
firstUrl
.
count
!=
0
else
{
cerInfoLabel
.
isHidden
=
true
cerNumberView
.
isHidden
=
true
cerSignPlaceView
.
isHidden
=
true
cardLabel
.
isHidden
=
true
cardBeginView
.
isHidden
=
true
cardBeginView
.
isHidden
=
true
cardEndView
.
isHidden
=
true
cardEndView
.
isHidden
=
true
return
return
}
}
cerInfoLabel
.
isHidden
=
false
cerNumberView
.
isHidden
=
false
cerSignPlaceView
.
isHidden
=
false
cardLabel
.
isHidden
=
false
cardBeginView
.
isHidden
=
false
cardBeginView
.
isHidden
=
false
cardEndView
.
isHidden
=
false
cardEndView
.
isHidden
=
false
self
.
firstUrl
=
firstUrl
self
.
firstUrl
=
firstUrl
...
...
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