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
5dd433bb
Commit
5dd433bb
authored
Nov 05, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 证件号缺失提示
parent
d52ecd5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
7 deletions
+21
-7
YHResignInfoValidTimeItemView.swift
...InfoConfirm(续签信息确认)/V/YHResignInfoValidTimeItemView.swift
+21
-7
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignInfoConfirm(续签信息确认)/V/YHResignInfoValidTimeItemView.swift
View file @
5dd433bb
...
...
@@ -41,6 +41,14 @@ class YHResignInfoValidTimeItemView: UIView {
return
label
}()
lazy
var
errorTipsLabel
=
{
let
errorTipsLabel
=
UILabel
()
errorTipsLabel
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
errorTipsLabel
.
textColor
=
UIColor
.
failColor
errorTipsLabel
.
text
=
"证件有效期不足"
return
errorTipsLabel
}()
lazy
var
grayContentView
:
UIView
=
{
let
view
=
UIView
()
...
...
@@ -50,10 +58,6 @@ class YHResignInfoValidTimeItemView: UIView {
view
.
addGestureRecognizer
(
tap
)
view
.
clipsToBounds
=
true
let
errorTipsLabel
=
UILabel
()
errorTipsLabel
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
errorTipsLabel
.
textColor
=
UIColor
.
failColor
errorTipsLabel
.
text
=
"证件有效期不足"
view
.
addSubview
(
errorTipsLabel
)
let
arrowImgV
=
UIImageView
(
image
:
UIImage
(
named
:
"file_list_right_arrow_blue"
))
...
...
@@ -154,11 +158,21 @@ class YHResignInfoValidTimeItemView: UIView {
make
.
height
.
greaterThanOrEqualTo
(
20
)
}
// 是否隐藏
有效期不足
灰色视图
// 是否隐藏
红色提示语
灰色视图
var
isNeedHiddenGrayView
=
true
if
let
identity
=
familyInfo
.
identity
{
isNeedHiddenGrayView
=
identity
.
isValidDateEnough
()
if
identity
.
number
.
isEmpty
{
isNeedHiddenGrayView
=
false
errorTipsLabel
.
text
=
"证件号缺失"
}
else
if
!
identity
.
isValidDateEnough
()
{
isNeedHiddenGrayView
=
false
errorTipsLabel
.
text
=
"证件有效期不足"
}
else
{
isNeedHiddenGrayView
=
true
errorTipsLabel
.
text
=
""
}
}
grayContentView
.
isHidden
=
isNeedHiddenGrayView
grayContentView
.
snp
.
remakeConstraints
{
make
in
...
...
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