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
13fbea07
Commit
13fbea07
authored
Apr 01, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
已经驳回状态UI status 显示逻辑
parent
fcb711c2
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
208 additions
and
18 deletions
+208
-18
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+4
-0
YHMyDocumentsDetailViewController.swift
...Documents(我的文书)/C/YHMyDocumentsDetailViewController.swift
+34
-8
YHDocumentFileItemView.swift
...ce(服务中心)/MyDocuments(我的文书)/V/YHDocumentFileItemView.swift
+7
-1
YHDocumentUploadTableViewCell.swift
...)/MyDocuments(我的文书)/V/YHDocumentUploadTableViewCell.swift
+23
-1
YHFailPromptView.swift
...tService(服务中心)/MyDocuments(我的文书)/V/YHFailPromptView.swift
+57
-0
YHMySignatureDetailViewController.swift
...Signature(我的签字)/C/YHMySignatureDetailViewController.swift
+38
-7
YHSignatureUploadTableViewCell.swift
.../MySignature(我的签字)/V/YHSignatureUploadTableViewCell.swift
+23
-1
Contents.json
...ceCenter/我的文书和签字/fail_prompt_image.imageset/Contents.json
+22
-0
fail_prompt_image@2x.png
...文书和签字/fail_prompt_image.imageset/fail_prompt_image@2x.png
+0
-0
fail_prompt_image@3x.png
...文书和签字/fail_prompt_image.imageset/fail_prompt_image@3x.png
+0
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
13fbea07
...
...
@@ -21,6 +21,7 @@
044867B62BA1A03800DFAD4A
/* YHCertificateFilterItemCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
044867B52BA1A03800DFAD4A
/* YHCertificateFilterItemCell.swift */
;
};
044867B82BA1C75700DFAD4A
/* YHCertificateUploadFailTipsView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
044867B72BA1C75700DFAD4A
/* YHCertificateUploadFailTipsView.swift */
;
};
044CF8D42BB6BCF700008CE8
/* YHSignatureUploadTableViewCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
044CF8D32BB6BCF700008CE8
/* YHSignatureUploadTableViewCell.swift */
;
};
044CF8D62BBA57DC00008CE8
/* YHFailPromptView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
044CF8D52BBA57DC00008CE8
/* YHFailPromptView.swift */
;
};
045EEE792B9F171A0022A143
/* YHPreviewViewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
045EED9A2B9F171A0022A143
/* YHPreviewViewModel.swift */
;
};
045EEE7A2B9F171A0022A143
/* YHPreviewForOtherInfoModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
045EED9C2B9F171A0022A143
/* YHPreviewForOtherInfoModel.swift */
;
};
045EEE7B2B9F171A0022A143
/* YHPersonInfoCellModel2.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
045EED9D2B9F171A0022A143
/* YHPersonInfoCellModel2.swift */
;
};
...
...
@@ -423,6 +424,7 @@
044867B52BA1A03800DFAD4A
/* YHCertificateFilterItemCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCertificateFilterItemCell.swift
;
sourceTree
=
"<group>"
;
};
044867B72BA1C75700DFAD4A
/* YHCertificateUploadFailTipsView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCertificateUploadFailTipsView.swift
;
sourceTree
=
"<group>"
;
};
044CF8D32BB6BCF700008CE8
/* YHSignatureUploadTableViewCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHSignatureUploadTableViewCell.swift
;
sourceTree
=
"<group>"
;
};
044CF8D52BBA57DC00008CE8
/* YHFailPromptView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFailPromptView.swift
;
sourceTree
=
"<group>"
;
};
045EED9A2B9F171A0022A143
/* YHPreviewViewModel.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPreviewViewModel.swift
;
sourceTree
=
"<group>"
;
};
045EED9C2B9F171A0022A143
/* YHPreviewForOtherInfoModel.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPreviewForOtherInfoModel.swift
;
sourceTree
=
"<group>"
;
};
045EED9D2B9F171A0022A143
/* YHPersonInfoCellModel2.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPersonInfoCellModel2.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -1656,6 +1658,7 @@
A5DE0D3B2BB9016200976FE1
/* YHEmailInputAlertView.swift */
,
A5D5ADEE2BB90FBB0039FA6B
/* YHCheckEamilAlertView.swift */
,
A582B2402BB95998009D098C
/* YHHKPlanTipsCell.swift */
,
044CF8D52BBA57DC00008CE8
/* YHFailPromptView.swift */
,
);
path
=
V
;
sourceTree
=
"<group>"
;
...
...
@@ -2603,6 +2606,7 @@
A5EF21312BA6DF94005027E6
/* YHMineSchemeViewController.swift in Sources */
,
045EEE872B9F171A0022A143
/* YHPreviewControllerHoldViewController.swift in Sources */
,
045EEF172B9F171A0022A143
/* YHSelectCountryViewController.swift in Sources */
,
044CF8D62BBA57DC00008CE8
/* YHFailPromptView.swift in Sources */
,
A5ACE9562B4564F7002C94D2
/* YHBouncesContentView.swift in Sources */
,
A554A5122B99715000EA5973
/* YHConstantArrayData.swift in Sources */
,
045EEE962B9F171A0022A143
/* YHPreviewInfoCertificatePictureItemsView.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyDocuments(我的文书)/C/YHMyDocumentsDetailViewController.swift
View file @
13fbea07
...
...
@@ -16,11 +16,13 @@ class YHMyDocumentsDetailViewController: YHBaseViewController {
var
bottomView
:
UIView
!
var
bottomButton
:
UIButton
!
var
tableView
:
UITableView
!
var
promptView
:
YHFailPromptView
!
var
dataSource
:
[
YHWorkItemListModel
]?
var
viewModel
:
YHMyDocumentsDetailViewModel
!
var
id
:
Int
=
0
var
oldUrl
:
String
?
var
type
:
Int
=
0
lazy
var
blackMaskView
:
UIView
=
{
let
view
=
UIView
(
frame
:
UIScreen
.
main
.
bounds
)
view
.
backgroundColor
=
UIColor
(
hex
:
0x0F1214
,
alpha
:
0.5
)
...
...
@@ -71,14 +73,26 @@ class YHMyDocumentsDetailViewController: YHBaseViewController {
self
.
stepView
.
currentIndex
=
0
self
.
bottomView
.
isHidden
=
true
}
else
{
let
state
=
self
.
viewModel
.
mainModel
?
.
writing_document
.
doc_sign
.
status
let
state
=
self
.
viewModel
.
mainModel
?
.
writing_document
.
doc_sign
.
status
??
0
// 0-待上传,1-未发送, 2-发送中,3-已发送,4-已签收,5-审核通过,6-驳回
if
state
==
0
||
state
==
1
||
state
==
2
{
}
else
if
state
==
3
||
state
==
4
||
state
==
5
{
self
.
type
=
state
if
state
==
0
||
state
==
1
||
state
==
2
||
state
==
3
{
self
.
promptView
.
isHidden
=
true
self
.
bottomButton
.
isEnabled
=
true
self
.
bottomView
.
isHidden
=
false
}
else
if
state
==
4
{
self
.
promptView
.
isHidden
=
true
self
.
bottomButton
.
isEnabled
=
false
self
.
bottomView
.
isHidden
=
false
}
else
if
state
==
5
{
self
.
promptView
.
isHidden
=
true
self
.
bottomView
.
isHidden
=
true
self
.
bottomButton
.
isEnabled
=
true
}
else
{
self
.
promptView
.
isHidden
=
false
self
.
promptView
.
setPrompt
(
"失败"
)
self
.
bottomButton
.
isEnabled
=
true
self
.
bottomView
.
isHidden
=
false
}
self
.
stepView
.
currentIndex
=
1
}
...
...
@@ -125,9 +139,20 @@ class YHMyDocumentsDetailViewController: YHBaseViewController {
tableView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
k_Height_NavigationtBarAndStatuBar
+
YHStepView
.
height
)
make
.
bottom
.
equalTo
(
-
k_Height_safeAreaInsetsBottom
()
-
64
)
make
.
left
.
right
.
bottom
.
equalTo
(
view
)
make
.
left
.
right
.
equalTo
(
view
)
}
promptView
=
{
let
view
=
YHFailPromptView
()
view
.
isHidden
=
true
return
view
}()
view
.
addSubview
(
promptView
)
promptView
.
snp
.
makeConstraints
{
make
in
make
.
height
.
equalTo
(
35
)
make
.
bottom
.
equalTo
(
-
k_Height_safeAreaInsetsBottom
()
-
64
)
make
.
left
.
right
.
equalTo
(
view
)
}
bottomView
=
{
let
bottom
=
UIView
()
bottom
.
backgroundColor
=
.
white
...
...
@@ -446,6 +471,7 @@ extension YHMyDocumentsDetailViewController: UITableViewDelegate, UITableViewDat
return
cell
}
else
{
let
cell
=
tableView
.
dequeueReusableCell
(
withClass
:
YHDocumentUploadTableViewCell
.
self
)
cell
.
type
=
self
.
type
cell
.
dataSource
=
self
.
viewModel
.
mainModel
cell
.
backgroundColor
=
.
clear
cell
.
contentView
.
backgroundColor
=
.
clear
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyDocuments(我的文书)/V/YHDocumentFileItemView.swift
View file @
13fbea07
...
...
@@ -17,6 +17,7 @@ class YHDocumentFileItemView: UIView {
var
centerButton
:
UIButton
!
var
index
:
Int
=
0
var
docType
:
Int
=
0
var
type
:
Int
=
0
var
dataSource
:
String
?
{
didSet
{
updateAllViews
()
...
...
@@ -141,10 +142,15 @@ class YHDocumentFileItemView: UIView {
}
@objc
func
deleteClick
()
{
let
items
=
[
YHCertificateEditItem
(
type
:
.
preview
,
title
:
"预览"
),
var
items
=
[
YHCertificateEditItem
(
type
:
.
preview
,
title
:
"预览"
),
YHCertificateEditItem
(
type
:
.
reupload
,
title
:
"重传"
),
YHCertificateEditItem
(
type
:
.
delete
,
title
:
"删除"
),
YHCertificateEditItem
(
type
:
.
cancel
,
title
:
"取消"
)]
if
type
==
4
||
type
==
5
{
items
=
[
YHCertificateEditItem
(
type
:
.
preview
,
title
:
"预览"
),
YHCertificateEditItem
(
type
:
.
cancel
,
title
:
"取消"
)]
}
YHCertificateEditSheetView
.
sheetView
(
items
:
items
)
{
[
weak
self
]
editType
in
guard
let
self
=
self
else
{
return
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyDocuments(我的文书)/V/YHDocumentUploadTableViewCell.swift
View file @
13fbea07
...
...
@@ -23,7 +23,12 @@ class YHDocumentUploadTableViewCell: UITableViewCell {
updateAllViews
()
}
}
var
type
:
Int
=
0
{
didSet
{
updateAddView
()
}
}
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
// Initialization code
...
...
@@ -144,6 +149,7 @@ class YHDocumentUploadTableViewCell: UITableViewCell {
let
h
=
70
let
itemView
=
YHDocumentFileItemView
()
itemView
.
index
=
i
itemView
.
type
=
type
itemView
.
docType
=
dataSource
.
writing_document
.
doc_sign
.
doc_type
itemView
.
dataSource
=
data
itemView
.
itemBlock
=
{[
weak
self
]
type
,
index
in
...
...
@@ -162,5 +168,21 @@ class YHDocumentUploadTableViewCell: UITableViewCell {
y
=
y
+
h
}
}
func
updateAddView
()
{
if
type
==
4
{
self
.
bottomView
.
alpha
=
0.4
self
.
bottomView
.
addBtn
.
isEnabled
=
false
}
if
type
==
5
{
self
.
bottomView
.
isHidden
=
true
mainItemView
.
snp
.
remakeConstraints
{
make
in
make
.
left
.
right
.
equalToSuperview
()
make
.
bottom
.
equalTo
(
-
92
)
make
.
top
.
equalTo
(
52
)
}
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyDocuments(我的文书)/V/YHFailPromptView.swift
0 → 100644
View file @
13fbea07
//
// YHFailPromptView.swift
// galaxy
//
// Created by EDY on 2024/4/1.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHFailPromptView
:
UIView
{
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
initView
()
}
required
init
?(
coder
:
NSCoder
)
{
fatalError
(
"init(coder:) has not been implemented"
)
}
lazy
var
alertImageView
:
UIImageView
=
{
let
button
=
UIImageView
()
button
.
image
=
UIImage
(
named
:
"fail_prompt_image"
)
return
button
}()
private
lazy
var
titleLable
:
UILabel
=
{
let
lable0
=
UILabel
(
text
:
"222222222222222"
)
lable0
.
textColor
=
UIColor
.
failColor
lable0
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
return
lable0
}()
func
setPrompt
(
_
prompt
:
String
)
{
titleLable
.
text
=
prompt
}
}
private
extension
YHFailPromptView
{
func
initView
()
{
backgroundColor
=
UIColor
(
hex
:
0xfeeded
)
addSubview
(
alertImageView
)
alertImageView
.
snp
.
makeConstraints
{
make
in
make
.
centerY
.
equalToSuperview
()
make
.
left
.
equalTo
(
18
)
make
.
width
.
height
.
equalTo
(
16
)
}
addSubview
(
titleLable
)
titleLable
.
snp
.
makeConstraints
{
make
in
make
.
centerY
.
equalToSuperview
()
make
.
left
.
equalTo
(
38
)
make
.
top
.
bottom
.
equalToSuperview
()
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MySignature(我的签字)/C/YHMySignatureDetailViewController.swift
View file @
13fbea07
...
...
@@ -14,10 +14,12 @@ class YHMySignatureDetailViewController: YHBaseViewController {
var
bottomView
:
UIView
!
var
bottomButton
:
UIButton
!
var
tableView
:
UITableView
!
var
promptView
:
YHFailPromptView
!
var
dataSource
:
[
YHWorkItemListModel
]?
var
viewModel
:
YHMySignatureDetailViewModel
!
var
id
:
Int
=
0
var
oldUrl
:
String
?
var
type
:
Int
=
0
lazy
var
previewFileTool
:
YHFilePreviewTool
=
{
let
tool
=
YHFilePreviewTool
(
targetVC
:
self
)
...
...
@@ -57,14 +59,26 @@ class YHMySignatureDetailViewController: YHBaseViewController {
func
getData
()
{
viewModel
.
requestSignatureDetail
(
"
\(
id
)
"
,
callBackBlock
:
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
let
state
=
self
.
viewModel
.
mainModel
?
.
status
let
state
=
self
.
viewModel
.
mainModel
?
.
status
??
0
// 0-待上传,1-未发送, 2-发送中,3-已发送,4-已签收,5-审核通过,6-驳回
if
state
==
0
||
state
==
1
||
state
==
2
{
}
else
if
state
==
3
||
state
==
4
||
state
==
5
{
self
.
type
=
state
if
state
==
0
||
state
==
1
||
state
==
2
||
state
==
3
{
self
.
promptView
.
isHidden
=
true
self
.
bottomButton
.
isEnabled
=
true
self
.
bottomView
.
isHidden
=
false
}
else
if
state
==
4
{
self
.
promptView
.
isHidden
=
true
self
.
bottomButton
.
isEnabled
=
false
self
.
bottomView
.
isHidden
=
false
}
else
if
state
==
5
{
self
.
promptView
.
isHidden
=
true
self
.
bottomView
.
isHidden
=
true
self
.
bottomButton
.
isEnabled
=
true
}
else
{
self
.
promptView
.
isHidden
=
false
self
.
promptView
.
setPrompt
(
"失败"
)
self
.
bottomButton
.
isEnabled
=
true
self
.
bottomView
.
isHidden
=
false
}
self
.
tableView
.
reloadData
()
})
...
...
@@ -99,6 +113,18 @@ class YHMySignatureDetailViewController: YHBaseViewController {
make
.
left
.
right
.
bottom
.
equalTo
(
view
)
}
promptView
=
{
let
view
=
YHFailPromptView
()
view
.
isHidden
=
true
return
view
}()
view
.
addSubview
(
promptView
)
promptView
.
snp
.
makeConstraints
{
make
in
make
.
height
.
equalTo
(
35
)
make
.
bottom
.
equalTo
(
-
k_Height_safeAreaInsetsBottom
()
-
64
)
make
.
left
.
right
.
equalTo
(
view
)
}
bottomView
=
{
let
bottom
=
UIView
()
bottom
.
backgroundColor
=
.
white
...
...
@@ -351,6 +377,7 @@ extension YHMySignatureDetailViewController: UITableViewDelegate, UITableViewDat
return
cell
}
else
{
let
cell
=
tableView
.
dequeueReusableCell
(
withClass
:
YHSignatureUploadTableViewCell
.
self
)
cell
.
type
=
self
.
type
cell
.
dataSource
=
self
.
viewModel
.
mainModel
cell
.
backgroundColor
=
.
clear
cell
.
contentView
.
backgroundColor
=
.
clear
...
...
@@ -486,7 +513,11 @@ extension YHMySignatureDetailViewController: UITableViewDelegate, UITableViewDat
return
180
}
else
{
guard
let
count
=
self
.
viewModel
.
mainModel
?
.
doc_return_manual
.
count
else
{
return
CGFloat
(
221
)
}
return
CGFloat
(
221
+
count
*
71
)
if
self
.
type
==
5
{
return
CGFloat
(
176
+
count
*
71
)
}
else
{
return
CGFloat
(
221
+
count
*
71
)
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MySignature(我的签字)/V/YHSignatureUploadTableViewCell.swift
View file @
13fbea07
...
...
@@ -23,7 +23,12 @@ class YHSignatureUploadTableViewCell: UITableViewCell {
updateAllViews
()
}
}
var
type
:
Int
=
0
{
didSet
{
updateAddView
()
}
}
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
// Initialization code
...
...
@@ -145,6 +150,7 @@ class YHSignatureUploadTableViewCell: UITableViewCell {
let
itemView
=
YHDocumentFileItemView
()
itemView
.
index
=
i
itemView
.
docType
=
dataSource
.
doc_type
itemView
.
type
=
type
itemView
.
dataSource
=
data
itemView
.
itemBlock
=
{[
weak
self
]
type
,
index
in
guard
let
self
=
self
else
{
return
}
...
...
@@ -162,5 +168,21 @@ class YHSignatureUploadTableViewCell: UITableViewCell {
y
=
y
+
h
}
}
func
updateAddView
()
{
if
type
==
4
{
self
.
bottomView
.
alpha
=
0.4
self
.
bottomView
.
addBtn
.
isEnabled
=
false
}
if
type
==
5
{
self
.
bottomView
.
isHidden
=
true
mainItemView
.
snp
.
remakeConstraints
{
make
in
make
.
left
.
right
.
equalToSuperview
()
make
.
bottom
.
equalTo
(
-
92
)
make
.
top
.
equalTo
(
52
)
}
}
}
}
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/我的文书和签字/fail_prompt_image.imageset/Contents.json
0 → 100644
View file @
13fbea07
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"fail_prompt_image@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"fail_prompt_image@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/我的文书和签字/fail_prompt_image.imageset/fail_prompt_image@2x.png
0 → 100644
View file @
13fbea07
1.67 KB
galaxy/galaxy/Res/Assets.xcassets/ServiceCenter/我的文书和签字/fail_prompt_image.imageset/fail_prompt_image@3x.png
0 → 100644
View file @
13fbea07
2.35 KB
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