Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
iOSTeam
/
Majiabao
/
TealiveModule
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e1cc67da
authored
May 11, 2024
by
pierce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bugs
parent
c2927501
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
Module/GDMoment/GDMoment/Features/Main/View/Cell/GDMomentPlazaMomentCell.swift
Module/GDMoment/GDMoment/Features/Main/View/GDMomentPlazaController.swift
Module/GDMoment/GDMoment/Features/Main/View/Cell/GDMomentPlazaMomentCell.swift
View file @
e1cc67da
...
@@ -270,6 +270,8 @@ class GDMomentPlazaMomentCell: BaseTableViewCell {
...
@@ -270,6 +270,8 @@ class GDMomentPlazaMomentCell: BaseTableViewCell {
var
clicking
=
false
var
clicking
=
false
func
setup
(
with
model
:
GDMomentPlazaMomentModel
)
{
func
setup
(
with
model
:
GDMomentPlazaMomentModel
)
{
currentModel
=
model
currentModel
=
model
contentCollectionView
.
reloadData
()
reuseDisposeBag
=
DisposeBag
()
reuseDisposeBag
=
DisposeBag
()
clean
()
clean
()
...
@@ -393,8 +395,6 @@ class GDMomentPlazaMomentCell: BaseTableViewCell {
...
@@ -393,8 +395,6 @@ class GDMomentPlazaMomentCell: BaseTableViewCell {
updateFrame
()
updateFrame
()
contentCollectionView
.
reloadData
()
if
let
layout
=
contentCollectionView
.
collectionViewLayout
as?
UICollectionViewFlowLayout
{
if
let
layout
=
contentCollectionView
.
collectionViewLayout
as?
UICollectionViewFlowLayout
{
if
model
.
images
.
count
==
3
{
if
model
.
images
.
count
==
3
{
layout
.
scrollDirection
=
.
horizontal
layout
.
scrollDirection
=
.
horizontal
...
...
Module/GDMoment/GDMoment/Features/Main/View/GDMomentPlazaController.swift
View file @
e1cc67da
...
@@ -162,6 +162,7 @@ class GDMomentPlazaController: BaseViewController {
...
@@ -162,6 +162,7 @@ class GDMomentPlazaController: BaseViewController {
self
.
scrollView
.
frame
=
self
.
view
.
bounds
self
.
scrollView
.
frame
=
self
.
view
.
bounds
self
.
scrollView
.
contentSize
=
.
init
(
width
:
self
.
scrollView
.
width
*
2
,
height
:
self
.
scrollView
.
height
)
self
.
scrollView
.
contentSize
=
.
init
(
width
:
self
.
scrollView
.
width
*
2
,
height
:
self
.
scrollView
.
height
)
self
.
momentPlazaView
.
frame
=
self
.
scrollView
.
bounds
self
.
momentPlazaView
.
frame
=
self
.
scrollView
.
bounds
self
.
momentPlazaView
.
x
=
0
self
.
followView
.
frame
=
self
.
scrollView
.
bounds
self
.
followView
.
frame
=
self
.
scrollView
.
bounds
self
.
followView
.
x
=
self
.
view
.
width
self
.
followView
.
x
=
self
.
view
.
width
}
}
...
...
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