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
4636fcc6
Commit
4636fcc6
authored
Mar 29, 2025
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UI
parent
fd4807c3
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
154 additions
and
1 deletion
+154
-1
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+12
-0
YHMakePlanViewController.swift
...odules/Plan(方案)/MakePlan/C/YHMakePlanViewController.swift
+3
-1
YHMakePlanPriceAlertView.swift
...odules/Plan(方案)/MakePlan/V/YHMakePlanPriceAlertView.swift
+0
-0
YHMakePlanSelectAlertView.swift
...dules/Plan(方案)/MakePlan/V/YHMakePlanSelectAlertView.swift
+0
-0
YHMakePlanShareAlertView.swift
...odules/Plan(方案)/MakePlan/V/YHMakePlanShareAlertView.swift
+139
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
4636fcc6
...
...
@@ -1231,6 +1231,9 @@
04B00F862D966EAB00F640C5
/* YHMakePlanBottomView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B00F852D966EAB00F640C5
/* YHMakePlanBottomView.swift */
;
};
04B00F882D96964100F640C5
/* YHMakePlanCardView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B00F872D96964100F640C5
/* YHMakePlanCardView.swift */
;
};
04B00F8A2D96969E00F640C5
/* YHMakePlanCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B00F892D96969E00F640C5
/* YHMakePlanCell.swift */
;
};
04B00F8C2D97C07900F640C5
/* YHMakePlanPriceAlertView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B00F8B2D97C07900F640C5
/* YHMakePlanPriceAlertView.swift */
;
};
04B00F8E2D97CBD900F640C5
/* YHMakePlanSelectAlertView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B00F8D2D97CBD900F640C5
/* YHMakePlanSelectAlertView.swift */
;
};
04B00F902D97D7A700F640C5
/* YHMakePlanShareAlertView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B00F8F2D97D7A700F640C5
/* YHMakePlanShareAlertView.swift */
;
};
04D8FF552D9258AA00703C75
/* YHPlanScoreView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04D8FF542D9258AA00703C75
/* YHPlanScoreView.swift */
;
};
04D8FF572D925A0800703C75
/* YHPlanScoreChart.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04D8FF562D925A0800703C75
/* YHPlanScoreChart.swift */
;
};
04D8FF592D925E6700703C75
/* YHPlanModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04D8FF582D925E6700703C75
/* YHPlanModel.swift */
;
};
...
...
@@ -2517,6 +2520,9 @@
04B00F852D966EAB00F640C5
/* YHMakePlanBottomView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMakePlanBottomView.swift
;
sourceTree
=
"<group>"
;
};
04B00F872D96964100F640C5
/* YHMakePlanCardView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMakePlanCardView.swift
;
sourceTree
=
"<group>"
;
};
04B00F892D96969E00F640C5
/* YHMakePlanCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMakePlanCell.swift
;
sourceTree
=
"<group>"
;
};
04B00F8B2D97C07900F640C5
/* YHMakePlanPriceAlertView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMakePlanPriceAlertView.swift
;
sourceTree
=
"<group>"
;
};
04B00F8D2D97CBD900F640C5
/* YHMakePlanSelectAlertView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMakePlanSelectAlertView.swift
;
sourceTree
=
"<group>"
;
};
04B00F8F2D97D7A700F640C5
/* YHMakePlanShareAlertView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMakePlanShareAlertView.swift
;
sourceTree
=
"<group>"
;
};
04D8FF542D9258AA00703C75
/* YHPlanScoreView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPlanScoreView.swift
;
sourceTree
=
"<group>"
;
};
04D8FF562D925A0800703C75
/* YHPlanScoreChart.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPlanScoreChart.swift
;
sourceTree
=
"<group>"
;
};
04D8FF582D925E6700703C75
/* YHPlanModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPlanModel.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -6696,6 +6702,9 @@
04B00F852D966EAB00F640C5
/* YHMakePlanBottomView.swift */
,
04B00F872D96964100F640C5
/* YHMakePlanCardView.swift */
,
04B00F892D96969E00F640C5
/* YHMakePlanCell.swift */
,
04B00F8B2D97C07900F640C5
/* YHMakePlanPriceAlertView.swift */
,
04B00F8D2D97CBD900F640C5
/* YHMakePlanSelectAlertView.swift */
,
04B00F8F2D97D7A700F640C5
/* YHMakePlanShareAlertView.swift */
,
);
path
=
V
;
sourceTree
=
"<group>"
;
...
...
@@ -7341,6 +7350,7 @@
04AE20152D12CFAF00891D24
/* YHGCApplicationTypeSelectCell.swift in Sources */
,
04AE20162D12CFAF00891D24
/* YHGCBasicInfoFillViewController.swift in Sources */
,
04AE20172D12CFAF00891D24
/* YHGCSchemeTableHeadView.swift in Sources */
,
04B00F8E2D97CBD900F640C5
/* YHMakePlanSelectAlertView.swift in Sources */
,
04AE20182D12CFAF00891D24
/* YHGCApplicationModel.swift in Sources */
,
04AE20192D12CFAF00891D24
/* YHGCApplicationTypeResponseModel.swift in Sources */
,
0411CF022D1A80F500644D35
/* YHGCMySignatureDetailViewController.swift in Sources */
,
...
...
@@ -8079,6 +8089,7 @@
045C12FD2D12CA5F00BD2DC0
/* YHOtherLoginViewController.swift in Sources */
,
045C12FE2D12CA5F00BD2DC0
/* YHInformationAuthorizationStepTwoViewController.swift in Sources */
,
045C12FF2D12CA5F00BD2DC0
/* YHWorkActionView.swift in Sources */
,
04B00F902D97D7A700F640C5
/* YHMakePlanShareAlertView.swift in Sources */
,
045C13002D12CA5F00BD2DC0
/* YHImproveTargetCell.swift in Sources */
,
045C13012D12CA5F00BD2DC0
/* YHPreviewFamilyMemberViewController.swift in Sources */
,
0411CF102D1C055100644D35
/* YHGCSignatureAddViewController.swift in Sources */
,
...
...
@@ -8216,6 +8227,7 @@
045C13782D12CA5F00BD2DC0
/* YHResignUploadTravelCardListfootView.swift in Sources */
,
045C13792D12CA5F00BD2DC0
/* YHWorkExperienceModel.swift in Sources */
,
045C137A2D12CA5F00BD2DC0
/* YHSchemeTableFooterView.swift in Sources */
,
04B00F8C2D97C07900F640C5
/* YHMakePlanPriceAlertView.swift in Sources */
,
045C137B2D12CA5F00BD2DC0
/* YHWorkExperienceItemView.swift in Sources */
,
045C137C2D12CA5F00BD2DC0
/* YHVisaRenewalPayInfoBaseCell.swift in Sources */
,
045C137D2D12CA5F00BD2DC0
/* YHPaddedLabel.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/Plan(方案)/MakePlan/C/YHMakePlanViewController.swift
View file @
4636fcc6
...
...
@@ -52,7 +52,9 @@ class YHMakePlanViewController: YHBaseViewController {
// Configure with data
priceView
.
configure
(
price
:
"489800"
)
{
print
(
"Action button tapped!"
)
// Handle the "去办理" action here
YHMakePlanShareAlertView
.
show
{
_
in
}
}
self
.
view
.
addSubview
(
tableView
)
...
...
galaxy/galaxy/Classes/Modules/Plan(方案)/MakePlan/V/YHMakePlanPriceAlertView.swift
0 → 100644
View file @
4636fcc6
This diff is collapsed.
Click to expand it.
galaxy/galaxy/Classes/Modules/Plan(方案)/MakePlan/V/YHMakePlanSelectAlertView.swift
0 → 100644
View file @
4636fcc6
This diff is collapsed.
Click to expand it.
galaxy/galaxy/Classes/Modules/Plan(方案)/MakePlan/V/YHMakePlanShareAlertView.swift
0 → 100644
View file @
4636fcc6
//
// YHMakePlanShareAlertView.swift
// galaxy
//
// Created by EDY on 2025/3/29.
// Copyright © 2025 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHMakePlanShareAlertView
:
UIView
{
typealias
Block
=
(
Int
)
->
Void
var
block
:
Block
?
var
centerView
:
UIView
!
var
sureButton
:
UIButton
!
var
leftButton
:
YHShareButton
!
var
rightButton
:
YHShareButton
!
static
func
show
(
callBack
:
@escaping
((
Int
)
->
Void
))
{
let
view
=
YHMakePlanShareAlertView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
KScreenHeight
))
view
.
block
=
callBack
let
window
=
UIApplication
.
shared
.
yhKeyWindow
()
window
?
.
addSubview
(
view
)
}
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
backgroundColor
=
UIColor
(
white
:
0.5
,
alpha
:
0.1
)
let
tap
=
UITapGestureRecognizer
(
target
:
self
,
action
:
#selector(
handleTap
)
)
tap
.
delegate
=
self
addGestureRecognizer
(
tap
)
setView
()
}
required
init
?(
coder
:
NSCoder
)
{
fatalError
(
"init(coder:) has not been implemented"
)
}
func
setView
()
{
backgroundColor
=
UIColor
(
hex
:
0x0000
,
alpha
:
0.5
)
centerView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
white
view
.
layer
.
cornerRadius
=
kCornerRadius3
return
view
}()
addSubview
(
centerView
)
centerView
.
snp
.
makeConstraints
{
make
in
make
.
bottom
.
left
.
right
.
equalToSuperview
()
make
.
height
.
equalTo
(
216
)
}
sureButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
button
.
backgroundColor
=
.
black
button
.
addTarget
(
self
,
action
:
#selector(
dismiss
)
,
for
:
.
touchUpInside
)
return
button
}()
centerView
.
addSubview
(
sureButton
)
sureButton
.
snp
.
makeConstraints
{
make
in
make
.
bottom
.
equalTo
(
-
54
)
make
.
left
.
equalTo
(
20
)
make
.
right
.
equalTo
(
-
20
)
make
.
height
.
equalTo
(
46
)
}
leftButton
=
{
let
button
=
YHShareButton
()
button
.
setContent
(
"invitation_with_gifts_share_center"
,
"微信好友"
)
button
.
addTarget
(
self
,
action
:
#selector(
peopleClick
)
,
for
:
.
touchUpInside
)
return
button
}()
centerView
.
addSubview
(
leftButton
)
leftButton
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
20
)
make
.
right
.
equalTo
(
centerView
.
snp
.
centerX
)
.
offset
(
-
33
)
make
.
height
.
equalTo
(
74
)
make
.
width
.
equalTo
(
52
)
}
rightButton
=
{
let
button
=
YHShareButton
()
button
.
setContent
(
"invitation_with_gifts_share_center"
,
"复制链接"
)
button
.
addTarget
(
self
,
action
:
#selector(
wxClick
)
,
for
:
.
touchUpInside
)
return
button
}()
centerView
.
addSubview
(
rightButton
)
rightButton
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
20
)
make
.
left
.
equalTo
(
centerView
.
snp
.
centerX
)
.
offset
(
33
)
make
.
height
.
equalTo
(
74
)
make
.
width
.
equalTo
(
52
)
}
}
@objc
func
wxClick
()
{
// guard let combinedImage = combinedImageFrom(imageView: centerImageView) else { return }
YHShareManager
.
shared
.
sendLinkContent
(
"香港身份规划专属礼包,限时领取!"
,
"资深银河规划专家1V1评估方案"
,
UIImage
(
named
:
"invitation_with_gifts_share_other"
)
??
UIImage
(),
link
:
YHBaseUrlManager
.
shared
.
curH5URL
()
+
"superAppBridge.html#/evaluation?channel=lkhtj-app&customer_id=
\(
YHLoginManager
.
shared
.
userModel
?
.
id
??
""
)
&scene_id=30"
)
// YHShareManager.shared.sendImageContent(combinedImage)
}
@objc
func
peopleClick
()
{
// guard let combinedImage = combinedImageFrom(imageView: centerImageView) else { return }
// YHShareManager.shared.sendImageContent(combinedImage, WXSceneTimeline)
YHShareManager
.
shared
.
sendLinkContent
(
"香港身份规划专属礼包,限时领取!"
,
"资深银河规划专家1V1评估方案"
,
UIImage
(
named
:
"invitation_with_gifts_share_other"
)
??
UIImage
(),
link
:
YHBaseUrlManager
.
shared
.
curH5URL
()
+
"superAppBridge.html#/evaluation?channel=lkhtj-app&customer_id=
\(
YHLoginManager
.
shared
.
userModel
?
.
id
??
""
)
&scene_id=30"
,
WXSceneTimeline
)
}
@objc
private
func
handleTap
(
_
sender
:
AnyObject
?)
{
dismiss
()
}
@objc
func
dismiss
()
{
removeFromSuperview
()
}
@objc
func
orderButtonClick
()
{
if
let
block
=
block
{
block
(
1
)
}
dismiss
()
}
@objc
func
guideButtonClick
()
{
if
let
block
=
block
{
block
(
2
)
}
dismiss
()
}
}
extension
YHMakePlanShareAlertView
:
UIGestureRecognizerDelegate
{
func
gestureRecognizer
(
_
gestureRecognizer
:
UIGestureRecognizer
,
shouldReceive
touch
:
UITouch
)
->
Bool
{
if
touch
.
view
==
self
{
return
true
}
return
false
}
}
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