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
8e1447fa
Commit
8e1447fa
authored
Aug 31, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit '
86670608
' into davidhuang
* commit '
86670608
': // 旅行
parents
d7b3975f
86670608
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 @
8e1447fa
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
//
//
import
UIKit
import
UIKit
import
AttributedString
class
YHTravelCertificateItemView
:
UIView
{
class
YHTravelCertificateItemView
:
UIView
{
...
@@ -14,9 +15,9 @@ class YHTravelCertificateItemView: UIView {
...
@@ -14,9 +15,9 @@ class YHTravelCertificateItemView: UIView {
var
clickBlock
:
(()
->
())?
var
clickBlock
:
(()
->
())?
var
title
:
String
=
""
{
var
title
:
ASAttributed
String
=
""
{
didSet
{
didSet
{
titleLabel
.
text
=
title
titleLabel
.
attributed
.
text
=
title
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/TravelDocumentsPreparation(6 旅行证件准备)/V/YHTravelCertificateUploadCell.swift
View file @
8e1447fa
...
@@ -28,6 +28,7 @@ class YHCertificateDateItem {
...
@@ -28,6 +28,7 @@ class YHCertificateDateItem {
init
(
id
:
YHCertificateID
,
isMust
:
Bool
,
title
:
String
,
value
:
String
,
placeHolder
:
String
,
errorTips
:
String
,
isShowErrorTips
:
Bool
=
false
)
{
init
(
id
:
YHCertificateID
,
isMust
:
Bool
,
title
:
String
,
value
:
String
,
placeHolder
:
String
,
errorTips
:
String
,
isShowErrorTips
:
Bool
=
false
)
{
self
.
id
=
id
self
.
id
=
id
self
.
isMust
=
isMust
self
.
title
=
title
self
.
title
=
title
self
.
value
=
value
self
.
value
=
value
self
.
placeHolder
=
placeHolder
self
.
placeHolder
=
placeHolder
...
@@ -208,7 +209,15 @@ class YHTravelCertificateUploadCell: UITableViewCell {
...
@@ -208,7 +209,15 @@ class YHTravelCertificateUploadCell: UITableViewCell {
for
(
index
,
item
)
in
arr
.
enumerated
()
{
for
(
index
,
item
)
in
arr
.
enumerated
()
{
let
itemView
=
YHTravelCertificateItemView
(
frame
:
.
zero
)
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
.
placeHolder
=
item
.
placeHolder
itemView
.
isNeedShowErrorTips
=
item
.
isShowErrorTips
itemView
.
isNeedShowErrorTips
=
item
.
isShowErrorTips
itemView
.
errorTips
=
item
.
errorTips
itemView
.
errorTips
=
item
.
errorTips
...
...
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