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
9a508c05
Commit
9a508c05
authored
Oct 17, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
续签补件逻辑补充
parent
019d3625
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
68 additions
and
12 deletions
+68
-12
YHServiceOrderListViewController.swift
...entService(服务中心)/C/YHServiceOrderListViewController.swift
+0
-1
YHResignUploadDocDetailViewController.swift
...adDoc(续签补件)/C/YHResignUploadDocDetailViewController.swift
+23
-10
YHResignUploadDocListCell.swift
...)/ResignUploadDoc(续签补件)/V/YHResignUploadDocListCell.swift
+1
-1
YHResignUploadDetailViewModel.swift
...ignUploadDoc(续签补件)/VM/YHResignUploadDetailViewModel.swift
+41
-0
YHAllApiName.swift
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
+3
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/C/YHServiceOrderListViewController.swift
View file @
9a508c05
...
...
@@ -446,7 +446,6 @@ extension YHServiceOrderListView : UITableViewDelegate,UITableViewDataSource {
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
let
model
=
self
.
arrDataForSeviceCenterProgress
[
indexPath
.
row
]
if
model
.
status
==
1
||
model
.
status
==
4
{
YHServiceOrderListView
.
jumpToMessageController
(
type
:
model
.
type
,
orderId
:
orderID
,
stepID
)
return
}
else
{
YHServiceOrderListView
.
jumpToMessageController
(
type
:
model
.
type
,
orderId
:
orderID
,
stepID
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignUploadDoc(续签补件)/C/YHResignUploadDocDetailViewController.swift
View file @
9a508c05
...
...
@@ -52,6 +52,8 @@ class YHResignUploadDocDetailViewController: YHBaseViewController {
if
#available(iOS 11.0, *)
{
tableView
.
contentInsetAdjustmentBehavior
=
.
never
}
tableView
.
estimatedSectionHeaderHeight
=
0.01
tableView
.
estimatedSectionFooterHeight
=
0.01
tableView
.
showsVerticalScrollIndicator
=
false
tableView
.
backgroundColor
=
.
white
tableView
.
separatorStyle
=
.
none
...
...
@@ -113,8 +115,21 @@ class YHResignUploadDocDetailViewController: YHBaseViewController {
}
@objc
func
didClickUploadBtn
()
{
if
self
.
materialModel
.
unavailable_reason
.
count
!=
0
{
self
.
viewModel
.
postUploadDocFillUnavailableReason
(
id
:
id
,
reason
:
self
.
materialModel
.
unavailable_reason
)
{[
weak
self
]
success
,
err
in
guard
let
self
=
self
else
{
return
}
if
success
{
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
}
}
else
{
self
.
viewModel
.
postUploadDocUpload
(
id
:
id
,
file
:
self
.
items
)
{
[
weak
self
]
success
,
err
in
guard
let
self
=
self
else
{
return
}
if
success
{
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
}
}
}
func
createUI
()
{
...
...
@@ -365,7 +380,7 @@ extension YHResignUploadDocDetailViewController: UITableViewDelegate, UITableVie
let
model
=
YHResignUploadDetailFileListModel
()
model
.
url
=
item
model
.
name
=
"
\(
UInt64
(
timestamp
)
)
"
+
".jpg"
// model.uploadedA
t = formattedDate
model
.
updated_a
t
=
formattedDate
self
.
items
.
append
(
model
)
}
self
.
tableView
.
reloadData
()
...
...
@@ -393,10 +408,10 @@ extension YHResignUploadDocDetailViewController: UITableViewDelegate, UITableVie
return
77.0
}
if
indexPath
.
section
==
2
{
return
61
return
57
}
if
indexPath
.
section
==
3
{
return
4
5
return
4
1
}
return
55.0
}
...
...
@@ -408,7 +423,7 @@ extension YHResignUploadDocDetailViewController: UITableViewDelegate, UITableVie
if
section
==
1
{
return
UITableView
.
automaticDimension
}
return
0.0
1
return
1
}
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
...
...
@@ -486,10 +501,7 @@ extension YHResignUploadDocDetailViewController: UITableViewDelegate, UITableVie
if
section
==
0
{
return
UITableView
.
automaticDimension
}
// if section == 1 {
// return 60.0
// }
return
0.01
return
1
}
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
...
...
@@ -626,6 +638,7 @@ extension YHResignUploadDocDetailViewController: UITableViewDelegate, UITableVie
}
return
view
}
view
.
frame
=
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
0.01
)
return
view
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignUploadDoc(续签补件)/V/YHResignUploadDocListCell.swift
View file @
9a508c05
...
...
@@ -191,7 +191,7 @@ class YHResignUploadDocItemView: UIView {
addSubview
(
titleLabel
)
titleLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
top
.
bottom
.
equalToSuperview
()
make
.
right
.
equalTo
(
-
5
0
)
make
.
right
.
equalTo
(
-
7
0
)
}
explainLabel
=
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignUploadDoc(续签补件)/VM/YHResignUploadDetailViewModel.swift
View file @
9a508c05
...
...
@@ -39,6 +39,47 @@ extension YHResignUploadDetailViewModel {
}
}
func
postUploadDocFillUnavailableReason
(
id
:
Int
,
reason
:
String
,
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
err
:
YHErrorModel
?)
->
())
{
let
params
:
[
String
:
Any
]
=
[
"id"
:
id
,
"unavailable_reason"
:
reason
]
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
ResignUploadDoc
.
reason
let
_
=
YHNetRequest
.
postRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
//1. json字符串 转 对象
guard
let
self
=
self
else
{
return
}
if
json
.
code
==
200
{
callBackBlock
(
true
,
nil
)
}
else
{
let
err
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
.
isEmpty
?
""
:
json
.
msg
)
callBackBlock
(
false
,
err
)
}
}
failBlock
:
{
err
in
callBackBlock
(
false
,
err
)
}
}
func
postUploadDocUpload
(
id
:
Int
,
file
:
[
YHResignUploadDetailFileListModel
],
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
err
:
YHErrorModel
?)
->
())
{
var
urls
:
[
Any
]
=
[]
for
item
in
file
{
let
file
=
[
"name"
:
item
.
name
,
"url"
:
item
.
url
,
"upload_date"
:
item
.
updated_at
]
urls
.
append
(
file
)
}
let
params
:
[
String
:
Any
]
=
[
"id"
:
id
,
"file_list"
:
urls
]
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
ResignUploadDoc
.
upload
let
_
=
YHNetRequest
.
postRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
//1. json字符串 转 对象
guard
let
self
=
self
else
{
return
}
if
json
.
code
==
200
{
callBackBlock
(
true
,
nil
)
}
else
{
let
err
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
.
isEmpty
?
""
:
json
.
msg
)
callBackBlock
(
false
,
err
)
}
}
failBlock
:
{
err
in
callBackBlock
(
false
,
err
)
}
}
}
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
View file @
9a508c05
...
...
@@ -598,6 +598,9 @@ class YHAllApiName {
static
let
progress
=
"super-app/renewal/supplement/progress"
static
let
list
=
"super-app/renewal/supplement/list"
static
let
detail
=
"super-app/renewal/supplement/upload/detail"
static
let
reason
=
"super-app/renewal/supplement/fill-unavailable-reason"
static
let
upload
=
"super-app/renewal/supplement/confirm-upload"
}
// 续签-电子签证缴费
struct
ResignVisa
{
...
...
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