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
de83d6e8
Commit
de83d6e8
authored
Apr 11, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 消息
parent
b7b08a63
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
125 additions
and
10 deletions
+125
-10
YHInformationFillCell.swift
...Classes/Modules/Message(消息)/C/YHInformationFillCell.swift
+17
-9
YHInformationFillVC.swift
...y/Classes/Modules/Message(消息)/C/YHInformationFillVC.swift
+106
-1
YHMsgViewController.swift
...y/Classes/Modules/Message(消息)/C/YHMsgViewController.swift
+2
-0
No files found.
galaxy/galaxy/Classes/Modules/Message(消息)/C/YHInformationFillCell.swift
View file @
de83d6e8
...
...
@@ -11,7 +11,9 @@ import AttributedString
class
YHInformationFillCell
:
UITableViewCell
{
static
let
cellReuseIdentifier
=
"YHInformationFillCell"
static
let
unreadPointWidth
=
6.0
var
whiteView
:
UIView
!
var
titleLabel
:
UILabel
!
var
detailLabel
:
UILabel
!
...
...
@@ -31,9 +33,12 @@ class YHInformationFillCell: UITableViewCell {
func
setupUI
()
{
self
.
selectionStyle
=
.
none
contentView
.
backgroundColor
=
.
white
contentView
.
backgroundColor
=
UIColor
(
hex
:
0xF8F8F8
)
whiteView
=
UIView
()
whiteView
.
backgroundColor
=
.
white
whiteView
.
layer
.
cornerRadius
=
6.0
whiteView
.
clipsToBounds
=
true
contentView
.
addSubview
(
whiteView
)
titleLabel
=
UILabel
()
...
...
@@ -51,14 +56,12 @@ class YHInformationFillCell: UITableViewCell {
detailLabel
=
UILabel
()
detailLabel
.
textColor
=
UIColor
(
hex
:
0x222222
)
detailLabel
.
textAlignment
=
.
left
detailLabel
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
17
)
detailLabel
.
text
=
"资料填写提醒"
.
local
detailLabel
.
numberOfLines
=
0
whiteView
.
addSubview
(
detailLabel
)
lineView
=
UIView
()
lineView
.
backgroundColor
=
UIColor
(
hex
:
0x888F9
8
)
lineView
.
backgroundColor
=
UIColor
(
hex
:
0xF8F8F
8
)
whiteView
.
addSubview
(
lineView
)
bottomBtn
=
UIButton
()
...
...
@@ -69,7 +72,9 @@ class YHInformationFillCell: UITableViewCell {
whiteView
.
addSubview
(
bottomBtn
)
whiteView
.
snp
.
makeConstraints
{
make
in
make
.
edges
.
equalToSuperview
()
make
.
left
.
equalToSuperview
()
.
offset
(
16
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
16
)
make
.
top
.
bottom
.
equalToSuperview
()
}
titleLabel
.
snp
.
makeConstraints
{
make
in
...
...
@@ -98,9 +103,12 @@ class YHInformationFillCell: UITableViewCell {
}
bottomBtn
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
lineView
.
snp
.
bottom
)
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
height
.
equalTo
(
52
)
}
updateModel
()
}
@objc
func
didBottomBtnClicked
()
{
...
...
galaxy/galaxy/Classes/Modules/Message(消息)/C/YHInformationFillVC.swift
View file @
de83d6e8
...
...
@@ -9,11 +9,116 @@
import
UIKit
class
YHInformationFillVC
:
YHBaseViewController
{
var
msgArr
:[
String
]
=
[
""
,
""
,
""
,
""
]
lazy
var
navBar
:
YHCustomNavigationBar
=
{
let
bar
=
YHCustomNavigationBar
.
navBar
()
bar
.
backgroundColor
=
.
white
bar
.
title
=
"资料填写"
.
local
bar
.
showRightButtonType
(
.
clean
)
bar
.
backBlock
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
bar
.
rightBtnClick
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
}
return
bar
}()
lazy
var
tableView
:
UITableView
=
{
let
tableView
=
UITableView
(
frame
:
.
zero
,
style
:
.
grouped
)
tableView
.
sectionHeaderHeight
=
46.0
tableView
.
estimatedSectionFooterHeight
=
1.0
tableView
.
showsVerticalScrollIndicator
=
false
tableView
.
separatorStyle
=
.
none
tableView
.
delegate
=
self
tableView
.
dataSource
=
self
tableView
.
backgroundColor
=
UIColor
(
hex
:
0xF8F8F8
)
tableView
.
register
(
UITableViewCell
.
self
,
forCellReuseIdentifier
:
"UITableViewCell"
)
tableView
.
register
(
YHInformationFillCell
.
self
,
forCellReuseIdentifier
:
YHInformationFillCell
.
cellReuseIdentifier
)
return
tableView
}()
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
setupUI
()
}
func
setupUI
()
{
gk_navigationBar
.
isHidden
=
true
view
.
backgroundColor
=
.
white
view
.
addSubview
(
tableView
)
view
.
addSubview
(
navBar
)
navBar
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalToSuperview
()
make
.
top
.
equalToSuperview
()
.
offset
(
k_Height_statusBar
())
make
.
height
.
equalTo
(
k_Height_NavContentBar
)
}
tableView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalToSuperview
()
make
.
top
.
equalToSuperview
()
.
offset
(
k_Height_NavigationtBarAndStatuBar
)
make
.
bottom
.
equalToSuperview
()
}
}
}
// Do any additional setup after loading the view.
extension
YHInformationFillVC
:
UITableViewDelegate
,
UITableViewDataSource
{
func
numberOfSections
(
in
tableView
:
UITableView
)
->
Int
{
return
msgArr
.
count
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
1
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHInformationFillCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHInformationFillCell
return
cell
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
UITableView
.
automaticDimension
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
}
private
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
CGFloat
{
return
46.0
}
private
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
CGFloat
{
return
1.0
}
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
return
UIView
()
}
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
let
view
=
UIView
()
let
label
=
UILabel
()
label
.
textColor
=
UIColor
(
hex
:
0x121A26
,
alpha
:
0.3
)
label
.
textAlignment
=
.
center
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
label
.
text
=
"2023-09-13"
view
.
addSubview
(
label
)
label
.
snp
.
makeConstraints
{
make
in
make
.
edges
.
equalToSuperview
()
}
return
view
}
}
galaxy/galaxy/Classes/Modules/Message(消息)/C/YHMsgViewController.swift
View file @
de83d6e8
...
...
@@ -96,6 +96,8 @@ extension YHMsgViewController: UITableViewDelegate, UITableViewDataSource {
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
let
vc
=
YHInformationFillVC
()
self
.
navigationController
?
.
pushViewController
(
vc
)
}
private
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
CGFloat
{
...
...
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