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
965acaf7
Commit
965acaf7
authored
Apr 03, 2025
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// plan
parent
026d733f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
16 deletions
+12
-16
YHMyNewViewController.swift
...xy/Classes/Modules/Mine(我的)/C/YHMyNewViewController.swift
+0
-5
YHPlanPolicyDetailViewController.swift
...Modules/Plan(方案)/C/YHPlanPolicyDetailViewController.swift
+6
-5
YHPlanShareViewController.swift
...lasses/Modules/Plan(方案)/C/YHPlanShareViewController.swift
+5
-5
YHPlanShareImageCell.swift
...axy/Classes/Modules/Plan(方案)/V/YHPlanShareImageCell.swift
+1
-1
No files found.
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyNewViewController.swift
View file @
965acaf7
...
@@ -629,11 +629,6 @@ extension YHMyNewViewController {
...
@@ -629,11 +629,6 @@ extension YHMyNewViewController {
func
clickItem
(
_
item
:
PersonalModuleItem
)
{
func
clickItem
(
_
item
:
PersonalModuleItem
)
{
do
{
let
vc
=
YHPlanViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
)
return
}
if
!
checkLogin
()
{
if
!
checkLogin
()
{
return
return
}
}
...
...
galaxy/galaxy/Classes/Modules/Plan(方案)/C/YHPlanPolicyDetailViewController.swift
View file @
965acaf7
...
@@ -83,15 +83,15 @@ class YHPlanPolicyDetailViewController: YHBaseViewController {
...
@@ -83,15 +83,15 @@ class YHPlanPolicyDetailViewController: YHBaseViewController {
if
0
<=
currentIndex
,
currentIndex
<
arr
.
count
{
if
0
<=
currentIndex
,
currentIndex
<
arr
.
count
{
let
model
=
arr
[
currentIndex
]
let
model
=
arr
[
currentIndex
]
if
type
==
.
wechat
{
if
type
==
.
wechat
{
sendImageToWechat
(
model
.
im
g_url
)
sendImageToWechat
(
model
.
im
age_poster
)
}
else
if
type
==
.
copyLink
{
}
else
if
type
==
.
copyLink
{
let
pasteBoard
=
UIPasteboard
.
general
let
pasteBoard
=
UIPasteboard
.
general
pasteBoard
.
string
=
model
.
im
g_url
pasteBoard
.
string
=
model
.
im
age_poster
YHHUD
.
flash
(
message
:
"复制成功"
)
YHHUD
.
flash
(
message
:
"复制成功"
)
}
else
if
type
==
.
saveImg
{
}
else
if
type
==
.
saveImg
{
saveImgFromUrl
(
model
.
im
g_url
)
saveImgFromUrl
(
model
.
im
age_poster
)
}
}
}
}
}
}
...
@@ -137,7 +137,7 @@ class YHPlanPolicyDetailViewController: YHBaseViewController {
...
@@ -137,7 +137,7 @@ class YHPlanPolicyDetailViewController: YHBaseViewController {
func
showBgImage
(
index
:
Int
)
{
func
showBgImage
(
index
:
Int
)
{
if
0
<=
index
,
index
<
arr
.
count
{
if
0
<=
index
,
index
<
arr
.
count
{
let
model
=
arr
[
index
]
let
model
=
arr
[
index
]
if
let
url
=
URL
(
string
:
model
.
im
g_url
)
{
if
let
url
=
URL
(
string
:
model
.
im
age_poster
)
{
bgImgView
.
kf
.
setImage
(
with
:
url
)
bgImgView
.
kf
.
setImage
(
with
:
url
)
}
}
}
}
...
@@ -155,13 +155,14 @@ class YHPlanPolicyDetailViewController: YHBaseViewController {
...
@@ -155,13 +155,14 @@ class YHPlanPolicyDetailViewController: YHBaseViewController {
let
ossGroup
=
DispatchGroup
()
let
ossGroup
=
DispatchGroup
()
for
item
in
imgs
{
for
item
in
imgs
{
ossGroup
.
enter
()
ossGroup
.
enter
()
item
.
imgView
.
kf
.
setImage
(
with
:
URL
(
string
:
item
.
model
.
im
g_url
))
{
result
in
item
.
imgView
.
kf
.
setImage
(
with
:
URL
(
string
:
item
.
model
.
im
age_poster
))
{
result
in
switch
result
{
switch
result
{
case
let
.
success
(
value
):
case
let
.
success
(
value
):
let
size
=
value
.
image
.
size
let
size
=
value
.
image
.
size
let
scale
=
size
.
height
>
0
?
Double
(
size
.
width
/
size
.
height
)
:
1.0
let
scale
=
size
.
height
>
0
?
Double
(
size
.
width
/
size
.
height
)
:
1.0
if
scale
>
0
{
if
scale
>
0
{
item
.
width
=
scale
*
item
.
height
item
.
width
=
scale
*
item
.
height
printLog
(
"IMG_SIZE:
\(
item
.
width
)
,
\(
item
.
height
)
"
)
}
}
case
let
.
failure
(
error
):
case
let
.
failure
(
error
):
print
(
"Job failed:
\(
error
.
localizedDescription
)
"
)
print
(
"Job failed:
\(
error
.
localizedDescription
)
"
)
...
...
galaxy/galaxy/Classes/Modules/Plan(方案)/C/YHPlanShareViewController.swift
View file @
965acaf7
...
@@ -143,15 +143,15 @@ class YHPlanShareViewController: YHBaseViewController {
...
@@ -143,15 +143,15 @@ class YHPlanShareViewController: YHBaseViewController {
let
fileName
=
destinationURL
.
lastPathComponent
let
fileName
=
destinationURL
.
lastPathComponent
let
fileExtension
=
destinationURL
.
pathExtension
let
fileExtension
=
destinationURL
.
pathExtension
YHShareManager
.
shared
.
shareFileToWeChat
(
fileUrl
:
destinationURL
,
filename
:
fileName
,
ext
:
fileExtension
)
YHShareManager
.
shared
.
shareFileToWeChat
(
fileUrl
:
destinationURL
,
filename
:
fileName
,
ext
:
fileExtension
)
}
}
}
else
if
eventType
==
.
saveImg
{
}
else
if
eventType
==
.
saveImg
{
if
FileManager
.
default
.
fileExists
(
atPath
:
destinationURL
.
path
)
{
YHHUD
.
flash
(
message
:
"已下载PDF"
)
return
}
// if FileManager.default.fileExists(atPath: destinationURL.path) {
// YHHUD.flash(message: "已下载PDF")
// return
// }
//
if
pdfDownloadUrl
.
isEmpty
{
if
pdfDownloadUrl
.
isEmpty
{
requestPDF
()
requestPDF
()
...
...
galaxy/galaxy/Classes/Modules/Plan(方案)/V/YHPlanShareImageCell.swift
View file @
965acaf7
...
@@ -15,7 +15,7 @@ class YHPlanShareImageCell: UICollectionViewCell {
...
@@ -15,7 +15,7 @@ class YHPlanShareImageCell: UICollectionViewCell {
var
model
:
YHPlanPolicyImageInfo
=
YHPlanPolicyImageInfo
()
{
var
model
:
YHPlanPolicyImageInfo
=
YHPlanPolicyImageInfo
()
{
didSet
{
didSet
{
if
let
url
=
URL
(
string
:
model
.
model
.
im
g_url
)
{
if
let
url
=
URL
(
string
:
model
.
model
.
im
age_poster
)
{
imgView
.
kf
.
setImage
(
with
:
url
,
placeholder
:
UIImage
(
named
:
"global_default_image"
))
imgView
.
kf
.
setImage
(
with
:
url
,
placeholder
:
UIImage
(
named
:
"global_default_image"
))
}
else
{
}
else
{
imgView
.
image
=
UIImage
(
named
:
"global_default_image"
)
imgView
.
image
=
UIImage
(
named
:
"global_default_image"
)
...
...
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