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
d4df3171
Commit
d4df3171
authored
Jul 09, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的活动报名列表 处理已下架状态的 及点击事件
parent
f7b1fa30
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
YHActivityListViewController.swift
...ity(社区)/Activity(活动)/C/YHActivityListViewController.swift
+15
-5
YHActivityListCell.swift
...les/Community(社区)/Activity(活动)/V/YHActivityListCell.swift
+1
-1
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/Activity(活动)/C/YHActivityListViewController.swift
View file @
d4df3171
...
...
@@ -19,6 +19,7 @@ enum YHActivityStatus: Int {
case
applied
=
2
// 已报名
case
end
=
3
// 活动结束
case
canceled
=
4
// 已取消报名
case
soldout
=
5
//商品下架
var
titleForList
:
String
{
...
...
@@ -31,6 +32,8 @@ enum YHActivityStatus: Int {
return
"活动结束"
case
.
canceled
:
return
"立即报名"
case
.
soldout
:
return
"已下架"
default
:
return
""
}
...
...
@@ -46,6 +49,8 @@ enum YHActivityStatus: Int {
return
"活动结束"
case
.
canceled
:
return
"已取消"
case
.
soldout
:
return
"已下架"
default
:
return
""
}
...
...
@@ -78,6 +83,8 @@ enum YHActivityStatus: Int {
return
UIColor
.
mainTextColor30
case
.
canceled
:
return
UIColor
.
brandMainColor
case
.
soldout
:
return
UIColor
.
mainTextColor30
default
:
return
UIColor
.
clear
}
...
...
@@ -260,11 +267,14 @@ extension YHActivityListViewController: UITableViewDelegate, UITableViewDataSour
if
indexPath
.
section
<
viewModel
.
arrActivityListData
.
count
{
let
model
=
viewModel
.
arrActivityListData
[
indexPath
.
section
]
if
type
==
1
&&
model
.
status
.
int
==
2
{
let
vc
=
YHActivityTravelViewController
()
vc
.
travelId
=
model
.
checkId
navigationController
?
.
pushViewController
(
vc
)
if
type
==
1
{
if
model
.
status
.
int
==
2
{
let
vc
=
YHActivityTravelViewController
()
vc
.
travelId
=
model
.
checkId
navigationController
?
.
pushViewController
(
vc
)
}
else
if
model
.
status
.
int
==
5
{
YHHUD
.
flash
(
message
:
"活动已下架"
)
}
return
}
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/Activity(活动)/V/YHActivityListCell.swift
View file @
d4df3171
...
...
@@ -133,7 +133,7 @@ extension YHActivityListCell {
}
//
dateLabel
.
text
=
model
.
getDateString
()
//String(model.beginTime)
dateLabel
.
text
=
model
.
getDateString
()
//
detailLabel
.
text
=
model
.
place
...
...
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