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
91f67a9f
Commit
91f67a9f
authored
Jun 21, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
行程单
parent
c6ebfa74
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
69 additions
and
41 deletions
+69
-41
YHActivityTravelViewController.swift
...y(社区)/Activity(活动)/C/YHActivityTravelViewController.swift
+2
-23
YHActivityTravelCell.swift
...s/Community(社区)/Activity(活动)/V/YHActivityTravelCell.swift
+67
-18
Group 2033195113@2x.png
...vity/activity_travel_bkg.imageset/Group 2033195113@2x.png
+0
-0
Group 2033195113@3x.png
...vity/activity_travel_bkg.imageset/Group 2033195113@3x.png
+0
-0
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/Activity(活动)/C/YHActivityTravelViewController.swift
View file @
91f67a9f
...
@@ -52,14 +52,11 @@ class YHActivityTravelViewController: YHBaseViewController {
...
@@ -52,14 +52,11 @@ class YHActivityTravelViewController: YHBaseViewController {
gk_navigationBar
.
isHidden
=
false
gk_navigationBar
.
isHidden
=
false
gk_navigationBar
.
backgroundColor
=
.
clear
gk_navigationBar
.
backgroundColor
=
.
clear
view
.
backgroundColor
=
UIColor
.
pageBkgColor
view
.
backgroundColor
=
UIColor
.
pageBkgColor
//for test hjl
//1.
//1.
view
.
addSubview
(
topBkgImageV
)
view
.
addSubview
(
topBkgImageV
)
view
.
addSubview
(
tableView
)
view
.
addSubview
(
tableView
)
view
.
addSubview
(
bottomView
)
topBkgImageV
.
snp
.
makeConstraints
{
make
in
topBkgImageV
.
snp
.
makeConstraints
{
make
in
make
.
top
.
left
.
right
.
equalToSuperview
()
make
.
top
.
left
.
right
.
equalToSuperview
()
...
@@ -71,26 +68,8 @@ class YHActivityTravelViewController: YHBaseViewController {
...
@@ -71,26 +68,8 @@ class YHActivityTravelViewController: YHBaseViewController {
make
.
top
.
equalTo
(
k_Height_NavigationtBarAndStatuBar
)
make
.
top
.
equalTo
(
k_Height_NavigationtBarAndStatuBar
)
make
.
left
.
equalTo
(
20
)
make
.
left
.
equalTo
(
20
)
make
.
right
.
equalTo
(
-
20
)
make
.
right
.
equalTo
(
-
20
)
make
.
bottom
.
equalTo
(
bottomView
.
snp
.
top
)
make
.
bottom
.
equalToSuperview
()
}
bottomView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
height
.
equalTo
(
YHActivityDetailBottomView
.
viewH
)
}
bottomView
.
block
=
{
tag
in
YHApplyActivityAlert
.
showApplyActivityAlertView
{
tag
in
let
vc
=
YHApplyActivityResultViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
)
}
}
}
//2.
// addTopView()
// topView.backgroundColor = .red
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/Community(社区)/Activity(活动)/V/YHActivityTravelCell.swift
View file @
91f67a9f
...
@@ -11,6 +11,8 @@ import UIKit
...
@@ -11,6 +11,8 @@ import UIKit
class
YHActivityTravelCell
:
UITableViewCell
{
class
YHActivityTravelCell
:
UITableViewCell
{
static
let
cellReuseIdentifier
=
"YHActivityTravelCell"
static
let
cellReuseIdentifier
=
"YHActivityTravelCell"
private
var
isApplyFlag
:
Bool
=
true
var
sessionIndex
:
Int
=
0
{
var
sessionIndex
:
Int
=
0
{
didSet
{
didSet
{
...
@@ -31,15 +33,6 @@ class YHActivityTravelCell: UITableViewCell {
...
@@ -31,15 +33,6 @@ class YHActivityTravelCell: UITableViewCell {
setupUI
()
setupUI
()
}
}
lazy
var
topImgV
:
UIImageView
=
{
let
view
=
UIImageView
()
view
.
image
=
UIImage
(
named
:
"activity_cell_bkg_0"
)
view
.
contentMode
=
.
scaleAspectFill
view
.
clipsToBounds
=
true
return
view
}()
lazy
var
statusLable
:
UILabel
=
{
lazy
var
statusLable
:
UILabel
=
{
let
lable
=
UILabel
()
let
lable
=
UILabel
()
lable
.
textColor
=
UIColor
.
mainTextColor
lable
.
textColor
=
UIColor
.
mainTextColor
...
@@ -68,27 +61,74 @@ class YHActivityTravelCell: UITableViewCell {
...
@@ -68,27 +61,74 @@ class YHActivityTravelCell: UITableViewCell {
let
view
=
YHActivityTipsItemView
()
let
view
=
YHActivityTipsItemView
()
return
view
return
view
}()
}()
//取消活动
lazy
var
cancelButton
:
UIButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
button
.
backgroundColor
=
UIColor
.
brandMainColor
button
.
titleLabel
?
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
15
)
button
.
contentHorizontalAlignment
=
.
center
button
.
setTitle
(
"取消报名"
,
for
:
.
normal
)
button
.
setTitleColor
(
UIColor
.
white
,
for
:
.
normal
)
button
.
layer
.
cornerRadius
=
kCornerRadius3
button
.
addTarget
(
self
,
action
:
#selector(
clickCancelBtn
)
,
for
:
.
touchUpInside
)
button
.
layer
.
cornerRadius
=
kCornerRadius3
button
.
clipsToBounds
=
true
return
button
}()
}
}
extension
YHActivityTravelCell
{
extension
YHActivityTravelCell
{
@objc
func
clickCancelBtn
()
{
YHCommonAlertView
.
show
(
""
,
"是否取消报名?"
,
"是"
,
"否"
,
fullGuestureEnable
:
false
)
{
self
.
isApplyFlag
=
false
self
.
updateRightBtnUI
()
}
callBack
:
{
}
}
func
updateRightBtnUI
()
{
if
isApplyFlag
{
cancelButton
.
setTitle
(
"取消报名"
,
for
:
.
normal
)
cancelButton
.
setTitle
(
"取消报名"
,
for
:
.
highlighted
)
cancelButton
.
setTitleColor
(
UIColor
.
mainTextColor
,
for
:
.
normal
)
cancelButton
.
setTitleColor
(
UIColor
.
mainTextColor
,
for
:
.
highlighted
)
cancelButton
.
backgroundColor
=
.
white
cancelButton
.
layer
.
borderWidth
=
1
cancelButton
.
layer
.
borderColor
=
UIColor
.
mainTextColor50
.
cgColor
}
else
{
cancelButton
.
setTitle
(
"重新报名"
,
for
:
.
normal
)
cancelButton
.
setTitle
(
"重新报名"
,
for
:
.
highlighted
)
cancelButton
.
setTitleColor
(
UIColor
.
white
,
for
:
.
normal
)
cancelButton
.
setTitleColor
(
UIColor
.
white
,
for
:
.
highlighted
)
cancelButton
.
backgroundColor
=
.
brandMainColor
cancelButton
.
layer
.
borderWidth
=
0
cancelButton
.
layer
.
borderColor
=
UIColor
.
clear
.
cgColor
}
}
func
setupUI
()
{
func
setupUI
()
{
backgroundColor
=
.
clear
backgroundColor
=
.
clear
contentView
.
backgroundColor
=
.
clear
contentView
.
backgroundColor
=
.
clear
selectionStyle
=
.
none
selectionStyle
=
.
none
// contentView.addSubview(topImgV)
contentView
.
addSubview
(
statusLable
)
contentView
.
addSubview
(
statusLable
)
contentView
.
addSubview
(
acitivityTitle
)
contentView
.
addSubview
(
acitivityTitle
)
contentView
.
addSubview
(
acitivityDetail
)
contentView
.
addSubview
(
acitivityDetail
)
contentView
.
addSubview
(
acitivityTips
)
contentView
.
addSubview
(
acitivityTips
)
contentView
.
addSubview
(
cancelButton
)
// topImgV.snp.makeConstraints { make in
// make.top.left.right.equalToSuperview()
// make.height.equalTo(KScreenWidth)
// }
statusLable
.
snp
.
makeConstraints
{
make
in
statusLable
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalToSuperview
()
.
offset
(
20
)
make
.
top
.
equalToSuperview
()
.
offset
(
20
)
make
.
left
.
right
.
equalToSuperview
()
make
.
left
.
right
.
equalToSuperview
()
...
@@ -107,12 +147,21 @@ extension YHActivityTravelCell {
...
@@ -107,12 +147,21 @@ extension YHActivityTravelCell {
}
}
acitivityTips
.
snp
.
makeConstraints
{
make
in
acitivityTips
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
acitivityDetail
.
snp
.
bottom
)
.
offset
(
24
)
make
.
top
.
equalTo
(
acitivityDetail
.
snp
.
bottom
)
.
offset
(
24
)
make
.
left
.
right
.
equalToSuperview
()
make
.
left
.
right
.
equalToSuperview
()
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
42
)
// make.bottom.equalToSuperview().offset(-42)
}
cancelButton
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
acitivityTips
.
snp
.
bottom
)
.
offset
(
32
)
make
.
width
.
equalTo
(
178
)
make
.
height
.
equalTo
(
42
)
make
.
centerX
.
equalToSuperview
()
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
46
)
}
}
updateRightBtnUI
()
}
}
}
}
galaxy/galaxy/Res/Assets.xcassets/Activity/activity_travel_bkg.imageset/Group 2033195113@2x.png
View replaced file @
c6ebfa74
View file @
91f67a9f
122 KB
|
W:
|
H:
709 KB
|
W:
|
H:
2-up
Swipe
Onion skin
galaxy/galaxy/Res/Assets.xcassets/Activity/activity_travel_bkg.imageset/Group 2033195113@3x.png
View replaced file @
c6ebfa74
View file @
91f67a9f
This diff is collapsed.
Click to expand it.
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