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
b1c3cae4
Commit
b1c3cae4
authored
May 10, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 去掉OCR loading
parent
38582e2c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
43 deletions
+24
-43
YHIdentityCardCell.swift
...(我的信息流程)/FamilyMember(家庭成员信息表)/V/YHIdentityCardCell.swift
+12
-20
YHMainInformationCardTableViewCell.swift
...mation(主申请人信息)/V/YHMainInformationCardTableViewCell.swift
+12
-23
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/FamilyMember(家庭成员信息表)/V/YHIdentityCardCell.swift
View file @
b1c3cae4
...
...
@@ -305,6 +305,9 @@ class YHIdentityCardCell: UITableViewCell {
self
.
frontImageButton
.
startRotationAnimation
()
self
.
viewModel
.
uploadImage
(
image
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
self
.
frontImageButton
.
stopRotationAnimation
()
self
.
frontImageButton
.
setContent
(
""
,
""
)
guard
let
url
=
success
else
{
return
}
self
.
viewModel
.
updateModel
(
self
.
type
,
isFront
:
true
,
url
:
url
)
self
.
frontImageButton
.
setBackgroundImage
(
image
,
for
:
.
normal
)
...
...
@@ -312,24 +315,18 @@ class YHIdentityCardCell: UITableViewCell {
self
.
viewModel
.
getPublicImageUrl
(
url
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
guard
let
url
=
success
else
{
return
}
if
self
.
type
==
.
identity
{
self
.
viewModel
.
requestCnIDCardMessage
(
url
,
isBack
:
0
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
self
.
frontImageButton
.
stopRotationAnimation
()
self
.
frontImageButton
.
setContent
(
""
,
""
)
if
success
{
}
else
{
if
!
success
{
YHHUD
.
flash
(
message
:
error
?
.
errorMsg
??
""
)
}
}
}
else
{
self
.
viewModel
.
requestHkIDCardMessage
(
url
,
isBack
:
0
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
self
.
frontImageButton
.
stopRotationAnimation
()
self
.
frontImageButton
.
setContent
(
""
,
""
)
if
success
{
}
else
{
if
!
success
{
YHHUD
.
flash
(
message
:
error
?
.
errorMsg
??
""
)
}
}
...
...
@@ -361,6 +358,9 @@ class YHIdentityCardCell: UITableViewCell {
self
.
backSurfaceImageButton
.
startRotationAnimation
()
self
.
viewModel
.
uploadImage
(
image
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
self
.
backSurfaceImageButton
.
stopRotationAnimation
()
self
.
backSurfaceImageButton
.
setContent
(
""
,
""
)
guard
let
url
=
success
else
{
return
}
self
.
backSurfaceImageButton
.
setBackgroundImage
(
image
,
for
:
.
normal
)
self
.
viewModel
.
updateModel
(
self
.
type
,
isFront
:
false
,
url
:
url
)
...
...
@@ -371,22 +371,14 @@ class YHIdentityCardCell: UITableViewCell {
if
self
.
type
==
.
identity
{
self
.
viewModel
.
requestCnIDCardMessage
(
url
,
isBack
:
1
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
self
.
backSurfaceImageButton
.
stopRotationAnimation
()
self
.
backSurfaceImageButton
.
setContent
(
""
,
""
)
if
success
{
}
else
{
YHHUD
.
flash
(
message
:
error
?
.
errorMsg
??
""
)
if
!
success
{
YHHUD
.
flash
(
message
:
error
?
.
errorMsg
??
""
)
}
}
}
else
{
self
.
viewModel
.
requestHkIDCardMessage
(
url
,
isBack
:
1
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
self
.
backSurfaceImageButton
.
stopRotationAnimation
()
self
.
backSurfaceImageButton
.
setContent
(
""
,
""
)
if
success
{
}
else
{
if
!
success
{
YHHUD
.
flash
(
message
:
error
?
.
errorMsg
??
""
)
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/MainApplicantInformation(主申请人信息)/V/YHMainInformationCardTableViewCell.swift
View file @
b1c3cae4
...
...
@@ -313,31 +313,27 @@ class YHMainInformationCardTableViewCell: UITableViewCell {
self
.
frontImageButton
.
startRotationAnimation
()
self
.
viewModel
.
uploadImage
(
image
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
self
.
frontImageButton
.
stopRotationAnimation
()
self
.
frontImageButton
.
setContent
(
""
,
""
)
guard
let
url
=
success
else
{
return
}
self
.
viewModel
.
updateModel
(
self
.
type
,
isFront
:
true
,
url
:
url
)
self
.
frontImageButton
.
setBackgroundImage
(
image
,
for
:
.
normal
)
self
.
frontDeleteButton
.
isHidden
=
false
self
.
viewModel
.
getPublicImageUrl
(
url
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
guard
let
url
=
success
else
{
return
}
if
self
.
type
==
.
identity
{
self
.
viewModel
.
requestCnIDCardMessage
(
url
,
isBack
:
0
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
self
.
frontImageButton
.
stopRotationAnimation
()
self
.
frontImageButton
.
setContent
(
""
,
""
)
if
success
{
}
else
{
if
!
success
{
YHHUD
.
flash
(
message
:
error
?
.
errorMsg
??
""
)
}
}
}
else
{
self
.
viewModel
.
requestHkIDCardMessage
(
url
,
isBack
:
0
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
self
.
frontImageButton
.
stopRotationAnimation
()
self
.
frontImageButton
.
setContent
(
""
,
""
)
if
success
{
}
else
{
if
!
success
{
YHHUD
.
flash
(
message
:
error
?
.
errorMsg
??
""
)
}
}
...
...
@@ -369,6 +365,9 @@ class YHMainInformationCardTableViewCell: UITableViewCell {
self
.
backSurfaceImageButton
.
startRotationAnimation
()
self
.
viewModel
.
uploadImage
(
image
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
self
.
backSurfaceImageButton
.
stopRotationAnimation
()
self
.
backSurfaceImageButton
.
setContent
(
""
,
""
)
guard
let
url
=
success
else
{
return
}
self
.
backSurfaceImageButton
.
setBackgroundImage
(
image
,
for
:
.
normal
)
self
.
viewModel
.
updateModel
(
self
.
type
,
isFront
:
false
,
url
:
url
)
...
...
@@ -378,23 +377,13 @@ class YHMainInformationCardTableViewCell: UITableViewCell {
guard
let
url
=
success
else
{
return
}
if
self
.
type
==
.
identity
{
self
.
viewModel
.
requestCnIDCardMessage
(
url
,
isBack
:
1
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
self
.
backSurfaceImageButton
.
stopRotationAnimation
()
self
.
backSurfaceImageButton
.
setContent
(
""
,
""
)
if
success
{
}
else
{
if
!
success
{
YHHUD
.
flash
(
message
:
error
?
.
errorMsg
??
""
)
}
}
}
else
{
self
.
viewModel
.
requestHkIDCardMessage
(
url
,
isBack
:
1
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
self
.
backSurfaceImageButton
.
stopRotationAnimation
()
self
.
backSurfaceImageButton
.
setContent
(
""
,
""
)
if
success
{
}
else
{
if
!
success
{
YHHUD
.
flash
(
message
:
error
?
.
errorMsg
??
""
)
}
}
...
...
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