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
9e910ef8
Commit
9e910ef8
authored
Oct 16, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
续签补件详情页面接口及逻辑
parent
c3955047
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
83 additions
and
9 deletions
+83
-9
YHCertificateTemplateCell.swift
...心)/MyCertificates(我的证书)/V/YHCertificateTemplateCell.swift
+15
-0
YHResignUploadDocDetailViewController.swift
...adDoc(续签补件)/C/YHResignUploadDocDetailViewController.swift
+0
-0
YHResignUploadDetailModel.swift
...)/ResignUploadDoc(续签补件)/M/YHResignUploadDetailModel.swift
+3
-1
YHFileExplainReasonInputView.swift
...esignUploadDoc(续签补件)/V/YHFileExplainReasonInputView.swift
+64
-7
YHResignUploadDetailFileNameCell.swift
...nUploadDoc(续签补件)/V/YHResignUploadDetailFileNameCell.swift
+1
-1
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/V/YHCertificateTemplateCell.swift
View file @
9e910ef8
...
...
@@ -100,6 +100,21 @@ class YHCertificateTemplateCell: UITableViewCell {
}
}
var
resignUploadDetailTemplateListModel
:
YHResignUploadDetailTemplateListModel
?
{
didSet
{
if
let
model
=
resignUploadDetailTemplateListModel
{
if
!
model
.
name
.
isEmpty
{
templateView
.
titleLabel
.
text
=
model
.
name
}
else
{
templateView
.
titleLabel
.
text
=
"查看资料示例模板"
}
}
else
{
templateView
.
titleLabel
.
text
=
"查看资料示例模板"
}
}
}
lazy
var
templateView
:
YHCertificateSampleTemplateView
=
{
let
view
=
YHCertificateSampleTemplateView
(
frame
:
CGRectZero
)
return
view
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignUploadDoc(续签补件)/C/YHResignUploadDocDetailViewController.swift
View file @
9e910ef8
This diff is collapsed.
Click to expand it.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignUploadDoc(续签补件)/M/YHResignUploadDetailModel.swift
View file @
9e910ef8
...
...
@@ -14,6 +14,8 @@ class YHResignUploadDetailModel: SmartCodable {
var
name
:
String
=
""
//文书名称
var
status
:
Int
=
0
//状态 0:审核中;1:已完成;2:已驳回;3:待上传
var
description
:
String
=
""
var
unavailable_reason
:
String
=
""
var
reject_reason
:
String
=
""
var
template_list
:
[
YHResignUploadDetailTemplateListModel
]
=
[]
var
file_list
:
[
YHResignUploadDetailFileListModel
]
=
[]
...
...
@@ -33,7 +35,7 @@ class YHResignUploadDetailTemplateListModel: SmartCodable {
class
YHResignUploadDetailFileListModel
:
SmartCodable
{
var
name
:
String
=
""
var
url
:
String
=
""
var
up
loadedA
t
:
String
=
""
var
up
dated_a
t
:
String
=
""
required
init
()
{
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignUploadDoc(续签补件)/V/YHFileExplainReasonInputView.swift
View file @
9e910ef8
...
...
@@ -7,6 +7,7 @@
//
import
UIKit
import
AttributedString
class
YHFileExplainReasonInputView
:
UIView
{
static
let
height
=
294.0
...
...
@@ -35,7 +36,33 @@ class YHFileExplainReasonInputView: UIView {
label
.
textColor
=
UIColor
.
mainTextColor
label
.
textAlignment
=
.
center
label
.
font
=
UIFont
.
PFSC_B
(
ofSize
:
17
)
label
.
text
=
"文件重命名"
label
.
text
=
"补充说明"
return
label
}()
lazy
var
alertLabel
:
UILabel
=
{
let
label
=
UILabel
()
let
a
=
ASAttributedString
.
init
(
"*"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
failColor
))
let
b
=
ASAttributedString
.
init
(
"若无法提供材料,请填写原因:"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
mainTextColor
))
label
.
attributed
.
text
=
a
+
b
return
label
}()
lazy
var
countLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
textColor
=
UIColor
.
mainTextColor18
label
.
textAlignment
=
.
right
label
.
font
=
UIFont
.
PFSC_B
(
ofSize
:
16
)
label
.
text
=
"0/0"
return
label
}()
lazy
var
reasonLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
textColor
=
UIColor
.
failColor
label
.
font
=
UIFont
.
PFSC_B
(
ofSize
:
12
)
label
.
text
=
"请填写原因"
label
.
isHidden
=
true
return
label
}()
...
...
@@ -115,10 +142,13 @@ class YHFileExplainReasonInputView: UIView {
whiteContentView
.
addSubview
(
titleLabel
)
whiteContentView
.
addSubview
(
closeBtn
)
whiteContentView
.
addSubview
(
topLine
)
whiteContentView
.
addSubview
(
alertLabel
)
whiteContentView
.
addSubview
(
inputContentView
)
inputContentView
.
addSubview
(
textField
)
inputContentView
.
addSubview
(
countLabel
)
whiteContentView
.
addSubview
(
cancelBtn
)
whiteContentView
.
addSubview
(
confirmBtn
)
whiteContentView
.
addSubview
(
reasonLabel
)
let
corner
=
UIRectCorner
(
rawValue
:
UIRectCorner
.
topLeft
.
rawValue
|
UIRectCorner
.
topRight
.
rawValue
)
let
path
=
UIBezierPath
(
roundedRect
:
bounds
,
byRoundingCorners
:
corner
,
cornerRadii
:
CGSizeMake
(
kCornerRadius6
,
kCornerRadius6
));
...
...
@@ -145,22 +175,40 @@ class YHFileExplainReasonInputView: UIView {
make
.
top
.
equalTo
(
titleLabel
.
snp
.
bottom
)
make
.
height
.
equalTo
(
1
)
}
alertLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalToSuperview
()
.
offset
(
20
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
20
)
make
.
top
.
equalTo
(
72
)
make
.
height
.
equalTo
(
20
)
}
inputContentView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalToSuperview
()
.
offset
(
20
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
20
)
make
.
top
.
equalTo
(
topLine
.
snp
.
bottom
)
.
offset
(
20
)
make
.
height
.
equalTo
(
4
8
)
make
.
top
.
equalTo
(
108
)
make
.
height
.
equalTo
(
8
8
)
}
textField
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalToSuperview
()
.
offset
(
16
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
16
)
make
.
height
.
equalTo
(
88
)
make
.
top
.
equalToSuperview
()
}
countLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalToSuperview
()
.
offset
(
16
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
16
)
make
.
height
.
equalTo
(
20
)
make
.
centerY
.
equalToSuperview
()
make
.
bottom
.
equalTo
(
-
14
)
}
reasonLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalToSuperview
()
.
offset
(
16
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
16
)
make
.
height
.
equalTo
(
20
)
make
.
top
.
equalTo
(
inputContentView
.
snp
.
bottom
)
.
offset
(
4
)
}
cancelBtn
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalToSuperview
()
.
offset
(
16
)
make
.
right
.
equalTo
(
whiteContentView
.
snp
.
centerX
)
.
offset
(
-
6
)
make
.
top
.
equalTo
(
inputContentView
.
snp
.
bottom
)
.
offset
(
3
0
)
make
.
top
.
equalTo
(
inputContentView
.
snp
.
bottom
)
.
offset
(
3
2
)
make
.
height
.
equalTo
(
45
)
}
confirmBtn
.
snp
.
makeConstraints
{
make
in
...
...
@@ -190,7 +238,7 @@ extension YHFileExplainReasonInputView {
@objc
func
didClickConfirmBtn
()
{
if
isEmptyString
(
textField
.
text
)
{
YHHUD
.
flash
(
message
:
"重命名不可为空"
)
reasonLabel
.
isHidden
=
false
return
}
if
let
editBlock
=
editBlock
{
...
...
@@ -201,5 +249,14 @@ extension YHFileExplainReasonInputView {
}
extension
YHFileExplainReasonInputView
:
UITextViewDelegate
{
func
textViewDidChange
(
_
textView
:
UITextView
)
{
let
maxLength
=
50
let
currentString
:
String
=
textView
.
text
if
currentString
.
count
>=
maxLength
{
// 截取字符串至最大长度
textView
.
text
=
String
(
currentString
.
prefix
(
maxLength
))
}
countLabel
.
text
=
"
\(
textView
.
text
.
count
)
/50"
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignUploadDoc(续签补件)/V/YHResignUploadDetailFileNameCell.swift
View file @
9e910ef8
...
...
@@ -35,7 +35,7 @@ class YHResignUploadDetailFileNameCell: UITableViewCell {
contentItem
=
model
nameLabel
.
text
=
model
.
name
timeLabel
.
text
=
"上传于
\(
model
.
up
loadedA
t
)
"
timeLabel
.
text
=
"上传于
\(
model
.
up
dated_a
t
)
"
let
suffix
=
model
.
getFileSuffixName
()
var
iconImgName
=
""
...
...
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