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
361d97f8
Commit
361d97f8
authored
Apr 01, 2025
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UI相关
parent
c18bdf38
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
259 additions
and
38 deletions
+259
-38
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+8
-14
YHMakePlanViewController.swift
...odules/Plan(方案)/MakePlan/C/YHMakePlanViewController.swift
+57
-3
YHMakePlanHeadView.swift
...sses/Modules/Plan(方案)/MakePlan/V/YHMakePlanHeadView.swift
+0
-1
YHMakePlanPriceAlertView.swift
...odules/Plan(方案)/MakePlan/V/YHMakePlanPriceAlertView.swift
+8
-6
YHMakePlanSelectAlertView.swift
...dules/Plan(方案)/MakePlan/V/YHMakePlanSelectAlertView.swift
+15
-14
YHMakePlanTopView.swift
...asses/Modules/Plan(方案)/MakePlan/V/YHMakePlanTopView.swift
+80
-0
YHMakePlanViewModel.swift
...es/Modules/Plan(方案)/MakePlan/VM/YHMakePlanViewModel.swift
+91
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
361d97f8
...
...
@@ -1169,6 +1169,7 @@
048D6ADF2D5F0FBE00BC6F4C
/* YHMemberCenterHeaderBannerCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
048D6ADE2D5F0FBE00BC6F4C
/* YHMemberCenterHeaderBannerCell.swift */
;
};
048D6AE12D5F17C400BC6F4C
/* YHMembershipLevel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
048D6AE02D5F17C400BC6F4C
/* YHMembershipLevel.swift */
;
};
048D6AE32D6348F000BC6F4C
/* YHMemberCenterCurrentPrivilegeCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
048D6AE22D6348EF00BC6F4C
/* YHMemberCenterCurrentPrivilegeCell.swift */
;
};
0497C7532D9BD21500A3E32A
/* YHMakePlanViewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0497C7522D9BD21500A3E32A
/* YHMakePlanViewModel.swift */
;
};
04A750D02D925FD400974E5F
/* YHCustomerInformationQuestionnaireVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04A750CF2D925FD400974E5F
/* YHCustomerInformationQuestionnaireVC.swift */
;
};
04A750D22D93ABCE00974E5F
/* YHSurveyTableViewCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04A750D12D93ABCE00974E5F
/* YHSurveyTableViewCell.swift */
;
};
04A750D42D93DFED00974E5F
/* YHSurveyQuestionType.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04A750D32D93DFED00974E5F
/* YHSurveyQuestionType.swift */
;
};
...
...
@@ -1234,6 +1235,7 @@
04B00FC62D9A420F00F640C5
/* YHMakePlanHeadView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B00FB72D9A420F00F640C5
/* YHMakePlanHeadView.swift */
;
};
04B00FC72D9A420F00F640C5
/* YHMakePlanPriceAlertView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B00FB82D9A420F00F640C5
/* YHMakePlanPriceAlertView.swift */
;
};
04B00FC82D9A420F00F640C5
/* YHMakePlanCusttomHeadView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B00FB62D9A420F00F640C5
/* YHMakePlanCusttomHeadView.swift */
;
};
04B00FCA2D9AAD6100F640C5
/* YHMakePlanTopView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04B00FC92D9AAD6100F640C5
/* YHMakePlanTopView.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 */
;
};
...
...
@@ -1254,13 +1256,6 @@
04D8FF772D979BCC00703C75
/* YHPlanPolicyDetailViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04D8FF762D979BCC00703C75
/* YHPlanPolicyDetailViewController.swift */
;
};
04D8FF792D97BDBD00703C75
/* YHPlanShareViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04D8FF782D97BDBD00703C75
/* YHPlanShareViewController.swift */
;
};
04D8FF7B2D97C29E00703C75
/* YHPlanShareView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04D8FF7A2D97C29E00703C75
/* YHPlanShareView.swift */
;
};
04D8FFA82D97C80000703C75
/* YHMakePlanCardView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04D8FFA12D97C80000703C75
/* YHMakePlanCardView.swift */
;
};
04D8FFA92D97C80000703C75
/* YHMakePlanBottomView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04D8FFA02D97C80000703C75
/* YHMakePlanBottomView.swift */
;
};
04D8FFAA2D97C80000703C75
/* YHMakePlanCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04D8FFA22D97C80000703C75
/* YHMakePlanCell.swift */
;
};
04D8FFAB2D97C80000703C75
/* YHMakePlanViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04D8FF9E2D97C80000703C75
/* YHMakePlanViewController.swift */
;
};
04D8FFAC2D97C80000703C75
/* YHMakePlanCusttomHeadView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04D8FFA32D97C80000703C75
/* YHMakePlanCusttomHeadView.swift */
;
};
04D8FFAD2D97C80000703C75
/* YHMakePlanStateHeadView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04D8FFA52D97C80000703C75
/* YHMakePlanStateHeadView.swift */
;
};
04D8FFAE2D97C80000703C75
/* YHMakePlanHeadView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04D8FFA42D97C80000703C75
/* YHMakePlanHeadView.swift */
;
};
04D8FFB02D9A3CF200703C75
/* YHPlanShareImageCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04D8FFAF2D9A3CF200703C75
/* YHPlanShareImageCell.swift */
;
};
04E4CF3E2D5C6D32004D4013
/* YHCountryMessageView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04E4CF3D2D5C6D32004D4013
/* YHCountryMessageView.swift */
;
};
04E4CF402D5C83AE004D4013
/* YHSelectPhoneCountryViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04E4CF3F2D5C83AE004D4013
/* YHSelectPhoneCountryViewController.swift */
;
};
...
...
@@ -2472,6 +2467,7 @@
048D6ADE2D5F0FBE00BC6F4C
/* YHMemberCenterHeaderBannerCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMemberCenterHeaderBannerCell.swift
;
sourceTree
=
"<group>"
;
};
048D6AE02D5F17C400BC6F4C
/* YHMembershipLevel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMembershipLevel.swift
;
sourceTree
=
"<group>"
;
};
048D6AE22D6348EF00BC6F4C
/* YHMemberCenterCurrentPrivilegeCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMemberCenterCurrentPrivilegeCell.swift
;
sourceTree
=
"<group>"
;
};
0497C7522D9BD21500A3E32A
/* YHMakePlanViewModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMakePlanViewModel.swift
;
sourceTree
=
"<group>"
;
};
04A750CF2D925FD400974E5F
/* YHCustomerInformationQuestionnaireVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCustomerInformationQuestionnaireVC.swift
;
sourceTree
=
"<group>"
;
};
04A750D12D93ABCE00974E5F
/* YHSurveyTableViewCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHSurveyTableViewCell.swift
;
sourceTree
=
"<group>"
;
};
04A750D32D93DFED00974E5F
/* YHSurveyQuestionType.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHSurveyQuestionType.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -2538,6 +2534,7 @@
04B00FB92D9A420F00F640C5
/* YHMakePlanSelectAlertView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMakePlanSelectAlertView.swift
;
sourceTree
=
"<group>"
;
};
04B00FBA2D9A420F00F640C5
/* YHMakePlanShareAlertView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMakePlanShareAlertView.swift
;
sourceTree
=
"<group>"
;
};
04B00FBB2D9A420F00F640C5
/* YHMakePlanStateHeadView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMakePlanStateHeadView.swift
;
sourceTree
=
"<group>"
;
};
04B00FC92D9AAD6100F640C5
/* YHMakePlanTopView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMakePlanTopView.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>"
;
};
...
...
@@ -2558,13 +2555,6 @@
04D8FF762D979BCC00703C75
/* YHPlanPolicyDetailViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPlanPolicyDetailViewController.swift
;
sourceTree
=
"<group>"
;
};
04D8FF782D97BDBD00703C75
/* YHPlanShareViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPlanShareViewController.swift
;
sourceTree
=
"<group>"
;
};
04D8FF7A2D97C29E00703C75
/* YHPlanShareView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPlanShareView.swift
;
sourceTree
=
"<group>"
;
};
04D8FF9E2D97C80000703C75
/* YHMakePlanViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMakePlanViewController.swift
;
sourceTree
=
"<group>"
;
};
04D8FFA02D97C80000703C75
/* YHMakePlanBottomView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMakePlanBottomView.swift
;
sourceTree
=
"<group>"
;
};
04D8FFA12D97C80000703C75
/* YHMakePlanCardView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMakePlanCardView.swift
;
sourceTree
=
"<group>"
;
};
04D8FFA22D97C80000703C75
/* YHMakePlanCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMakePlanCell.swift
;
sourceTree
=
"<group>"
;
};
04D8FFA32D97C80000703C75
/* YHMakePlanCusttomHeadView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMakePlanCusttomHeadView.swift
;
sourceTree
=
"<group>"
;
};
04D8FFA42D97C80000703C75
/* YHMakePlanHeadView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMakePlanHeadView.swift
;
sourceTree
=
"<group>"
;
};
04D8FFA52D97C80000703C75
/* YHMakePlanStateHeadView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMakePlanStateHeadView.swift
;
sourceTree
=
"<group>"
;
};
04D8FFAF2D9A3CF200703C75
/* YHPlanShareImageCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPlanShareImageCell.swift
;
sourceTree
=
"<group>"
;
};
04E4CF3D2D5C6D32004D4013
/* YHCountryMessageView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCountryMessageView.swift
;
sourceTree
=
"<group>"
;
};
04E4CF3F2D5C83AE004D4013
/* YHSelectPhoneCountryViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHSelectPhoneCountryViewController.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -6732,6 +6722,7 @@
04B00FB92D9A420F00F640C5
/* YHMakePlanSelectAlertView.swift */
,
04B00FBA2D9A420F00F640C5
/* YHMakePlanShareAlertView.swift */
,
04B00FBB2D9A420F00F640C5
/* YHMakePlanStateHeadView.swift */
,
04B00FC92D9AAD6100F640C5
/* YHMakePlanTopView.swift */
,
);
path
=
V
;
sourceTree
=
"<group>"
;
...
...
@@ -6739,6 +6730,7 @@
04B00FBD2D9A420F00F640C5
/* VM */
=
{
isa
=
PBXGroup
;
children
=
(
0497C7522D9BD21500A3E32A
/* YHMakePlanViewModel.swift */
,
);
path
=
VM
;
sourceTree
=
"<group>"
;
...
...
@@ -7453,6 +7445,7 @@
045C10AE2D12CA5F00BD2DC0
/* YHResignInfoConfirmIViewModel.swift in Sources */
,
045C10AF2D12CA5F00BD2DC0
/* YHResignUploadTravelHKTableViewCell.swift in Sources */
,
045C10B02D12CA5F00BD2DC0
/* YHInfoItemView.swift in Sources */
,
0497C7532D9BD21500A3E32A
/* YHMakePlanViewModel.swift in Sources */
,
045C10B12D12CA5F00BD2DC0
/* YHHKRecordsEditContentVC.swift in Sources */
,
045C10B22D12CA5F00BD2DC0
/* UIDevice+Extension.swift in Sources */
,
045C10B32D12CA5F00BD2DC0
/* YHAIEvaluationAlertWebView.swift in Sources */
,
...
...
@@ -8141,6 +8134,7 @@
045C12FE2D12CA5F00BD2DC0
/* YHInformationAuthorizationStepTwoViewController.swift in Sources */
,
045C12FF2D12CA5F00BD2DC0
/* YHWorkActionView.swift in Sources */
,
045C13002D12CA5F00BD2DC0
/* YHImproveTargetCell.swift in Sources */
,
04B00FCA2D9AAD6100F640C5
/* YHMakePlanTopView.swift in Sources */
,
045C13012D12CA5F00BD2DC0
/* YHPreviewFamilyMemberViewController.swift in Sources */
,
0411CF102D1C055100644D35
/* YHGCSignatureAddViewController.swift in Sources */
,
045C13022D12CA5F00BD2DC0
/* YHPictureReviewManager.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/Plan(方案)/MakePlan/C/YHMakePlanViewController.swift
View file @
361d97f8
...
...
@@ -11,7 +11,10 @@ import UIKit
class
YHMakePlanViewController
:
YHBaseViewController
{
var
items
:
[[
Int
]]
=
[]
let
viewModel
=
YHSchemeViewModel
()
private
var
lastContentOffset
:
CGFloat
=
0
private
let
scrollThreshold
:
CGFloat
=
100
// 滑动100点显示导航栏
private
var
isNavigationBarHidden
=
false
lazy
var
tableView
:
UITableView
=
{
let
tableView
=
UITableView
(
frame
:
.
zero
,
style
:
.
grouped
)
...
...
@@ -33,6 +36,12 @@ class YHMakePlanViewController: YHBaseViewController {
return
view
}()
lazy
var
topView
:
YHMakePlanTopView
=
{
let
view
=
YHMakePlanTopView
()
view
.
isHidden
=
true
return
view
}()
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
...
...
@@ -41,7 +50,7 @@ class YHMakePlanViewController: YHBaseViewController {
gk_navBarAlpha
=
1
// gk_navBackgroundImage = UIImage(named: "my_scheme_nav")
gk_backImage
=
UIImage
(
named
:
"back_icon_white"
)
addRightItems
()
// Create and add to your view
view
.
addSubview
(
priceView
)
priceView
.
snp
.
makeConstraints
{
make
in
...
...
@@ -52,7 +61,7 @@ class YHMakePlanViewController: YHBaseViewController {
// Configure with data
priceView
.
configure
(
price
:
"489800"
)
{
print
(
"Action button tapped!"
)
YHMakePlan
Shar
eAlertView
.
show
{
_
in
YHMakePlan
Pric
eAlertView
.
show
{
_
in
}
}
...
...
@@ -62,9 +71,27 @@ class YHMakePlanViewController: YHBaseViewController {
make
.
top
.
left
.
right
.
equalToSuperview
()
make
.
bottom
.
equalTo
(
-
98
)
}
view
.
addSubview
(
topView
)
topView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalToSuperview
()
make
.
top
.
equalTo
(
k_Height_NavigationtBarAndStatuBar
)
make
.
height
.
equalTo
(
104
)
}
requestData
()
}
func
addRightItems
()
{
let
rightButtonItem
=
UIBarButtonItem
(
image
:
UIImage
(
named
:
"share_item"
)?
.
withRenderingMode
(
.
alwaysOriginal
),
style
:
.
plain
,
target
:
self
,
action
:
#selector(
share
)
)
gk_navRightBarButtonItem
=
rightButtonItem
gk_navItemRightSpace
=
16
}
@objc
func
share
()
{
}
func
requestData
()
{
tableView
.
reloadData
()
}
...
...
@@ -115,4 +142,31 @@ extension YHMakePlanViewController: UITableViewDelegate, UITableViewDataSource {
return
0.01
}
func
scrollViewDidScroll
(
_
scrollView
:
UIScrollView
)
{
let
offsetY
=
scrollView
.
contentOffset
.
y
+
scrollView
.
contentInset
.
top
if
offsetY
>
0
{
var
alpha
=
offsetY
/
k_Height_NavigationtBarAndStatuBar
if
alpha
>
1.0
{
alpha
=
1.0
}
gk_navBarAlpha
=
alpha
gk_navBackgroundColor
=
.
white
gk_navTitle
=
"续签至永居方案私人订制"
gk_navTitleColor
=
.
black
gk_backImage
=
UIImage
(
named
:
"nav_black_24"
)
gk_navRightBarButtonItem
?
.
image
=
UIImage
(
named
:
"share_item"
)
addRightItems
()
}
else
{
gk_navBarAlpha
=
0.0
gk_navBackgroundColor
=
.
clear
gk_navTitle
=
nil
gk_backImage
=
UIImage
(
named
:
"back_icon_white"
)
addRightItems
()
}
if
offsetY
>
333
.
fix
-
k_Height_NavigationtBarAndStatuBar
-
44
-
scrollView
.
contentInset
.
top
{
topView
.
isHidden
=
false
}
else
{
topView
.
isHidden
=
true
}
}
}
galaxy/galaxy/Classes/Modules/Plan(方案)/MakePlan/V/YHMakePlanHeadView.swift
View file @
361d97f8
...
...
@@ -36,7 +36,6 @@ class YHMakePlanHeadView: UIView {
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
backgroundColor
=
UIColor
(
hex
:
0x070E33
)
setUpView
()
}
...
...
galaxy/galaxy/Classes/Modules/Plan(方案)/MakePlan/V/YHMakePlanPriceAlertView.swift
View file @
361d97f8
...
...
@@ -70,7 +70,7 @@ class YHMakePlanPriceAlertView: UIView {
titleLabel
=
{
let
label
=
UILabel
()
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
1
5
)
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
1
7
)
label
.
textColor
=
UIColor
.
mainTextColor
label
.
textAlignment
=
.
center
label
.
text
=
"价格明细"
...
...
@@ -248,8 +248,8 @@ class YHMakePlanLabelCell: UITableViewCell {
titleLabel
=
{
let
label
=
UILabel
()
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
1
5
)
label
.
textColor
=
UIColor
.
mainTextColor
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
1
4
)
label
.
textColor
=
UIColor
(
hex
:
0x8993a2
)
label
.
text
=
"价格明细"
return
label
}()
...
...
@@ -269,8 +269,10 @@ class YHMakePlanLabelCell: UITableViewCell {
}()
centerView
.
addSubview
(
mainItemView
)
mainItemView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
bottom
.
equalToSuperview
()
make
.
top
.
equalTo
(
36
)
make
.
left
.
equalTo
(
18
)
make
.
right
.
equalTo
(
-
18
)
}
let
lineView
=
{
...
...
@@ -297,7 +299,7 @@ class YHMakePlanLabelCell: UITableViewCell {
var
h
=
20
let
titleLabel
=
{
let
label
=
UILabel
()
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
1
5
)
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
1
4
)
label
.
textColor
=
UIColor
.
mainTextColor
label
.
text
=
"香港身份申请至永居"
return
label
...
...
@@ -311,7 +313,7 @@ class YHMakePlanLabelCell: UITableViewCell {
let
valueLabel
=
{
let
label
=
UILabel
()
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
1
5
)
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
1
4
)
label
.
textColor
=
UIColor
.
mainTextColor
label
.
textAlignment
=
.
right
label
.
text
=
"¥58999"
...
...
galaxy/galaxy/Classes/Modules/Plan(方案)/MakePlan/V/YHMakePlanSelectAlertView.swift
View file @
361d97f8
...
...
@@ -75,7 +75,7 @@ class YHMakePlanSelectAlertView: UIView {
titleLabel
=
{
let
label
=
UILabel
()
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
1
5
)
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
1
7
)
label
.
textColor
=
UIColor
.
mainTextColor
label
.
textAlignment
=
.
center
label
.
text
=
"公司经营套餐选择"
...
...
@@ -152,19 +152,22 @@ class YHMakePlanSelectAlertView: UIView {
centerView
.
addSubview
(
cardView
)
cardView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalToSuperview
()
make
.
top
.
equalTo
(
104
)
make
.
height
.
equalTo
(
86
)
make
.
top
.
equalTo
(
92
)
make
.
height
.
equalTo
(
121
)
}
sureButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
button
.
backgroundColor
=
.
black
button
.
setTitleColor
(
UIColor
(
hex
:
0xffffff
),
for
:
.
normal
)
button
.
setTitle
(
"确认"
,
for
:
.
normal
)
button
.
layer
.
cornerRadius
=
4
button
.
addTarget
(
self
,
action
:
#selector(
dismiss
)
,
for
:
.
touchUpInside
)
return
button
}()
centerView
.
addSubview
(
sureButton
)
sureButton
.
snp
.
makeConstraints
{
make
in
make
.
bottom
.
equalTo
(
-
54
)
make
.
bottom
.
equalTo
(
-
42
)
make
.
left
.
equalTo
(
20
)
make
.
right
.
equalTo
(
-
20
)
make
.
height
.
equalTo
(
46
)
...
...
@@ -258,9 +261,8 @@ class YHMakePlanCardCell: UITableViewCell {
private
let
containerView
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
white
view
.
layer
.
cornerRadius
=
8
view
.
layer
.
borderWidth
=
1
view
.
layer
.
borderColor
=
UIColor
.
lightGray
.
cgColor
view
.
layer
.
borderColor
=
UIColor
.
mainTextColor
.
cgColor
return
view
}()
...
...
@@ -274,16 +276,16 @@ class YHMakePlanCardCell: UITableViewCell {
private
let
titleLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
text
=
"星企航6年服务"
label
.
font
=
UIFont
.
systemFont
(
ofSize
:
16
,
weight
:
.
medium
)
label
.
textColor
=
.
darkGray
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
label
.
textColor
=
.
mainTextColor
return
label
}()
private
let
priceLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
text
=
"¥129980"
label
.
font
=
UIFont
.
systemFont
(
ofSize
:
24
,
weight
:
.
bold
)
label
.
textColor
=
.
black
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
label
.
textColor
=
.
mainTextColor
return
label
}()
...
...
@@ -320,20 +322,19 @@ class YHMakePlanCardCell: UITableViewCell {
bgImageView
.
snp
.
makeConstraints
{
make
in
make
.
height
.
width
.
equalTo
(
46
)
make
.
left
.
equalToSuperview
()
.
offset
(
16
)
make
.
centerY
.
equalToSuperview
()
.
offset
(
-
16
)
make
.
centerY
.
equalToSuperview
()
}
titleLabel
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalToSuperview
()
.
offset
(
1
6
)
make
.
top
.
equalToSuperview
()
.
offset
(
1
2
)
make
.
left
.
equalToSuperview
()
.
offset
(
72
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
16
)
}
priceLabel
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
titleLabel
.
snp
.
bottom
)
.
offset
(
8
)
make
.
left
.
equalToSuperview
()
.
offset
(
72
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
16
)
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
1
6
)
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
1
2
)
}
}
...
...
galaxy/galaxy/Classes/Modules/Plan(方案)/MakePlan/V/YHMakePlanTopView.swift
0 → 100644
View file @
361d97f8
//
// YHMakePlanTopView.swift
// galaxy
//
// Created by EDY on 2025/3/31.
// Copyright © 2025 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
import
AttributedString
class
YHMakePlanTopView
:
UIView
{
private
let
yearsLabel
:
UILabel
=
{
let
label
=
UILabel
()
let
a
:
ASAttributedString
=
.
init
(
"预计可续期(年) "
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
14
)),
.
foreground
(
UIColor
(
hex
:
0x6a7586
)))
let
b
:
ASAttributedString
=
.
init
(
"5"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
24
)),
.
foreground
(
UIColor
.
mainTextColor
))
label
.
attributed
.
text
=
a
+
b
return
label
}()
private
let
percentageLabel
:
UILabel
=
{
let
label
=
UILabel
()
let
a
:
ASAttributedString
=
.
init
(
"续签综合通过率 "
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
14
)),
.
foreground
(
UIColor
(
hex
:
0x6a7586
)))
let
b
:
ASAttributedString
=
.
init
(
"90"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
24
)),
.
foreground
(
UIColor
.
mainTextColor
))
let
c
:
ASAttributedString
=
.
init
(
"%"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
16
)),
.
foreground
(
UIColor
.
mainTextColor
))
label
.
attributed
.
text
=
a
+
b
+
c
return
label
}()
private
lazy
var
custtomView
:
YHMakePlanCusttomHeadView
=
{
let
view
=
YHMakePlanCusttomHeadView
()
return
view
}()
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
setUpView
()
}
required
init
?(
coder
:
NSCoder
)
{
fatalError
(
"init(coder:) has not been implemented"
)
}
private
func
setUpView
()
{
backgroundColor
=
.
white
let
bgView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
UIColor
(
hex
:
0xf8f9fb
)
view
.
layer
.
cornerRadius
=
6
return
view
}()
addSubview
(
bgView
)
addSubview
(
yearsLabel
)
addSubview
(
percentageLabel
)
addSubview
(
custtomView
)
bgView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
18
)
make
.
right
.
equalTo
(
-
35
)
make
.
height
.
equalTo
(
42
)
make
.
top
.
equalTo
(
9
)
}
yearsLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
34
)
make
.
height
.
equalTo
(
24
)
make
.
top
.
equalTo
(
18
)
}
percentageLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
self
.
snp
.
centerX
)
make
.
height
.
equalTo
(
24
)
make
.
top
.
equalTo
(
18
)
}
custtomView
.
snp
.
makeConstraints
{
make
in
make
.
bottom
.
left
.
right
.
equalToSuperview
()
make
.
height
.
equalTo
(
44
)
}
}
}
galaxy/galaxy/Classes/Modules/Plan(方案)/MakePlan/VM/YHMakePlanViewModel.swift
0 → 100644
View file @
361d97f8
//
// YHMakePlanViewModel.swift
// galaxy
//
// Created by EDY on 2025/4/1.
// Copyright © 2025 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHMakePlanViewModel
:
YHBaseViewModel
{
var
arrContactList
:
[
YHContactItemModel
]
=
[]
// 请求白名单
func
getWhitelist
(
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
Void
)
{
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Order
.
bywhitelist
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
)
{
[
weak
self
]
json
,
_
in
// 1. json字符串 转 对象
guard
self
!=
nil
else
{
return
}
if
json
.
code
==
200
{
guard
let
dic
=
json
.
data
?
.
peel
as?
[
String
:
Any
],
let
data
=
dic
[
"Data"
]
as?
[
Any
],
let
result
=
[
YHServiceSearchModel
]
.
deserialize
(
from
:
data
)
else
{
callBackBlock
(
false
,
nil
)
return
}
if
result
.
count
!=
0
,
let
model
=
result
.
first
,
model
.
dictionary_code
.
count
!=
0
{
callBackBlock
(
true
,
nil
)
}
else
{
callBackBlock
(
false
,
nil
)
}
}
else
{
let
error
:
YHErrorModel
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
.
count
>
0
?
json
.
msg
:
"数据错误"
)
callBackBlock
(
false
,
error
)
}
}
failBlock
:
{
err
in
callBackBlock
(
false
,
err
)
}
}
// 请求合同项
func
getSearchList
(
_
order
:
String
,
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
Void
)
{
let
params
:
[
String
:
Any
]
=
[
"order_sn"
:
order
]
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Order
.
byorderid
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
_
in
// 1. json字符串 转 对象
guard
let
self
=
self
else
{
return
}
if
json
.
code
==
200
{
guard
let
dic
=
json
.
data
?
.
peel
as?
[
Any
],
let
resultModel
=
[
YHContactItemModel
]
.
deserialize
(
from
:
dic
)
else
{
self
.
arrContactList
=
[]
callBackBlock
(
false
,
nil
)
return
}
let
lastArray
=
resultModel
.
compactMap
{
$0
}
self
.
arrContactList
=
lastArray
callBackBlock
(
true
,
nil
)
}
else
{
self
.
arrContactList
=
[]
let
error
:
YHErrorModel
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
.
count
>
0
?
json
.
msg
:
"数据错误"
)
callBackBlock
(
false
,
error
)
}
}
failBlock
:
{
err
in
self
.
arrContactList
=
[]
callBackBlock
(
false
,
err
)
}
}
func
getAssistList
(
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
Void
)
{
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Order
.
assist
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
)
{
[
weak
self
]
json
,
_
in
// 1. json字符串 转 对象
guard
let
self
=
self
else
{
return
}
if
json
.
code
==
200
{
guard
let
dic
=
json
.
data
?
.
peel
as?
[
String
:
Any
],
let
data
=
dic
[
"orders"
]
as?
[
Any
],
let
resultModel
=
[
YHContactItemModel
]
.
deserialize
(
from
:
data
)
else
{
self
.
arrContactList
=
[]
callBackBlock
(
false
,
nil
)
return
}
let
lastArray
=
resultModel
.
compactMap
{
$0
}
self
.
arrContactList
=
lastArray
callBackBlock
(
true
,
nil
)
}
else
{
self
.
arrContactList
=
[]
let
error
:
YHErrorModel
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
.
count
>
0
?
json
.
msg
:
"数据错误"
)
callBackBlock
(
false
,
error
)
}
}
failBlock
:
{
err
in
self
.
arrContactList
=
[]
callBackBlock
(
false
,
err
)
}
}
}
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