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
5b400ad7
Commit
5b400ad7
authored
Sep 04, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 旅行
parent
269163df
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
7 deletions
+35
-7
YHTravelDocsPreparationDetailVC.swift
...aration(6 旅行证件准备)/C/YHTravelDocsPreparationDetailVC.swift
+1
-1
YHTravelDocsPreparationDetailModel.swift
...tion(6 旅行证件准备)/M/YHTravelDocsPreparationDetailModel.swift
+4
-1
YHTravelCertificateUploadCell.swift
...eparation(6 旅行证件准备)/V/YHTravelCertificateUploadCell.swift
+30
-5
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/TravelDocumentsPreparation(6 旅行证件准备)/C/YHTravelDocsPreparationDetailVC.swift
View file @
5b400ad7
...
...
@@ -212,7 +212,7 @@ class YHTravelDocsPreparationDetailVC: YHBaseViewController {
return
}
//
saveAllTravelCertificate()
saveAllTravelCertificate
()
}
func
checkInfo
()
->
Bool
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/TravelDocumentsPreparation(6 旅行证件准备)/M/YHTravelDocsPreparationDetailModel.swift
View file @
5b400ad7
...
...
@@ -55,7 +55,10 @@ class YHTravelDocsPreparationDetailItemModel: SmartCodable {
var
isCanEdit
:
Bool
=
true
// OCR识别失败
var
isOCR_failed
:
Bool
=
false
//
var
frontUrlDate
:
TimeInterval
=
0
var
backUrlDate
:
TimeInterval
=
0
required
init
()
{
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/TravelDocumentsPreparation(6 旅行证件准备)/V/YHTravelCertificateUploadCell.swift
View file @
5b400ad7
...
...
@@ -120,6 +120,8 @@ class YHTravelCertificateUploadCell: UITableViewCell {
view
.
urlBlock
=
{
[
weak
self
]
url
,
index
in
guard
let
self
=
self
else
{
return
}
self
.
dataModel
.
frontUrlDate
=
Date
()
.
timeIntervalSince1970
if
self
.
dataModel
.
type
==
3
{
// 港澳通行证
self
.
dataModel
.
img_front
=
url
self
.
getOCR
(
url
:
url
,
isBack
:
0
)
...
...
@@ -146,6 +148,7 @@ class YHTravelCertificateUploadCell: UITableViewCell {
self
.
dataModel
.
img_back
=
""
}
self
.
dataModel
.
status
=
0
self
.
dataModel
.
frontUrlDate
=
0
self
.
updateBlock
?(
false
)
}
return
view
...
...
@@ -158,6 +161,7 @@ class YHTravelCertificateUploadCell: UITableViewCell {
[
weak
self
]
url
,
index
in
guard
let
self
=
self
else
{
return
}
self
.
dataModel
.
backUrlDate
=
Date
()
.
timeIntervalSince1970
if
self
.
dataModel
.
type
==
3
{
// 港澳通行证
self
.
dataModel
.
img_back
=
url
self
.
updateBlock
?(
false
)
...
...
@@ -184,6 +188,7 @@ class YHTravelCertificateUploadCell: UITableViewCell {
self
.
dataModel
.
img_back
=
""
}
self
.
dataModel
.
status
=
0
self
.
dataModel
.
backUrlDate
=
0
self
.
updateBlock
?(
false
)
}
return
view
...
...
@@ -313,15 +318,35 @@ class YHTravelCertificateUploadCell: UITableViewCell {
certificateBackView
.
state
=
!
model
.
isCanEdit
var
frontDefaultImg
=
"credentials_default_front"
var
backDefaultImg
=
"credentials_default_back"
let
backDefaultImg
=
"credentials_default_back"
if
model
.
type
==
2
{
// 中国居留许可证
frontDefaultImg
=
"credentials_default_residence_front"
}
certificateFrontView
.
defaultImageName
=
frontDefaultImg
certificateBackView
.
defaultImageName
=
backDefaultImg
certificateFrontView
.
url
=
model
.
img_front
certificateBackView
.
url
=
model
.
img_back
// certificateFrontView.defaultImageName = frontDefaultImg
// certificateBackView.defaultImageName = backDefaultImg
//
// certificateFrontView.url = model.img_front
// certificateBackView.url = model.img_back
if
!
model
.
img_front
.
isEmpty
,
certificateFrontView
.
url
==
model
.
img_front
{
if
model
.
frontUrlDate
-
Date
()
.
timeIntervalSince1970
>
5*
60
{
certificateFrontView
.
url
=
model
.
img_front
}
}
else
{
certificateFrontView
.
defaultImageName
=
frontDefaultImg
certificateFrontView
.
url
=
model
.
img_front
}
if
!
model
.
img_back
.
isEmpty
,
certificateBackView
.
url
==
model
.
img_back
{
if
model
.
backUrlDate
-
Date
()
.
timeIntervalSince1970
>
5*
60
{
certificateBackView
.
url
=
model
.
img_back
}
}
else
{
certificateBackView
.
defaultImageName
=
backDefaultImg
certificateBackView
.
url
=
model
.
img_back
}
// 除了港澳通行证需要上传正反面 其他都是上传正面
certificateBackView
.
isHidden
=
model
.
type
!=
3
...
...
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