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
3585a10b
Commit
3585a10b
authored
Jul 26, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节添加
parent
eb0cd92a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
9 deletions
+40
-9
YHInvitationWithGiftsViewController.swift
...thGifts(邀请有礼)/C/YHInvitationWithGiftsViewController.swift
+26
-8
YHInvitationWithGiftsDetailView.swift
...onWithGifts(邀请有礼)/V/YHInvitationWithGiftsDetailView.swift
+13
-0
YHInvitationWithGiftsShareView.swift
...ionWithGifts(邀请有礼)/V/YHInvitationWithGiftsShareView.swift
+1
-1
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/InvitationWithGifts(邀请有礼)/C/YHInvitationWithGiftsViewController.swift
View file @
3585a10b
...
...
@@ -24,6 +24,30 @@ class YHInvitationWithGiftsViewController: YHBaseViewController {
setView
()
loadData
()
}
override
func
backItemClick
(
_
sender
:
Any
)
{
let
view
=
YHInvitationWithGiftsShareView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
KScreenHeight
))
view
.
block
=
{
tag
in
self
.
navigationController
?
.
popViewController
()
}
let
window
=
UIApplication
.
shared
.
yhKeyWindow
()
window
?
.
addSubview
(
view
)
}
/// 是否可以返回,包括点击返回和手势返回,默认YES
override
func
navigationShouldPop
()
->
Bool
{
let
view
=
YHInvitationWithGiftsShareView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
KScreenHeight
))
view
.
block
=
{
tag
in
self
.
navigationController
?
.
popViewController
()
}
let
window
=
UIApplication
.
shared
.
yhKeyWindow
()
window
?
.
addSubview
(
view
)
return
false
}
}
extension
YHInvitationWithGiftsViewController
:
UITableViewDelegate
,
UITableViewDataSource
{
...
...
@@ -76,7 +100,6 @@ extension YHInvitationWithGiftsViewController: UITableViewDelegate, UITableViewD
}
extension
YHInvitationWithGiftsViewController
{
func
getData
()
{
...
...
@@ -117,13 +140,8 @@ extension YHInvitationWithGiftsViewController {
bottomViewForShare
=
{
let
view
=
YHInvitationWithGiftsShareBottomView
()
view
.
block
=
{
tag
in
let
view
=
YHInvitationWithGiftsShareView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
KScreenHeight
))
view
.
block
=
{
tag
in
let
vc
=
YHInvatationShareViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
)
}
let
window
=
UIApplication
.
shared
.
yhKeyWindow
()
window
?
.
addSubview
(
view
)
let
vc
=
YHInvatationShareViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
)
}
return
view
}()
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/InvitationWithGifts(邀请有礼)/V/YHInvitationWithGiftsDetailView.swift
View file @
3585a10b
...
...
@@ -20,6 +20,7 @@ class YHInvitationWithGiftsDetailView: UIView {
var
closeButton
:
UIButton
!
var
messageLabel
:
UILabel
!
var
messageImage
:
UIImageView
!
var
bgView
:
UIView
!
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
...
...
@@ -71,6 +72,18 @@ class YHInvitationWithGiftsDetailView: UIView {
make
.
left
.
right
.
bottom
.
equalToSuperview
()
}
bgView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
UIColor
(
hex
:
0xf3f8ff
)
return
view
}()
topView
.
addSubview
(
bgView
)
bgView
.
snp
.
makeConstraints
{
make
in
make
.
right
.
equalTo
(
-
12
)
make
.
top
.
left
.
equalTo
(
12
)
make
.
height
.
equalTo
(
29
)
}
topImageView
=
{
let
imageView
=
UIImageView
()
imageView
.
image
=
UIImage
(
named
:
"invitation_with_gifts_detail_top"
)
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/InvitationWithGifts(邀请有礼)/V/YHInvitationWithGiftsShareView.swift
View file @
3585a10b
...
...
@@ -93,11 +93,11 @@ class YHInvitationWithGiftsShareView: UIView {
@objc
func
dismiss
()
{
removeFromSuperview
()
block
?(
0
)
}
@objc
func
share
()
{
removeFromSuperview
()
block
?(
0
)
}
}
...
...
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