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
f884bc00
Commit
f884bc00
authored
Aug 12, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 查看大图
parent
1670bc4e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
20 deletions
+18
-20
YHPrincipleWaitResultViewController.swift
...pleBatch(原则批)/C/YHPrincipleWaitResultViewController.swift
+0
-7
YHPrinciplePhotoCollectCell.swift
...e/PrincipleBatch(原则批)/V/YHPrinciplePhotoCollectCell.swift
+8
-0
YHPrinciplePhotoListCell.swift
...vice/PrincipleBatch(原则批)/V/YHPrinciplePhotoListCell.swift
+10
-13
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/PrincipleBatch(原则批)/C/YHPrincipleWaitResultViewController.swift
View file @
f884bc00
...
@@ -186,13 +186,6 @@ extension YHPrincipleWaitResultViewController: UITableViewDelegate, UITableViewD
...
@@ -186,13 +186,6 @@ extension YHPrincipleWaitResultViewController: UITableViewDelegate, UITableViewD
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
UITableView
.
automaticDimension
return
UITableView
.
automaticDimension
}
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
0
<=
indexPath
.
section
&&
indexPath
.
section
<
items
.
count
{
}
}
private
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
CGFloat
{
private
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
CGFloat
{
return
UITableView
.
automaticDimension
return
UITableView
.
automaticDimension
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/PrincipleBatch(原则批)/V/YHPrinciplePhotoCollectCell.swift
View file @
f884bc00
...
@@ -12,6 +12,7 @@ class YHPrinciplePhotoCollectCell: UICollectionViewCell {
...
@@ -12,6 +12,7 @@ class YHPrinciplePhotoCollectCell: UICollectionViewCell {
static
let
cellReuseIdentifier
=
"YHPrinciplePhotoCollectCell"
static
let
cellReuseIdentifier
=
"YHPrinciplePhotoCollectCell"
var
clickBlock
:
(()
->
())?
lazy
var
imgView
:
UIImageView
=
{
lazy
var
imgView
:
UIImageView
=
{
let
imgView
=
UIImageView
()
let
imgView
=
UIImageView
()
imgView
.
layer
.
cornerRadius
=
3.0
imgView
.
layer
.
cornerRadius
=
3.0
...
@@ -67,6 +68,9 @@ class YHPrinciplePhotoCollectCell: UICollectionViewCell {
...
@@ -67,6 +68,9 @@ class YHPrinciplePhotoCollectCell: UICollectionViewCell {
self
.
addSubview
(
imgView
)
self
.
addSubview
(
imgView
)
self
.
addSubview
(
titleLabel
)
self
.
addSubview
(
titleLabel
)
let
tap
=
UITapGestureRecognizer
(
target
:
self
,
action
:
#selector(
didPhotoClicked
)
)
self
.
contentView
.
addGestureRecognizer
(
tap
)
imgView
.
snp
.
makeConstraints
{
make
in
imgView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
top
.
equalToSuperview
()
make
.
left
.
right
.
top
.
equalToSuperview
()
make
.
height
.
equalTo
(
80.0
)
make
.
height
.
equalTo
(
80.0
)
...
@@ -78,6 +82,10 @@ class YHPrinciplePhotoCollectCell: UICollectionViewCell {
...
@@ -78,6 +82,10 @@ class YHPrinciplePhotoCollectCell: UICollectionViewCell {
make
.
height
.
equalTo
(
18.0
)
make
.
height
.
equalTo
(
18.0
)
}
}
}
}
@objc
func
didPhotoClicked
()
{
clickBlock
?()
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/PrincipleBatch(原则批)/V/YHPrinciplePhotoListCell.swift
View file @
f884bc00
...
@@ -216,21 +216,18 @@ extension YHPrinciplePhotoListCell: UICollectionViewDelegateFlowLayout, UICollec
...
@@ -216,21 +216,18 @@ extension YHPrinciplePhotoListCell: UICollectionViewDelegateFlowLayout, UICollec
if
0
<=
indexPath
.
item
,
indexPath
.
item
<
items
.
count
{
if
0
<=
indexPath
.
item
,
indexPath
.
item
<
items
.
count
{
let
model
=
items
[
indexPath
.
item
]
let
model
=
items
[
indexPath
.
item
]
cell
.
updateModel
(
model
)
cell
.
updateModel
(
model
)
cell
.
clickBlock
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
let
model
=
items
[
indexPath
.
item
]
var
imgUrlArr
:[
String
]
=
[]
for
item
in
items
{
imgUrlArr
.
append
(
item
.
image
)
}
YHPictureReviewManager
.
shared
.
showNetWorkPicturs
(
curIndex
:
indexPath
.
item
,
arrPicturs
:
imgUrlArr
)
}
}
}
return
cell
return
cell
}
}
private
func
collectionView
(
collectionView
:
UICollectionView
,
didSelectItemAtIndexPath
indexPath
:
NSIndexPath
)
{
print
(
"index is
\(
indexPath
.
row
)
"
)
if
0
<=
indexPath
.
item
,
indexPath
.
item
<
items
.
count
{
let
model
=
items
[
indexPath
.
item
]
var
imgUrlArr
:[
String
]
=
[]
for
item
in
items
{
imgUrlArr
.
append
(
item
.
image
)
}
YHPictureReviewManager
.
shared
.
showNetWorkPicturs
(
curIndex
:
indexPath
.
item
,
arrPicturs
:
imgUrlArr
)
}
}
}
}
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