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
203cd5b0
Commit
203cd5b0
authored
Mar 29, 2025
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// plan
parent
640e57a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
6 deletions
+28
-6
YHPlanShareViewController.swift
...lasses/Modules/Plan(方案)/C/YHPlanShareViewController.swift
+15
-6
YHPlanShareView.swift
...y/galaxy/Classes/Modules/Plan(方案)/V/YHPlanShareView.swift
+13
-0
No files found.
galaxy/galaxy/Classes/Modules/Plan(方案)/C/YHPlanShareViewController.swift
View file @
203cd5b0
...
@@ -18,12 +18,12 @@ class YHPlanShareBgView: UIView, JXSegmentedListContainerViewListDelegate {
...
@@ -18,12 +18,12 @@ class YHPlanShareBgView: UIView, JXSegmentedListContainerViewListDelegate {
let
bgWidth
=
293.0
let
bgWidth
=
293.0
let
bgHeight
=
380.0
let
bgHeight
=
380.0
var
index
:
YHPlanShareBgType
=
.
link
{
var
type
:
YHPlanShareBgType
=
.
link
{
didSet
{
didSet
{
imgV
.
image
=
index
==
.
link
?
UIImage
(
named
:
"plan_share_link_bg"
)
:
UIImage
(
named
:
"plan_share_pdf_bg"
)
imgV
.
image
=
type
==
.
link
?
UIImage
(
named
:
"plan_share_link_bg"
)
:
UIImage
(
named
:
"plan_share_pdf_bg"
)
imgV
.
snp
.
remakeConstraints
{
make
in
imgV
.
snp
.
remakeConstraints
{
make
in
make
.
width
.
equalTo
(
index
==
.
link
?
bgWidth
:
217
)
make
.
width
.
equalTo
(
type
==
.
link
?
bgWidth
:
217
)
make
.
height
.
equalTo
(
bgHeight
)
make
.
height
.
equalTo
(
bgHeight
)
make
.
centerX
.
equalToSuperview
()
make
.
centerX
.
equalToSuperview
()
make
.
centerY
.
equalToSuperview
()
make
.
centerY
.
equalToSuperview
()
...
@@ -66,6 +66,8 @@ class YHPlanShareBgView: UIView, JXSegmentedListContainerViewListDelegate {
...
@@ -66,6 +66,8 @@ class YHPlanShareBgView: UIView, JXSegmentedListContainerViewListDelegate {
class
YHPlanShareViewController
:
YHBaseViewController
{
class
YHPlanShareViewController
:
YHBaseViewController
{
var
type
:
YHPlanShareBgType
=
.
link
let
segmentTitles
=
[
"分享链接"
,
"分享PDF"
]
let
segmentTitles
=
[
"分享链接"
,
"分享PDF"
]
let
bgWidth
=
293.0
let
bgWidth
=
293.0
let
bgHeight
=
380.0
let
bgHeight
=
380.0
...
@@ -108,18 +110,19 @@ class YHPlanShareViewController: YHBaseViewController {
...
@@ -108,18 +110,19 @@ class YHPlanShareViewController: YHBaseViewController {
lazy
var
bottomShareView
:
YHPlanShareView
=
{
lazy
var
bottomShareView
:
YHPlanShareView
=
{
let
v
=
YHPlanShareView
(
frame
:
.
zero
)
let
v
=
YHPlanShareView
(
frame
:
.
zero
)
v
.
type
=
.
link
return
v
return
v
}()
}()
lazy
var
shareLinkBgView
:
YHPlanShareBgView
=
{
lazy
var
shareLinkBgView
:
YHPlanShareBgView
=
{
let
v
=
YHPlanShareBgView
()
let
v
=
YHPlanShareBgView
()
v
.
index
=
.
link
v
.
type
=
.
link
return
v
return
v
}()
}()
lazy
var
sharePdfBgView
:
YHPlanShareBgView
=
{
lazy
var
sharePdfBgView
:
YHPlanShareBgView
=
{
let
v
=
YHPlanShareBgView
()
let
v
=
YHPlanShareBgView
()
v
.
index
=
.
pdf
v
.
type
=
.
pdf
return
v
return
v
}()
}()
...
@@ -156,6 +159,12 @@ extension YHPlanShareViewController: JXSegmentedViewDelegate {
...
@@ -156,6 +159,12 @@ extension YHPlanShareViewController: JXSegmentedViewDelegate {
func
segmentedView
(
_
segmentedView
:
JXSegmentedView
,
didSelectedItemAt
index
:
Int
)
{
func
segmentedView
(
_
segmentedView
:
JXSegmentedView
,
didSelectedItemAt
index
:
Int
)
{
if
index
==
1
{
self
.
type
=
.
pdf
}
else
{
self
.
type
=
.
link
}
bottomShareView
.
type
=
self
.
type
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/Plan(方案)/V/YHPlanShareView.swift
View file @
203cd5b0
...
@@ -15,6 +15,19 @@ class YHPlanShareView: UIView {
...
@@ -15,6 +15,19 @@ class YHPlanShareView: UIView {
let
saveImgTag
=
9529
let
saveImgTag
=
9529
let
cancelTag
=
9530
let
cancelTag
=
9530
var
type
:
YHPlanShareBgType
=
.
link
{
didSet
{
if
type
==
.
link
{
copyLinkBtn
.
iconImgV
.
image
=
UIImage
(
named
:
"plan_share_copy"
)
copyLinkBtn
.
textLabel
.
text
=
"复制链接"
}
else
if
type
==
.
pdf
{
copyLinkBtn
.
iconImgV
.
image
=
UIImage
(
named
:
"plan_share_save"
)
copyLinkBtn
.
textLabel
.
text
=
"保存PDF"
}
}
}
var
clickBlock
:
((
YHPlanShareItemButtonType
)
->
Void
)?
var
clickBlock
:
((
YHPlanShareItemButtonType
)
->
Void
)?
lazy
var
whiteContentView
:
UIView
=
{
lazy
var
whiteContentView
:
UIView
=
{
...
...
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