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
6aedec8d
Commit
6aedec8d
authored
Aug 06, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、删除不使用代码
2、删除测试代码
parent
45e87ffa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
29 deletions
+5
-29
YHMySettingViewController.swift
...lasses/Modules/Mine(我的)/C/YHMySettingViewController.swift
+0
-7
YHPictureReviewManager.swift
.../Modules/PictureReview(图片预览)/YHPictureReviewManager.swift
+5
-22
No files found.
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMySettingViewController.swift
View file @
6aedec8d
...
...
@@ -157,13 +157,6 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget
}
@objc
func
didLogoutBtnClicked
()
{
let
arr
=
[
"https://img1.baidu.com/it/u=2032777443,4245182967&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=1422"
,
"http://img0.baidu.com/it/u=594725074,698294204&fm=253&app=138&f=JPEG?w=800&h=1422"
]
YHPictureReviewManager
.
shared
.
showNetWorkPicturs
(
curIndex
:
1
,
arrPicturs
:
arr
)
return
//for test hjl
YHCommonAlertView
.
show
(
""
,
"您确定要退出登录吗?"
,
"取消"
,
"确定"
,
fullGuestureEnable
:
false
)
{
}
callBack
:
{
...
...
galaxy/galaxy/Classes/Modules/PictureReview(图片预览)/YHPictureReviewManager.swift
View file @
6aedec8d
...
...
@@ -26,6 +26,7 @@ class YHPictureReviewManager: NSObject {
extension
YHPictureReviewManager
{
func
showNetWorkPicturs
(
curIndex
:
Int
,
arrPicturs
:[
String
])
{
guard
curIndex
>
0
,
arrPicturs
.
count
>
0
else
{
return
}
self
.
curIndex
=
curIndex
self
.
arrPics
=
arrPicturs
...
...
@@ -35,28 +36,22 @@ extension YHPictureReviewManager {
browser
.
numberOfItems
=
{
self
.
arrPics
.
count
}
browser
.
reloadCellAtIndex
=
{
context
in
let
url
=
URL
(
string
:
self
.
arrPics
[
context
.
index
])
//self.dataSource[context.index].secondLevelUrl.flatMap { URL(string: $0) }
let
url
=
URL
(
string
:
self
.
arrPics
[
context
.
index
])
let
browserCell
=
context
.
cell
as?
JXPhotoBrowserImageCell
browserCell
?
.
index
=
context
.
index
// let collectionPath = IndexPath(item: context.index, section: indexPath.section)
// let collectionCell = collectionView.cellForItem(at: collectionPath) as? BaseCollectionViewCell
let
placeholder
=
UIImage
(
named
:
"global_default_image"
)
//collectionCell?.imageView.image
let
placeholder
=
UIImage
(
named
:
"global_default_image"
)
browserCell
?
.
imageView
.
sd_setImage
(
with
:
url
,
placeholderImage
:
placeholder
,
options
:
[],
completed
:
{
(
_
,
_
,
_
,
_
)
in
browserCell
?
.
setNeedsLayout
()
})
// 添加长按事件
browserCell
?
.
longPressedAction
=
{
cell
,
_
in
self
.
longPress
(
cell
:
cell
)
}
}
// browser.transitionAnimator = JXPhotoBrowserZoomAnimator(previousView: { index -> UIView? in
// let path = IndexPath(item: index, section: indexPath.section)
// let cell = collectionView.cellForItem(at: path) as? BaseCollectionViewCell
// return cell?.imageView
// })
// 数字样式的页码指示器
browser
.
pageIndicator
=
JXPhotoBrowserNumberPageIndicator
()
browser
.
pageIndex
=
self
.
curIndex
...
...
@@ -67,18 +62,6 @@ extension YHPictureReviewManager {
extension
YHPictureReviewManager
{
private
func
longPress
(
cell
:
JXPhotoBrowserImageCell
)
{
// let alert = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet)
// alert.addAction(UIAlertAction(title: "删除", style: .destructive, handler: { _ in
// self.dataSource.remove(at: cell.index)
// self.collectionView.reloadData()
// cell.photoBrowser?.reloadData()
// // 如果删没了,关闭
// cell.photoBrowser?.dismiss()
// }))
// alert.addAction(UIAlertAction(title: "取消", style: .cancel, handler: nil))
// cell.photoBrowser?.present(alert, animated: true, completion: nil)
let
view
=
YHLongtapPictureSheetView
.
sheetView
()
view
.
show
()
}
...
...
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