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
56bdd5aa
Commit
56bdd5aa
authored
Jan 27, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 证件信息
parent
7eea12aa
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
224 additions
and
1 deletion
+224
-1
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+4
-0
YHCertificateViewController.swift
...cess(流程)/FamilyMember/C/YHCertificateViewController.swift
+9
-1
YHFormItemExpireDateCell.swift
...cess(流程)/FamilyMember/View/YHFormItemExpireDateCell.swift
+169
-0
Contents.json
...s.xcassets/Form/form_square_select.imageset/Contents.json
+21
-0
Group 3040.png
....xcassets/Form/form_square_select.imageset/Group 3040.png
+0
-0
Contents.json
...xcassets/Form/form_square_unselect.imageset/Contents.json
+21
-0
Rectangle 2471 (1).png
...Form/form_square_unselect.imageset/Rectangle 2471 (1).png
+0
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
56bdd5aa
...
...
@@ -26,6 +26,7 @@
042FBBC32B63DA4C00F9DE23
/* YHParentInfoVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
042FBBC22B63DA4C00F9DE23
/* YHParentInfoVC.swift */
;
};
042FBBC52B64AE3D00F9DE23
/* YHFormItemOnlyDoubleChoiceCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
042FBBC42B64AE3D00F9DE23
/* YHFormItemOnlyDoubleChoiceCell.swift */
;
};
042FBBC72B64CFBF00F9DE23
/* YHChildInitialInfoVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
042FBBC62B64CFBF00F9DE23
/* YHChildInitialInfoVC.swift */
;
};
042FBBC92B64DC8900F9DE23
/* YHFormItemExpireDateCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
042FBBC82B64DC8900F9DE23
/* YHFormItemExpireDateCell.swift */
;
};
0468D4202B49320900CFB916
/* YHVerificationCodeLoginController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0468D41F2B49320900CFB916
/* YHVerificationCodeLoginController.swift */
;
};
0468D4222B493A5E00CFB916
/* YHPhoneMessageView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0468D4212B493A5E00CFB916
/* YHPhoneMessageView.swift */
;
};
0468D4242B494BEA00CFB916
/* YHCodeResultViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0468D4232B494BEA00CFB916
/* YHCodeResultViewController.swift */
;
};
...
...
@@ -189,6 +190,7 @@
042FBBC22B63DA4C00F9DE23
/* YHParentInfoVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHParentInfoVC.swift
;
sourceTree
=
"<group>"
;
};
042FBBC42B64AE3D00F9DE23
/* YHFormItemOnlyDoubleChoiceCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFormItemOnlyDoubleChoiceCell.swift
;
sourceTree
=
"<group>"
;
};
042FBBC62B64CFBF00F9DE23
/* YHChildInitialInfoVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHChildInitialInfoVC.swift
;
sourceTree
=
"<group>"
;
};
042FBBC82B64DC8900F9DE23
/* YHFormItemExpireDateCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFormItemExpireDateCell.swift
;
sourceTree
=
"<group>"
;
};
0468D41F2B49320900CFB916
/* YHVerificationCodeLoginController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHVerificationCodeLoginController.swift
;
sourceTree
=
"<group>"
;
};
0468D4212B493A5E00CFB916
/* YHPhoneMessageView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPhoneMessageView.swift
;
sourceTree
=
"<group>"
;
};
0468D4232B494BEA00CFB916
/* YHCodeResultViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCodeResultViewController.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -367,6 +369,7 @@
042FBBBC2B63519C00F9DE23
/* YHFormItemSelectSheetCell.swift */
,
042FBBC02B63B21700F9DE23
/* YHFormItemDegreeInfoCell.swift */
,
042FBBC42B64AE3D00F9DE23
/* YHFormItemOnlyDoubleChoiceCell.swift */
,
042FBBC82B64DC8900F9DE23
/* YHFormItemExpireDateCell.swift */
,
);
path
=
View
;
sourceTree
=
"<group>"
;
...
...
@@ -1175,6 +1178,7 @@
A5C382CF2B5F9A9100C5E65C
/* YHServiceCenterMainViewModel.swift in Sources */
,
A5C5B2EA2B4ECA4D00A7C5D1
/* YHDavidModel0.swift in Sources */
,
A5ACE9572B4564F7002C94D2
/* YHBasicContentView.swift in Sources */
,
042FBBC92B64DC8900F9DE23
/* YHFormItemExpireDateCell.swift in Sources */
,
A5FD63C12B62616D00D1D9DA
/* YHInformationPerfectModel.swift in Sources */
,
A5C5B3292B57CCBE00A7C5D1
/* YHDavidCell4.swift in Sources */
,
049A48A82B49417300D0C641
/* YHAboutUsViewController.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember/C/YHCertificateViewController.swift
View file @
56bdd5aa
...
...
@@ -35,6 +35,7 @@ class YHCertificateViewController: YHBaseViewController {
tableView
.
register
(
YHFormItemTitleCell
.
self
,
forCellReuseIdentifier
:
YHFormItemTitleCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHFormItemAddCell
.
self
,
forCellReuseIdentifier
:
YHFormItemAddCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHFormItemSelectSheetCell
.
self
,
forCellReuseIdentifier
:
YHFormItemSelectSheetCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHFormItemExpireDateCell
.
self
,
forCellReuseIdentifier
:
YHFormItemExpireDateCell
.
cellReuseIdentifier
)
return
tableView
}()
...
...
@@ -122,13 +123,20 @@ extension YHCertificateViewController : UITableViewDelegate, UITableViewDataSour
return
cell
}
if
detailItem
.
type
==
.
cetificateType
||
detailItem
.
type
==
.
certificateSignDate
||
detailItem
.
type
==
.
certificateValidDate
{
if
detailItem
.
type
==
.
cetificateType
||
detailItem
.
type
==
.
certificateSignDate
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHFormItemSelectSheetCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHFormItemSelectSheetCell
cell
.
title
=
detailItem
.
getTitle
()
cell
.
detail
=
"中国"
return
cell
}
if
detailItem
.
type
==
.
certificateValidDate
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHFormItemExpireDateCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHFormItemExpireDateCell
cell
.
title
=
detailItem
.
getTitle
()
return
cell
}
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHFormItemEnterDetailCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHFormItemEnterDetailCell
cell
.
titleLabel
.
text
=
detailItem
.
getTitle
()
return
cell
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember/View/YHFormItemExpireDateCell.swift
0 → 100644
View file @
56bdd5aa
//
// YHFormItemExpireDateCell.swift
// galaxy
//
// Created by edy on 2024/1/27.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHFormItemExpireDateCell
:
UITableViewCell
{
static
let
cellReuseIdentifier
=
"YHFormItemExpireDateCell"
let
longTimeBtnWidth
=
40.0
// 是否必填 如必填title会展示红色*
var
isMust
=
false
var
clickBlock
:(()
->
Void
)?
var
title
:
String
?
{
didSet
{
if
let
title
=
title
{
let
str
=
(
isMust
?
(
"*"
+
title
)
:
title
)
let
attributes
:
[
NSAttributedString
.
Key
:
Any
]
=
[
.
font
:
UIFont
.
PFSCR
(
ofSize
:
14
),
.
foregroundColor
:
UIColor
(
hex
:
0x222222
)]
let
questionAttrStr
=
NSMutableAttributedString
(
string
:
str
,
attributes
:
attributes
)
if
isMust
{
let
starRange
=
NSRange
(
location
:
0
,
length
:
1
)
questionAttrStr
.
addAttribute
(
NSAttributedString
.
Key
.
foregroundColor
,
value
:
UIColor
(
hex
:
0xFF3A3A
),
range
:
starRange
)
}
titleLabel
.
attributedText
=
questionAttrStr
}
}
}
var
isLontTime
:
Bool
=
false
{
didSet
{
updateUI
()
}
}
var
tips
:
String
?
{
didSet
{
tipsLabel
.
text
=
tips
}
}
var
detail
:
String
?
{
didSet
{
detailLabel
.
text
=
detail
if
let
detail
=
detail
,
!
detail
.
isEmpty
{
tipsLabel
.
isHidden
=
true
detailLabel
.
isHidden
=
false
}
else
{
tipsLabel
.
isHidden
=
false
detailLabel
.
isHidden
=
true
}
}
}
lazy
var
titleLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
textColor
=
UIColor
(
hexString
:
"#333333"
)
label
.
textAlignment
=
.
left
label
.
numberOfLines
=
0
label
.
font
=
UIFont
.
PFSCR
(
ofSize
:
14
)
return
label
}()
private
lazy
var
detailLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
textColor
=
UIColor
(
hexString
:
"#222222"
)
label
.
textAlignment
=
.
left
label
.
font
=
UIFont
.
PFSCR
(
ofSize
:
14
)
label
.
isHidden
=
true
return
label
}()
private
lazy
var
tipsLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
textColor
=
UIColor
(
hexString
:
"#C0C0C0"
)
label
.
text
=
"请选择"
.
local
label
.
textAlignment
=
.
left
label
.
font
=
UIFont
.
PFSCR
(
ofSize
:
14
)
label
.
isHidden
=
false
return
label
}()
lazy
var
longTimeBtn
:
UIButton
=
{
let
btn
=
UIButton
(
type
:
.
custom
)
btn
.
setTitle
(
"长期"
.
local
,
for
:
.
normal
)
btn
.
titleLabel
?
.
font
=
UIFont
.
PFSCR
(
ofSize
:
14
)
btn
.
setTitleColor
(
UIColor
(
hex
:
0x222222
),
for
:
.
normal
)
btn
.
iconInLeft
(
spacing
:
6
)
btn
.
setImage
(
UIImage
(
named
:
"form_square_unselect"
),
for
:
.
normal
)
btn
.
setImage
(
UIImage
(
named
:
"form_square_select"
),
for
:
.
selected
)
btn
.
addTarget
(
self
,
action
:
#selector(
didClickLongTimeBtn
)
,
for
:
.
touchUpInside
)
return
btn
}()
required
init
?(
coder
:
NSCoder
)
{
super
.
init
(
coder
:
coder
)
}
override
init
(
style
:
UITableViewCell
.
CellStyle
,
reuseIdentifier
:
String
?)
{
super
.
init
(
style
:
style
,
reuseIdentifier
:
reuseIdentifier
)
setupUI
()
}
func
setupUI
()
{
self
.
selectionStyle
=
.
none
contentView
.
addSubview
(
titleLabel
)
contentView
.
addSubview
(
detailLabel
)
contentView
.
addSubview
(
tipsLabel
)
contentView
.
addSubview
(
longTimeBtn
)
titleLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalToSuperview
()
.
offset
(
16
)
make
.
right
.
equalTo
(
detailLabel
.
snp
.
left
)
.
offset
(
-
6
)
make
.
width
.
equalTo
(
120
)
make
.
centerY
.
equalToSuperview
()
}
detailLabel
.
snp
.
makeConstraints
{
make
in
make
.
right
.
equalToSuperview
()
.
offset
(
-
longTimeBtnWidth
-
16
-
6
)
make
.
centerY
.
equalToSuperview
()
}
tipsLabel
.
snp
.
makeConstraints
{
make
in
make
.
edges
.
equalTo
(
detailLabel
)
}
longTimeBtn
.
snp
.
makeConstraints
{
make
in
make
.
size
.
equalTo
(
CGSizeMake
(
longTimeBtnWidth
,
40
))
make
.
right
.
equalToSuperview
()
.
offset
(
-
16
)
make
.
centerY
.
equalToSuperview
()
}
}
func
updateUI
()
{
detailLabel
.
isHidden
=
isLontTime
tipsLabel
.
isHidden
=
isLontTime
longTimeBtn
.
snp
.
remakeConstraints
{
make
in
make
.
size
.
equalTo
(
CGSizeMake
(
longTimeBtnWidth
,
40
))
make
.
centerY
.
equalToSuperview
()
if
isLontTime
{
make
.
left
.
equalTo
(
detailLabel
)
}
else
{
make
.
right
.
equalToSuperview
()
.
offset
(
-
16
)
}
}
}
@objc
func
didClickLongTimeBtn
()
{
longTimeBtn
.
isSelected
=
!
longTimeBtn
.
isSelected
isLontTime
=
longTimeBtn
.
isSelected
if
let
clickBlock
=
clickBlock
{
clickBlock
()
}
}
}
galaxy/galaxy/Res/Assets.xcassets/Form/form_square_select.imageset/Contents.json
0 → 100644
View file @
56bdd5aa
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"Group 3040.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/Form/form_square_select.imageset/Group 3040.png
0 → 100644
View file @
56bdd5aa
1.05 KB
galaxy/galaxy/Res/Assets.xcassets/Form/form_square_unselect.imageset/Contents.json
0 → 100644
View file @
56bdd5aa
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"Rectangle 2471 (1).png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/Form/form_square_unselect.imageset/Rectangle 2471 (1).png
0 → 100644
View file @
56bdd5aa
468 Bytes
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