Commit 6025678e authored by Steven杜宇's avatar Steven杜宇

// plan

parent ade73cc3
...@@ -1228,9 +1228,6 @@ ...@@ -1228,9 +1228,6 @@
04B00F802D951D0B00F640C5 /* YHMakePlanHeadView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04B00F7F2D951D0B00F640C5 /* YHMakePlanHeadView.swift */; }; 04B00F802D951D0B00F640C5 /* YHMakePlanHeadView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04B00F7F2D951D0B00F640C5 /* YHMakePlanHeadView.swift */; };
04B00F822D95497400F640C5 /* YHMakePlanStateHeadView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04B00F812D95497400F640C5 /* YHMakePlanStateHeadView.swift */; }; 04B00F822D95497400F640C5 /* YHMakePlanStateHeadView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04B00F812D95497400F640C5 /* YHMakePlanStateHeadView.swift */; };
04B00F842D95518C00F640C5 /* YHMakePlanCusttomHeadView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04B00F832D95518C00F640C5 /* YHMakePlanCusttomHeadView.swift */; }; 04B00F842D95518C00F640C5 /* YHMakePlanCusttomHeadView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04B00F832D95518C00F640C5 /* YHMakePlanCusttomHeadView.swift */; };
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 */; };
04D8FF552D9258AA00703C75 /* YHPlanScoreView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04D8FF542D9258AA00703C75 /* YHPlanScoreView.swift */; }; 04D8FF552D9258AA00703C75 /* YHPlanScoreView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04D8FF542D9258AA00703C75 /* YHPlanScoreView.swift */; };
04D8FF572D925A0800703C75 /* YHPlanScoreChart.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04D8FF562D925A0800703C75 /* YHPlanScoreChart.swift */; }; 04D8FF572D925A0800703C75 /* YHPlanScoreChart.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04D8FF562D925A0800703C75 /* YHPlanScoreChart.swift */; };
04D8FF592D925E6700703C75 /* YHPlanModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04D8FF582D925E6700703C75 /* YHPlanModel.swift */; }; 04D8FF592D925E6700703C75 /* YHPlanModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04D8FF582D925E6700703C75 /* YHPlanModel.swift */; };
...@@ -1249,6 +1246,8 @@ ...@@ -1249,6 +1246,8 @@
04D8FF732D96759400703C75 /* YHPlanScoreLevelTextView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04D8FF722D96759400703C75 /* YHPlanScoreLevelTextView.swift */; }; 04D8FF732D96759400703C75 /* YHPlanScoreLevelTextView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04D8FF722D96759400703C75 /* YHPlanScoreLevelTextView.swift */; };
04D8FF752D978CF000703C75 /* YHPlanLinkShareView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04D8FF742D978CF000703C75 /* YHPlanLinkShareView.swift */; }; 04D8FF752D978CF000703C75 /* YHPlanLinkShareView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04D8FF742D978CF000703C75 /* YHPlanLinkShareView.swift */; };
04D8FF772D979BCC00703C75 /* YHPlanPolicyDetailViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04D8FF762D979BCC00703C75 /* YHPlanPolicyDetailViewController.swift */; }; 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 */; };
04E4CF3E2D5C6D32004D4013 /* YHCountryMessageView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04E4CF3D2D5C6D32004D4013 /* YHCountryMessageView.swift */; }; 04E4CF3E2D5C6D32004D4013 /* YHCountryMessageView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04E4CF3D2D5C6D32004D4013 /* YHCountryMessageView.swift */; };
04E4CF402D5C83AE004D4013 /* YHSelectPhoneCountryViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04E4CF3F2D5C83AE004D4013 /* YHSelectPhoneCountryViewController.swift */; }; 04E4CF402D5C83AE004D4013 /* YHSelectPhoneCountryViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04E4CF3F2D5C83AE004D4013 /* YHSelectPhoneCountryViewController.swift */; };
04E507D62D6EE856005F758B /* YHUserLevelAlertView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04E507D52D6EE856005F758B /* YHUserLevelAlertView.swift */; }; 04E507D62D6EE856005F758B /* YHUserLevelAlertView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04E507D52D6EE856005F758B /* YHUserLevelAlertView.swift */; };
...@@ -2516,9 +2515,6 @@ ...@@ -2516,9 +2515,6 @@
04B00F7F2D951D0B00F640C5 /* YHMakePlanHeadView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHMakePlanHeadView.swift; sourceTree = "<group>"; }; 04B00F7F2D951D0B00F640C5 /* YHMakePlanHeadView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHMakePlanHeadView.swift; sourceTree = "<group>"; };
04B00F812D95497400F640C5 /* YHMakePlanStateHeadView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHMakePlanStateHeadView.swift; sourceTree = "<group>"; }; 04B00F812D95497400F640C5 /* YHMakePlanStateHeadView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHMakePlanStateHeadView.swift; sourceTree = "<group>"; };
04B00F832D95518C00F640C5 /* YHMakePlanCusttomHeadView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHMakePlanCusttomHeadView.swift; sourceTree = "<group>"; }; 04B00F832D95518C00F640C5 /* YHMakePlanCusttomHeadView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHMakePlanCusttomHeadView.swift; sourceTree = "<group>"; };
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>"; };
04D8FF542D9258AA00703C75 /* YHPlanScoreView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHPlanScoreView.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>"; }; 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>"; }; 04D8FF582D925E6700703C75 /* YHPlanModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHPlanModel.swift; sourceTree = "<group>"; };
...@@ -2537,6 +2533,8 @@ ...@@ -2537,6 +2533,8 @@
04D8FF722D96759400703C75 /* YHPlanScoreLevelTextView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHPlanScoreLevelTextView.swift; sourceTree = "<group>"; }; 04D8FF722D96759400703C75 /* YHPlanScoreLevelTextView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHPlanScoreLevelTextView.swift; sourceTree = "<group>"; };
04D8FF742D978CF000703C75 /* YHPlanLinkShareView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHPlanLinkShareView.swift; sourceTree = "<group>"; }; 04D8FF742D978CF000703C75 /* YHPlanLinkShareView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHPlanLinkShareView.swift; sourceTree = "<group>"; };
04D8FF762D979BCC00703C75 /* YHPlanPolicyDetailViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHPlanPolicyDetailViewController.swift; sourceTree = "<group>"; }; 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>"; };
04E4CF3D2D5C6D32004D4013 /* YHCountryMessageView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHCountryMessageView.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>"; }; 04E4CF3F2D5C83AE004D4013 /* YHSelectPhoneCountryViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHSelectPhoneCountryViewController.swift; sourceTree = "<group>"; };
04E507D52D6EE856005F758B /* YHUserLevelAlertView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHUserLevelAlertView.swift; sourceTree = "<group>"; }; 04E507D52D6EE856005F758B /* YHUserLevelAlertView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHUserLevelAlertView.swift; sourceTree = "<group>"; };
...@@ -6697,9 +6695,6 @@ ...@@ -6697,9 +6695,6 @@
04B00F7F2D951D0B00F640C5 /* YHMakePlanHeadView.swift */, 04B00F7F2D951D0B00F640C5 /* YHMakePlanHeadView.swift */,
04B00F812D95497400F640C5 /* YHMakePlanStateHeadView.swift */, 04B00F812D95497400F640C5 /* YHMakePlanStateHeadView.swift */,
04B00F832D95518C00F640C5 /* YHMakePlanCusttomHeadView.swift */, 04B00F832D95518C00F640C5 /* YHMakePlanCusttomHeadView.swift */,
04B00F852D966EAB00F640C5 /* YHMakePlanBottomView.swift */,
04B00F872D96964100F640C5 /* YHMakePlanCardView.swift */,
04B00F892D96969E00F640C5 /* YHMakePlanCell.swift */,
); );
path = V; path = V;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -6733,6 +6728,7 @@ ...@@ -6733,6 +6728,7 @@
04A750D72D94F3F400974E5F /* YHSurveyMatchResultViewController.swift */, 04A750D72D94F3F400974E5F /* YHSurveyMatchResultViewController.swift */,
04A750D92D94FDDF00974E5F /* YHSurveyMatchingViewController.swift */, 04A750D92D94FDDF00974E5F /* YHSurveyMatchingViewController.swift */,
04D8FF762D979BCC00703C75 /* YHPlanPolicyDetailViewController.swift */, 04D8FF762D979BCC00703C75 /* YHPlanPolicyDetailViewController.swift */,
04D8FF782D97BDBD00703C75 /* YHPlanShareViewController.swift */,
); );
path = C; path = C;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -6755,6 +6751,7 @@ ...@@ -6755,6 +6751,7 @@
04D8FF702D9550E700703C75 /* YHPlanPolicyCarouselImageCell.swift */, 04D8FF702D9550E700703C75 /* YHPlanPolicyCarouselImageCell.swift */,
04D8FF722D96759400703C75 /* YHPlanScoreLevelTextView.swift */, 04D8FF722D96759400703C75 /* YHPlanScoreLevelTextView.swift */,
04D8FF742D978CF000703C75 /* YHPlanLinkShareView.swift */, 04D8FF742D978CF000703C75 /* YHPlanLinkShareView.swift */,
04D8FF7A2D97C29E00703C75 /* YHPlanShareView.swift */,
); );
path = V; path = V;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -7199,6 +7196,7 @@ ...@@ -7199,6 +7196,7 @@
045C10012D12CA5F00BD2DC0 /* YHCertificateAppointViewController.swift in Sources */, 045C10012D12CA5F00BD2DC0 /* YHCertificateAppointViewController.swift in Sources */,
045C10022D12CA5F00BD2DC0 /* YHResultBottomView.swift in Sources */, 045C10022D12CA5F00BD2DC0 /* YHResultBottomView.swift in Sources */,
045C10032D12CA5F00BD2DC0 /* YHWorkFileItemView.swift in Sources */, 045C10032D12CA5F00BD2DC0 /* YHWorkFileItemView.swift in Sources */,
04D8FF7B2D97C29E00703C75 /* YHPlanShareView.swift in Sources */,
045C10042D12CA5F00BD2DC0 /* YHSchemeModel.swift in Sources */, 045C10042D12CA5F00BD2DC0 /* YHSchemeModel.swift in Sources */,
045C10052D12CA5F00BD2DC0 /* YHPrincipleRequestModel.swift in Sources */, 045C10052D12CA5F00BD2DC0 /* YHPrincipleRequestModel.swift in Sources */,
045C10062D12CA5F00BD2DC0 /* YHWorkExperienceTextItemView.swift in Sources */, 045C10062D12CA5F00BD2DC0 /* YHWorkExperienceTextItemView.swift in Sources */,
...@@ -7418,7 +7416,6 @@ ...@@ -7418,7 +7416,6 @@
045C10B92D12CA5F00BD2DC0 /* YHClipperButton.swift in Sources */, 045C10B92D12CA5F00BD2DC0 /* YHClipperButton.swift in Sources */,
045C10BA2D12CA5F00BD2DC0 /* YHInvitationNumberItemView.swift in Sources */, 045C10BA2D12CA5F00BD2DC0 /* YHInvitationNumberItemView.swift in Sources */,
045C10BB2D12CA5F00BD2DC0 /* YHChildInfoContainerVC.swift in Sources */, 045C10BB2D12CA5F00BD2DC0 /* YHChildInfoContainerVC.swift in Sources */,
04B00F8A2D96969E00F640C5 /* YHMakePlanCell.swift in Sources */,
045C10BC2D12CA5F00BD2DC0 /* YHSignatureWebViewController.swift in Sources */, 045C10BC2D12CA5F00BD2DC0 /* YHSignatureWebViewController.swift in Sources */,
04307BA32D1E4CA600ED8E8D /* YHGCInformationFillTipsCell.swift in Sources */, 04307BA32D1E4CA600ED8E8D /* YHGCInformationFillTipsCell.swift in Sources */,
04D8FF6F2D954D9B00703C75 /* YHPlanPolicyCarouselView.swift in Sources */, 04D8FF6F2D954D9B00703C75 /* YHPlanPolicyCarouselView.swift in Sources */,
...@@ -7729,6 +7726,7 @@ ...@@ -7729,6 +7726,7 @@
045C11C82D12CA5F00BD2DC0 /* YHOrderSearchViewController.swift in Sources */, 045C11C82D12CA5F00BD2DC0 /* YHOrderSearchViewController.swift in Sources */,
045C11C92D12CA5F00BD2DC0 /* YHNoDataTipsView.swift in Sources */, 045C11C92D12CA5F00BD2DC0 /* YHNoDataTipsView.swift in Sources */,
045C11CA2D12CA5F00BD2DC0 /* YHHKRecordsInfoItemCell.swift in Sources */, 045C11CA2D12CA5F00BD2DC0 /* YHHKRecordsInfoItemCell.swift in Sources */,
04D8FF792D97BDBD00703C75 /* YHPlanShareViewController.swift in Sources */,
045C11CB2D12CA5F00BD2DC0 /* YHLiveDetailModel.swift in Sources */, 045C11CB2D12CA5F00BD2DC0 /* YHLiveDetailModel.swift in Sources */,
045C11CC2D12CA5F00BD2DC0 /* YHMessageListVC.swift in Sources */, 045C11CC2D12CA5F00BD2DC0 /* YHMessageListVC.swift in Sources */,
045C11CD2D12CA5F00BD2DC0 /* YHCompanySelectViewController.swift in Sources */, 045C11CD2D12CA5F00BD2DC0 /* YHCompanySelectViewController.swift in Sources */,
...@@ -7902,7 +7900,6 @@ ...@@ -7902,7 +7900,6 @@
045C12582D12CA5F00BD2DC0 /* YHMatchResultListViewController.swift in Sources */, 045C12582D12CA5F00BD2DC0 /* YHMatchResultListViewController.swift in Sources */,
045C12592D12CA5F00BD2DC0 /* YHMyNewSchemeViewController.swift in Sources */, 045C12592D12CA5F00BD2DC0 /* YHMyNewSchemeViewController.swift in Sources */,
045C125A2D12CA5F00BD2DC0 /* YHVisaRenewalGuideParagraphCell.swift in Sources */, 045C125A2D12CA5F00BD2DC0 /* YHVisaRenewalGuideParagraphCell.swift in Sources */,
04B00F862D966EAB00F640C5 /* YHMakePlanBottomView.swift in Sources */,
045C125B2D12CA5F00BD2DC0 /* YHMyWorkExperienceCell.swift in Sources */, 045C125B2D12CA5F00BD2DC0 /* YHMyWorkExperienceCell.swift in Sources */,
045C125C2D12CA5F00BD2DC0 /* YHAdopterCardTableViewCell.swift in Sources */, 045C125C2D12CA5F00BD2DC0 /* YHAdopterCardTableViewCell.swift in Sources */,
045C125D2D12CA5F00BD2DC0 /* YHAIRequestManager.swift in Sources */, 045C125D2D12CA5F00BD2DC0 /* YHAIRequestManager.swift in Sources */,
...@@ -8002,7 +7999,6 @@ ...@@ -8002,7 +7999,6 @@
045C12B32D12CA5F00BD2DC0 /* YHFamilyInfoConfirmViewModel.swift in Sources */, 045C12B32D12CA5F00BD2DC0 /* YHFamilyInfoConfirmViewModel.swift in Sources */,
045C12B42D12CA5F00BD2DC0 /* YHLifeDetailViewController.swift in Sources */, 045C12B42D12CA5F00BD2DC0 /* YHLifeDetailViewController.swift in Sources */,
045C12B52D12CA5F00BD2DC0 /* YHIncomeRecordWorkExperienceViewController.swift in Sources */, 045C12B52D12CA5F00BD2DC0 /* YHIncomeRecordWorkExperienceViewController.swift in Sources */,
04B00F882D96964100F640C5 /* YHMakePlanCardView.swift in Sources */,
045C12B62D12CA5F00BD2DC0 /* YHMyLikeViewModel.swift in Sources */, 045C12B62D12CA5F00BD2DC0 /* YHMyLikeViewModel.swift in Sources */,
045C12B72D12CA5F00BD2DC0 /* YHCertificateUploadSheetView.swift in Sources */, 045C12B72D12CA5F00BD2DC0 /* YHCertificateUploadSheetView.swift in Sources */,
045C12B82D12CA5F00BD2DC0 /* YHResignHaveAppointedApplicantsInfoCell.swift in Sources */, 045C12B82D12CA5F00BD2DC0 /* YHResignHaveAppointedApplicantsInfoCell.swift in Sources */,
......
//
// YHPlanShareViewController.swift
// galaxy
//
// Created by Dufet on 2025/3/29.
// Copyright © 2025 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
import JXSegmentedView
class YHPlanShareViewController: YHBaseViewController {
let segmentTitles = ["分享链接", "分享PDF"]
lazy var segmentedView: JXSegmentedView = {
let view = JXSegmentedView(frame: CGRect(x: 0, y: k_Height_safeAreaInsetsTop(), width: KScreenWidth, height: 30))
view.backgroundColor = .clear
view.delegate = self
// 配置指示器
let indicator = JXSegmentedIndicatorLineView()
indicator.indicatorWidth = 16
indicator.indicatorHeight = 2
indicator.indicatorCornerRadius = 0.0
indicator.indicatorColor = UIColor.white
view.indicators = [indicator]
view.dataSource = segmentedDataSource
return view
}()
lazy var segmentedDataSource: JXSegmentedTitleDataSource = {
let dataSource = JXSegmentedTitleDataSource()
dataSource.titles = segmentTitles
dataSource.titleNormalFont = UIFont.PFSC_R(ofSize: 16)
dataSource.titleNormalColor = UIColor.init(hex: 0x94A3B8)
dataSource.titleSelectedFont = UIFont.PFSC_M(ofSize: 16)
dataSource.titleSelectedColor = .mainTextColor
dataSource.isItemSpacingAverageEnabled = false
dataSource.itemWidth = 64
dataSource.itemSpacing = 22
return dataSource
}()
lazy var scrollView: UIScrollView = {
let v = UIScrollView(frame: .zero)
return v
}()
lazy var bottomShareView: YHPlanShareView = {
let v = YHPlanShareView(frame: .zero)
return v
}()
override func viewDidLoad() {
super.viewDidLoad()
gk_navigationBar.backgroundColor = .clear
view.backgroundColor = .init(hex: 0xF5F6F8)
view.addSubview(segmentedView)
view.addSubview(scrollView)
view.addSubview(bottomShareView)
segmentedView.snp.makeConstraints { make in
make.height.equalTo(34)
make.width.equalTo(64.0*2.0 + 24.0)
make.centerX.equalToSuperview()
}
scrollView.snp.makeConstraints { make in
make.centerX.equalToSuperview()
make.width.equalTo(293)
make.height.equalTo(380)
}
bottomShareView.snp.makeConstraints { make in
make.left.right.bottom.equalToSuperview()
make.height.equalTo(216)
}
}
}
extension YHPlanShareViewController: JXSegmentedViewDelegate {
func segmentedView(_ segmentedView: JXSegmentedView, didSelectedItemAt index: Int) {
}
}
...@@ -61,7 +61,7 @@ class YHPlanViewController: YHBaseViewController { ...@@ -61,7 +61,7 @@ class YHPlanViewController: YHBaseViewController {
}() }()
@objc func didShareBtnClicked() { @objc func didShareBtnClicked() {
let vc = YHPlanPolicyDetailViewController() let vc = YHPlanShareViewController()
self.navigationController?.pushViewController(vc) self.navigationController?.pushViewController(vc)
} }
......
//
// YHPlanShareView.swift
// galaxy
//
// Created by Dufet on 2025/3/29.
// Copyright © 2025 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
class YHPlanShareView: UIView {
let wechatBtnTag = 9527
let copyLinkTag = 9528
let saveImgTag = 9529
let cancelTag = 9530
var clickBlock: ((YHPlanShareItemButtonType) -> Void)?
lazy var whiteContentView: UIView = {
let v = UIView()
v.backgroundColor = .white
v.layer.cornerRadius = 12.0
v.clipsToBounds = true
return v
}()
lazy var cancelBtn: UIButton = {
let btn = UIButton()
btn.backgroundColor = .init(hex: 0xF5F6F8)
btn.setTitle("取消", for: .normal)
btn.setTitleColor(.mainTextColor, for: .normal)
btn.titleLabel?.font = .PFSC_M(ofSize: 16)
btn.layer.cornerRadius = 3.0
btn.addTarget(self, action: #selector(didFunctionBtnClicked(_:)), for: .touchUpInside)
return btn
}()
lazy var wechatBtn: YHPlanShareItemButton = {
let v = YHPlanShareItemButton()
v.tag = wechatBtnTag
v.textLabel.text = "微信"
v.iconImgV.image = UIImage(named: "plan_share_wechat")
v.addTarget(self, action: #selector(didFunctionBtnClicked(_:)), for: .touchUpInside)
return v
}()
lazy var copyLinkBtn: YHPlanShareItemButton = {
let v = YHPlanShareItemButton()
v.tag = copyLinkTag
v.textLabel.text = "复制链接"
v.iconImgV.image = UIImage(named: "plan_share_copy")
v.addTarget(self, action: #selector(didFunctionBtnClicked(_:)), for: .touchUpInside)
return v
}()
@objc func didFunctionBtnClicked(_ sender: UIButton) {
if sender.tag == wechatBtnTag {
clickBlock?(.wechat)
} else if sender.tag == copyLinkTag {
clickBlock?(.copyLink)
} else if sender.tag == saveImgTag {
clickBlock?(.saveImg)
} else if sender.tag == cancelTag {
}
}
override init(frame: CGRect) {
super.init(frame: frame)
createUI()
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
func createUI() {
self.addSubview(whiteContentView)
whiteContentView.addSubview(wechatBtn)
whiteContentView.addSubview(copyLinkBtn)
whiteContentView.addSubview(cancelBtn)
whiteContentView.snp.makeConstraints { make in
make.edges.equalToSuperview()
}
copyLinkBtn.snp.makeConstraints { make in
make.width.equalTo(64)
make.height.equalTo(74)
make.top.equalTo(20)
make.centerX.equalToSuperview().offset(35)
}
wechatBtn.snp.makeConstraints { make in
make.width.equalTo(64)
make.height.equalTo(74)
make.top.equalTo(24)
make.centerX.equalToSuperview().offset(35)
}
cancelBtn.snp.makeConstraints { make in
make.left.equalTo(16)
make.right.equalTo(-16)
make.height.equalTo(46)
make.top.equalTo(copyLinkBtn.snp.bottom).offset(20)
}
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "分享链接@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "分享链接@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "分享PDF@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "分享PDF@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment