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
62d6ef60
Commit
62d6ef60
authored
Aug 09, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 原则批
parent
50149abb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
6 deletions
+31
-6
YHPrincipleUploadListVC.swift
...rvice/PrincipleBatch(原则批)/C/YHPrincipleUploadListVC.swift
+26
-1
YHPrincipleUploadModel.swift
...ervice/PrincipleBatch(原则批)/M/YHPrincipleUploadModel.swift
+1
-1
YHPrincipleUploadStatusCell.swift
...e/PrincipleBatch(原则批)/V/YHPrincipleUploadStatusCell.swift
+4
-4
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/PrincipleBatch(原则批)/C/YHPrincipleUploadListVC.swift
View file @
62d6ef60
...
@@ -15,6 +15,8 @@ class YHPrincipleUploadListVC: YHBaseViewController {
...
@@ -15,6 +15,8 @@ class YHPrincipleUploadListVC: YHBaseViewController {
var
orderId
:
Int
=
0
var
orderId
:
Int
=
0
var
items
:
[
SmartCodable
]
=
[]
var
items
:
[
SmartCodable
]
=
[]
var
isNeedShowError
:
Bool
=
false
let
viewModel
=
YHPrincleViewModel
()
let
viewModel
=
YHPrincleViewModel
()
lazy
var
tableView
:
UITableView
=
{
lazy
var
tableView
:
UITableView
=
{
...
@@ -173,8 +175,30 @@ class YHPrincipleUploadListVC: YHBaseViewController {
...
@@ -173,8 +175,30 @@ class YHPrincipleUploadListVC: YHBaseViewController {
extension
YHPrincipleUploadListVC
{
extension
YHPrincipleUploadListVC
{
func
checkMustItems
()
->
Bool
{
// 赴港居留同意书
let
agreementModel
=
self
.
viewModel
.
uploadDetailModel
.
file_data
.
agreement
// 申请人意见访问
let
opinionModel
=
self
.
viewModel
.
uploadDetailModel
.
file_data
.
opinion
if
agreementModel
.
content_url
.
count
<=
0
||
opinionModel
.
content_url
.
count
<=
0
{
return
false
}
return
true
}
@objc
func
didUploadBtnClicked
()
{
@objc
func
didUploadBtnClicked
()
{
let
isMustHave
=
self
.
checkMustItems
()
if
!
isMustHave
{
YHHUD
.
flash
(
message
:
"请上传必要文件"
)
isNeedShowError
=
true
self
.
tableView
.
reloadData
()
return
}
isNeedShowError
=
false
var
files
:[
YHPrincipleRequestModel
]
=
[]
var
files
:[
YHPrincipleRequestModel
]
=
[]
// 赴港居留同意书
// 赴港居留同意书
...
@@ -210,7 +234,7 @@ extension YHPrincipleUploadListVC {
...
@@ -210,7 +234,7 @@ extension YHPrincipleUploadListVC {
self
.
requestData
()
self
.
requestData
()
return
return
}
}
var
errMsg
=
error
?
.
errorMsg
??
"上传失败"
let
errMsg
=
error
?
.
errorMsg
??
"上传失败"
YHHUD
.
flash
(
message
:
errMsg
)
YHHUD
.
flash
(
message
:
errMsg
)
}
}
}
}
...
@@ -321,6 +345,7 @@ extension YHPrincipleUploadListVC: UITableViewDelegate, UITableViewDataSource {
...
@@ -321,6 +345,7 @@ extension YHPrincipleUploadListVC: UITableViewDelegate, UITableViewDataSource {
// 上传文件 cell
// 上传文件 cell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHPrincipleUploadStatusCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHPrincipleUploadStatusCell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHPrincipleUploadStatusCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHPrincipleUploadStatusCell
let
model
=
m
as!
YHPrincipleAgreementModel
let
model
=
m
as!
YHPrincipleAgreementModel
model
.
isShowRedTips
=
isNeedShowError
cell
.
updateModel
(
model
)
cell
.
updateModel
(
model
)
cell
.
expandClick
=
{
cell
.
expandClick
=
{
[
weak
self
]
isUnfold
in
[
weak
self
]
isUnfold
in
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/PrincipleBatch(原则批)/M/YHPrincipleUploadModel.swift
View file @
62d6ef60
...
@@ -200,7 +200,7 @@ class YHPrincipleAgreementModel: SmartCodable {
...
@@ -200,7 +200,7 @@ class YHPrincipleAgreementModel: SmartCodable {
// 黑色或富文本
// 黑色或富文本
var
tips1
:
String
=
""
var
tips1
:
String
=
""
// 最底部红色提示语
// 最底部红色提示语
var
redTips
:
String
=
""
var
isShowRedTips
:
Bool
=
false
// 是否展开
// 是否展开
var
isUnfold
:
Bool
=
false
var
isUnfold
:
Bool
=
false
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/PrincipleBatch(原则批)/V/YHPrincipleUploadStatusCell.swift
View file @
62d6ef60
...
@@ -127,7 +127,6 @@ class YHPrincipleUploadStatusCell: UITableViewCell {
...
@@ -127,7 +127,6 @@ class YHPrincipleUploadStatusCell: UITableViewCell {
label
.
numberOfLines
=
0
label
.
numberOfLines
=
0
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
label
.
textColor
=
UIColor
.
failColor
label
.
textColor
=
UIColor
.
failColor
label
.
text
=
"请上传《赴港居留同意书》"
return
label
return
label
}()
}()
...
@@ -221,7 +220,8 @@ class YHPrincipleUploadStatusCell: UITableViewCell {
...
@@ -221,7 +220,8 @@ class YHPrincipleUploadStatusCell: UITableViewCell {
}
}
// 底部红色提示
// 底部红色提示
redTipsLabel
.
text
=
self
.
getTips
(
type
:
model
.
customType
)
redTipsLabel
.
text
=
self
.
getCheckTips
(
type
:
model
.
customType
)
redTipsLabel
.
isHidden
=
!
model
.
isShowRedTips
whiteView
.
snp
.
remakeConstraints
{
make
in
whiteView
.
snp
.
remakeConstraints
{
make
in
make
.
top
.
equalTo
(
0
)
make
.
top
.
equalTo
(
0
)
...
@@ -297,8 +297,8 @@ class YHPrincipleUploadStatusCell: UITableViewCell {
...
@@ -297,8 +297,8 @@ class YHPrincipleUploadStatusCell: UITableViewCell {
redTipsLabel
.
snp
.
remakeConstraints
{
make
in
redTipsLabel
.
snp
.
remakeConstraints
{
make
in
make
.
left
.
equalTo
(
16
)
make
.
left
.
equalTo
(
16
)
make
.
right
.
equalTo
(
-
16
)
make
.
right
.
equalTo
(
-
16
)
make
.
top
.
equalTo
(
uploadBtn
.
snp
.
bottom
)
.
offset
(
model
.
redTips
.
isEmpty
?
0
:
16
)
make
.
top
.
equalTo
(
uploadBtn
.
snp
.
bottom
)
.
offset
(
!
model
.
isShowRedTips
?
0
:
16
)
if
model
.
redTips
.
isEmpty
{
if
!
model
.
isShowRedTips
{
make
.
height
.
equalTo
(
0
)
make
.
height
.
equalTo
(
0
)
}
}
make
.
bottom
.
equalTo
(
-
16
)
make
.
bottom
.
equalTo
(
-
16
)
...
...
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