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
97e6a434
authored
Nov 18, 2024
by
pierce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bugs
parent
87e65467
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
8 deletions
Module/GDMoment/GDMoment/Features/Main/View/GDMomentPlazaController.swift
Module/GDPayment/GDPayment/Feature/RechargeController/GDDiamondRechargeController.swift
Module/GDShowRoomListModule/GDShowRoomListModule/Features/View/DailySignView/Cell/GDDailySignResultCell.swift
Module/GDShowRoomListModule/GDShowRoomListModule/Features/View/DailySignView/Cell/GDDailySingAwardCell.swift
Module/GDMoment/GDMoment/Features/Main/View/GDMomentPlazaController.swift
View file @
97e6a434
...
...
@@ -167,7 +167,7 @@ class GDMomentPlazaController: BaseViewController {
self
.
scrollView
.
backgroundColor
=
.
clear
let
y
=
self
.
isNavigationBarCleanColor
?
(
GDScreen
.
SafeArea
.
top
+
44
)
:
0
self
.
scrollView
.
frame
=
.
init
(
x
:
0
,
y
:
y
,
width
:
self
.
view
.
width
,
height
:
self
.
scrollV
iew
.
height
-
y
)
self
.
scrollView
.
frame
=
.
init
(
x
:
0
,
y
:
y
,
width
:
self
.
view
.
width
,
height
:
self
.
v
iew
.
height
-
y
)
self
.
scrollView
.
contentSize
=
.
init
(
width
:
self
.
view
.
width
*
2
,
height
:
self
.
scrollView
.
height
)
self
.
scrollView
.
showsVerticalScrollIndicator
=
false
self
.
scrollView
.
showsHorizontalScrollIndicator
=
false
...
...
@@ -190,7 +190,7 @@ class GDMomentPlazaController: BaseViewController {
override
func
viewDidLayoutSubviews
()
{
super
.
viewDidLayoutSubviews
()
let
y
=
self
.
isNavigationBarCleanColor
?
(
GDScreen
.
SafeArea
.
top
+
44
)
:
0
self
.
scrollView
.
frame
=
.
init
(
x
:
0
,
y
:
y
,
width
:
self
.
view
.
width
,
height
:
self
.
scrollV
iew
.
height
-
y
)
self
.
scrollView
.
frame
=
.
init
(
x
:
0
,
y
:
y
,
width
:
self
.
view
.
width
,
height
:
self
.
v
iew
.
height
-
y
)
self
.
scrollView
.
contentSize
=
.
init
(
width
:
self
.
scrollView
.
width
*
2
,
height
:
self
.
scrollView
.
height
)
self
.
momentPlazaView
.
frame
=
self
.
scrollView
.
bounds
self
.
momentPlazaView
.
x
=
0
...
...
Module/GDPayment/GDPayment/Feature/RechargeController/GDDiamondRechargeController.swift
View file @
97e6a434
...
...
@@ -150,7 +150,7 @@ class GDDiamondRechargeController: BaseViewController {
self
.
view
.
addSubview
(
collectionView
)
collectionView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
equalTo
(
titleBgImageView
.
snp
.
bottom
)
.
offset
(
16
)
make
.
top
.
equalTo
(
titleBgImageView
.
snp
.
bottom
)
.
offset
(
8
)
make
.
left
.
equalTo
(
16
)
make
.
right
.
equalTo
(
-
16
)
make
.
height
.
equalTo
(
180
)
...
...
@@ -167,7 +167,7 @@ class GDDiamondRechargeController: BaseViewController {
rechargeBtn
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
equalTo
(
32
)
make
.
right
.
equalTo
(
-
32
)
make
.
top
.
equalTo
(
collectionView
.
snp
.
bottom
)
.
offset
(
32
)
make
.
top
.
equalTo
(
collectionView
.
snp
.
bottom
)
.
offset
(
20
)
make
.
height
.
equalTo
(
50
)
}
}
...
...
@@ -258,6 +258,22 @@ class GDDiamondRechargeController: BaseViewController {
// 钻石数
output
.
diamondNum
?
.
drive
(
diamondNumLabel
.
rx
.
text
)
.
disposed
(
by
:
disposeBag
)
GDRouter
.
DataRouter
?
.
rechargeDatas
.
map
({
$0
.
count
})
.
subscribe
(
onNext
:
{
[
weak
self
]
count
in
guard
let
self
=
self
else
{
return
}
self
.
collectionView
.
snp
.
remakeConstraints
({
make
in
make
.
top
.
equalTo
(
self
.
titleBgImageView
.
snp
.
bottom
)
.
offset
(
8
)
make
.
left
.
equalTo
(
16
)
make
.
right
.
equalTo
(
-
16
)
var
height
=
(
count
/
3
+
1
)
*
90
if
height
<
180
{
height
=
180
}
make
.
height
.
equalTo
(
height
)
})
})
.
disposed
(
by
:
disposeBag
)
// 充值点数据
output
.
rechargeData
?
.
drive
(
collectionView
.
rx
.
items
(
cellIdentifier
:
reuseIdentifier
,
cellType
:
GDDiamondRechargeCell
.
self
))
{
index
,
element
,
cell
in
cell
.
setup
(
element
)
...
...
Module/GDShowRoomListModule/GDShowRoomListModule/Features/View/DailySignView/Cell/GDDailySignResultCell.swift
View file @
97e6a434
...
...
@@ -57,9 +57,9 @@ class GDDailySignResultCell: BaseCollectionViewCell {
iconImageView
.
cancelDownload
()
iconImageView
.
image
=
nil
iconImageView
.
setWebImage
(
model
.
icon
)
numberLabel
.
text
=
"x
\(
String
(
describing
:
model
.
num
)
)
"
if
let
num
=
model
.
num
{
numberLabel
.
text
=
"x
\(
num
)
"
}
}
}
Module/GDShowRoomListModule/GDShowRoomListModule/Features/View/DailySignView/Cell/GDDailySingAwardCell.swift
View file @
97e6a434
...
...
@@ -103,7 +103,10 @@ class GDDailySingAwardCell: BaseCollectionViewCell {
numLabel
.
font
=
.
gd_signFont
(
10
)
numLabel
.
textColor
=
.
hexColor
(
"EF3874"
)
numLabel
.
strokeColor
=
.
white
numLabel
.
text
=
"x
\(
String
(
describing
:
content
.
num
)
)
"
if
let
num
=
content
.
num
{
numLabel
.
text
=
"x
\(
num
)
"
}
numLabel
.
sizeToFit
()
iconImageView
.
addSubview
(
numLabel
)
...
...
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