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
eaa52bbe
Commit
eaa52bbe
authored
Oct 10, 2025
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 活动
parent
2c336f81
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
11 deletions
+37
-11
YHActivityListViewController.swift
...ity(社区)/Activity(活动)/C/YHActivityListViewController.swift
+15
-11
Contents.json
...ssets/Activity/activity_header_img.imageset/Contents.json
+22
-0
活动-1.png
...s.xcassets/Activity/activity_header_img.imageset/活动-1.png
+0
-0
活动.png
...ets.xcassets/Activity/activity_header_img.imageset/活动.png
+0
-0
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/Activity(活动)/C/YHActivityListViewController.swift
View file @
eaa52bbe
...
...
@@ -126,8 +126,21 @@ class YHActivityListViewController: YHBaseViewController {
tableView
.
register
(
UITableViewCell
.
self
,
forCellReuseIdentifier
:
"UITableViewCell"
)
tableView
.
register
(
YHActivityListCell
.
self
,
forCellReuseIdentifier
:
YHActivityListCell
.
cellReuseIdentifier
)
tableView
.
backgroundView
=
self
.
emptyDataTipsView
tableView
.
tableHeaderView
=
self
.
headerView
return
tableView
}()
lazy
var
headerView
:
UIView
=
{
let
radio
=
88.0
/
335.0
let
imgWidth
=
KScreenWidth
-
20.0
*
2
let
imgHeight
=
imgWidth
*
radio
var
height
=
imgHeight
+
16.0
let
view
=
UIView
(
frame
:
CGRect
(
x
:
20
,
y
:
0
,
width
:
imgWidth
,
height
:
height
))
let
imgV
=
UIImageView
(
frame
:
CGRect
(
x
:
0
,
y
:
16
,
width
:
imgWidth
,
height
:
imgHeight
))
imgV
.
image
=
UIImage
(
named
:
"activity_header_img"
)
view
.
addSubview
(
imgV
)
return
view
}()
lazy
var
emptyDataTipsView
:
YHEmptyDataView
=
{
let
view
=
YHEmptyDataView
.
createView
(
"暂无活动"
,
kEmptyCommonBgName
)
...
...
@@ -300,20 +313,11 @@ extension YHActivityListViewController: UITableViewDelegate, UITableViewDataSour
}
func
tableView
(
_
tableView
:
UITableView
,
heightForHeaderInSection
section
:
Int
)
->
CGFloat
{
var
height
:
CGFloat
=
16.0
if
section
!=
0
{
height
=
20.0
}
return
height
return
20.0
}
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
var
height
:
CGFloat
=
16.0
if
section
!=
0
{
height
=
20.0
}
let
view
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
-
16.0
*
2
,
height
:
height
))
let
view
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
-
16.0
*
2
,
height
:
20
))
view
.
backgroundColor
=
.
clear
return
view
}
...
...
galaxy/galaxy/Res/Assets.xcassets/Activity/activity_header_img.imageset/Contents.json
0 → 100644
View file @
eaa52bbe
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"活动.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"活动-1.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/Activity/activity_header_img.imageset/活动-1.png
0 → 100644
View file @
eaa52bbe
55.7 KB
galaxy/galaxy/Res/Assets.xcassets/Activity/activity_header_img.imageset/活动.png
0 → 100644
View file @
eaa52bbe
31.7 KB
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