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
77069248
Commit
77069248
authored
Jul 12, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理 已下架的 UI 展示
parent
3908501e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
5 deletions
+15
-5
YHActivityModel.swift
...odules/Community(社区)/Activity(活动)/M/YHActivityModel.swift
+1
-1
YHActivityDetailCell.swift
...s/Community(社区)/Activity(活动)/V/YHActivityDetailCell.swift
+5
-4
YHActivityListCell.swift
...les/Community(社区)/Activity(活动)/V/YHActivityListCell.swift
+7
-0
UIColor+Extension.swift
...xy/galaxy/Classes/Tools/Extention/UIColor+Extension.swift
+2
-0
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/Activity(活动)/M/YHActivityModel.swift
View file @
77069248
...
@@ -16,7 +16,7 @@ class YHActivityModel: YHBaseModel {
...
@@ -16,7 +16,7 @@ class YHActivityModel: YHBaseModel {
var
beginTime
:
String
=
""
//开始时间戳
var
beginTime
:
String
=
""
//开始时间戳
var
endTime
:
String
=
""
//结束时间戳
var
endTime
:
String
=
""
//结束时间戳
var
place
:
String
=
""
//活动地点
var
place
:
String
=
""
//活动地点
var
status
:
String
=
""
//活动的状态 1:立即报名 2:已报名 3:活动结束 4:已取消报名
var
status
:
String
=
""
//活动的状态 1:立即报名 2:已报名 3:活动结束 4:已取消报名
5:已下架
var
checkId
:
String
=
""
//活动行程ID 仅当活动状态为2(已报名)时才大于0
var
checkId
:
String
=
""
//活动行程ID 仅当活动状态为2(已报名)时才大于0
private
var
beginTimeForUI
:
String
=
""
private
var
beginTimeForUI
:
String
=
""
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/Activity(活动)/V/YHActivityDetailCell.swift
View file @
77069248
...
@@ -73,15 +73,12 @@ extension YHActivityDetailCell {
...
@@ -73,15 +73,12 @@ extension YHActivityDetailCell {
}
}
contentView
.
removeSubviews
()
contentView
.
removeSubviews
()
contentView
.
addSubview
(
topImgV
)
contentView
.
addSubview
(
topImgV
)
contentView
.
addSubview
(
acitivityTitle
)
contentView
.
addSubview
(
acitivityTitle
)
contentView
.
addSubview
(
acitivityDetail
)
contentView
.
addSubview
(
acitivityDetail
)
contentView
.
addSubview
(
acitivityTips
)
contentView
.
addSubview
(
acitivityTips
)
contentView
.
addSubview
(
fakeView
)
contentView
.
addSubview
(
fakeView
)
topImgV
.
snp
.
makeConstraints
{
make
in
topImgV
.
snp
.
makeConstraints
{
make
in
make
.
top
.
left
.
right
.
equalToSuperview
()
make
.
top
.
left
.
right
.
equalToSuperview
()
...
@@ -147,6 +144,10 @@ extension YHActivityDetailCell {
...
@@ -147,6 +144,10 @@ extension YHActivityDetailCell {
make
.
height
.
equalTo
(
1
)
make
.
height
.
equalTo
(
1
)
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
42
)
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
42
)
}
}
}
}
func
setupUI
()
{
func
setupUI
()
{
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/Activity(活动)/V/YHActivityListCell.swift
View file @
77069248
...
@@ -124,6 +124,13 @@ extension YHActivityListCell {
...
@@ -124,6 +124,13 @@ extension YHActivityListCell {
}
}
if
model
.
status
.
int
==
5
{
contentView
.
alpha
=
0.4
}
else
{
contentView
.
alpha
=
1.0
}
nameLabel
.
text
=
model
.
name
nameLabel
.
text
=
model
.
name
if
let
url
=
URL
(
string
:
model
.
cover
)
{
if
let
url
=
URL
(
string
:
model
.
cover
)
{
...
...
galaxy/galaxy/Classes/Tools/Extention/UIColor+Extension.swift
View file @
77069248
...
@@ -72,6 +72,8 @@ extension UIColor {
...
@@ -72,6 +72,8 @@ extension UIColor {
//页面背景
//页面背景
static
let
pageBkgColor
:
UIColor
=
UIColor
(
hexString
:
"#F8F8F8"
)
!
static
let
pageBkgColor
:
UIColor
=
UIColor
(
hexString
:
"#F8F8F8"
)
!
static
let
pageBkgColor40
:
UIColor
=
UIColor
(
hexString
:
"#94A3B8"
,
transparency
:
0.4
)
!
//内容背景色
//内容背景色
static
let
contentBkgColor
:
UIColor
=
UIColor
(
hexString
:
"#F8F9FB"
)
!
static
let
contentBkgColor
:
UIColor
=
UIColor
(
hexString
:
"#F8F9FB"
)
!
...
...
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