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
86670608
Commit
86670608
authored
Aug 31, 2024
by
Steven杜宇
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 旅行
parent
1a09439b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
YHTravelCertificateItemView.swift
...Preparation(6 旅行证件准备)/V/YHTravelCertificateItemView.swift
+3
-2
YHTravelCertificateUploadCell.swift
...eparation(6 旅行证件准备)/V/YHTravelCertificateUploadCell.swift
+10
-1
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/TravelDocumentsPreparation(6 旅行证件准备)/V/YHTravelCertificateItemView.swift
View file @
86670608
...
...
@@ -7,6 +7,7 @@
//
import
UIKit
import
AttributedString
class
YHTravelCertificateItemView
:
UIView
{
...
...
@@ -14,9 +15,9 @@ class YHTravelCertificateItemView: UIView {
var
clickBlock
:
(()
->
())?
var
title
:
String
=
""
{
var
title
:
ASAttributed
String
=
""
{
didSet
{
titleLabel
.
text
=
title
titleLabel
.
attributed
.
text
=
title
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/TravelDocumentsPreparation(6 旅行证件准备)/V/YHTravelCertificateUploadCell.swift
View file @
86670608
...
...
@@ -28,6 +28,7 @@ class YHCertificateDateItem {
init
(
id
:
YHCertificateID
,
isMust
:
Bool
,
title
:
String
,
value
:
String
,
placeHolder
:
String
,
errorTips
:
String
,
isShowErrorTips
:
Bool
=
false
)
{
self
.
id
=
id
self
.
isMust
=
isMust
self
.
title
=
title
self
.
value
=
value
self
.
placeHolder
=
placeHolder
...
...
@@ -208,7 +209,15 @@ class YHTravelCertificateUploadCell: UITableViewCell {
for
(
index
,
item
)
in
arr
.
enumerated
()
{
let
itemView
=
YHTravelCertificateItemView
(
frame
:
.
zero
)
itemView
.
title
=
item
.
title
// 标题
var
titleStr
:
ASAttributedString
=
.
init
(
"
\(
item
.
title
)
"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
mainTextColor
))
// 是否必填
if
item
.
isMust
{
let
mustTag
:
ASAttributedString
=
.
init
(
"*"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
failColor
))
titleStr
=
mustTag
+
titleStr
}
itemView
.
title
=
titleStr
itemView
.
placeHolder
=
item
.
placeHolder
itemView
.
isNeedShowErrorTips
=
item
.
isShowErrorTips
itemView
.
errorTips
=
item
.
errorTips
...
...
David黄金龙
@david.hjl
mentioned in commit
8e1447fa
·
Aug 31, 2024
mentioned in commit
8e1447fa
mentioned in commit 8e1447fa57053d640e3baf603d7ea62c0541f3ec
Toggle commit list
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