Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
pidan
/
FuSiLive
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
47526a37
authored
Mar 12, 2026
by
suolong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加付费屋一个提示文案
parent
931163fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
2 deletions
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/Push/LiveStartView/FUSLiveStartSetPrivacyView.swift
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/Push/LiveStartView/FUSLiveStartSetPrivacyView.swift
View file @
47526a37
...
@@ -159,6 +159,13 @@ import FUSCommon
...
@@ -159,6 +159,13 @@ import FUSCommon
}
}
}
}
let
itemView
=
FUSLiveStartSetPrivacyItemView
.
fus_create
(
icon
:
iconStr
,
title
:
titlesList
[
index
],
subTitle
:
subTitlesList
[
index
],
canSelect
:
canSelect
)
let
itemView
=
FUSLiveStartSetPrivacyItemView
.
fus_create
(
icon
:
iconStr
,
title
:
titlesList
[
index
],
subTitle
:
subTitlesList
[
index
],
canSelect
:
canSelect
)
if
index
==
2
{
if
let
payData
=
FUSLiveHelper
.
shareInstance
()
.
liveBeforeReadyInfo
?
.
payData
,
(
payData
.
enable
??
"0"
)
.
intValue
!=
1
{
let
warnSubTitle
=
payData
.
warnSubTitle
??
""
itemView
.
fus_setRightTip
(
text
:
warnSubTitle
,
hideSelectedIndicator
:
true
)
}
}
itemView
.
selected
=
selectIndex
==
index
itemView
.
selected
=
selectIndex
==
index
self
.
privacyContentView
.
addArrangedSubview
(
itemView
)
self
.
privacyContentView
.
addArrangedSubview
(
itemView
)
itemView
.
snp
.
makeConstraints
{
make
in
itemView
.
snp
.
makeConstraints
{
make
in
...
@@ -511,6 +518,7 @@ class FUSLiveStartSetPrivacyItemView: UIView {
...
@@ -511,6 +518,7 @@ class FUSLiveStartSetPrivacyItemView: UIView {
let
disposeBag
=
DisposeBag
()
let
disposeBag
=
DisposeBag
()
let
bgTapBtn
=
UIButton
(
type
:
.
custom
)
let
bgTapBtn
=
UIButton
(
type
:
.
custom
)
let
iconImageView
=
UIImageView
()
let
iconImageView
=
UIImageView
()
let
titleContentView
=
UIView
()
let
titleLabel
=
UILabel
()
let
titleLabel
=
UILabel
()
let
subTitleLabel
=
UILabel
()
let
subTitleLabel
=
UILabel
()
let
selectedBtn
=
UIButton
(
type
:
.
custom
)
let
selectedBtn
=
UIButton
(
type
:
.
custom
)
...
@@ -537,7 +545,6 @@ class FUSLiveStartSetPrivacyItemView: UIView {
...
@@ -537,7 +545,6 @@ class FUSLiveStartSetPrivacyItemView: UIView {
make
.
size
.
equalTo
(
CGSizeMake
(
42
,
42
))
make
.
size
.
equalTo
(
CGSizeMake
(
42
,
42
))
}
}
let
titleContentView
=
UIView
()
titleContentView
.
isUserInteractionEnabled
=
false
titleContentView
.
isUserInteractionEnabled
=
false
bgTapBtn
.
addSubview
(
titleContentView
)
bgTapBtn
.
addSubview
(
titleContentView
)
titleContentView
.
snp
.
makeConstraints
{
make
in
titleContentView
.
snp
.
makeConstraints
{
make
in
...
@@ -581,7 +588,7 @@ class FUSLiveStartSetPrivacyItemView: UIView {
...
@@ -581,7 +588,7 @@ class FUSLiveStartSetPrivacyItemView: UIView {
cantSelectTipLabel
.
text
=
FUSLiveHelper
.
shareInstance
()
.
roomInfoModel
?
.
encryptionData
?
.
liveScopeOpenShow
??
""
cantSelectTipLabel
.
text
=
FUSLiveHelper
.
shareInstance
()
.
roomInfoModel
?
.
encryptionData
?
.
liveScopeOpenShow
??
""
cantSelectTipLabel
.
snp
.
makeConstraints
{
make
in
cantSelectTipLabel
.
snp
.
makeConstraints
{
make
in
make
.
right
.
equalToSuperview
()
.
inset
(
12
)
make
.
right
.
equalToSuperview
()
.
inset
(
12
)
make
.
centerY
.
equalToSuperview
(
)
make
.
top
.
equalToSuperview
()
.
inset
(
12
)
}
}
}
}
...
@@ -603,4 +610,26 @@ class FUSLiveStartSetPrivacyItemView: UIView {
...
@@ -603,4 +610,26 @@ class FUSLiveStartSetPrivacyItemView: UIView {
return
subView
return
subView
}
}
func
fus_setRightTip
(
text
:
String
,
hideSelectedIndicator
:
Bool
)
{
if
hideSelectedIndicator
{
self
.
selectedBtn
.
isHidden
=
true
}
if
text
.
isEmpty
==
false
{
self
.
cantSelectTipLabel
.
text
=
text
self
.
cantSelectTipLabel
.
isHidden
=
false
self
.
titleContentView
.
snp
.
remakeConstraints
{
make
in
make
.
left
.
equalTo
(
iconImageView
.
snp
.
right
)
.
offset
(
8
)
make
.
centerY
.
equalToSuperview
()
make
.
right
.
lessThanOrEqualTo
(
cantSelectTipLabel
.
snp
.
left
)
.
offset
(
-
8
)
}
}
else
{
self
.
cantSelectTipLabel
.
isHidden
=
true
self
.
titleContentView
.
snp
.
remakeConstraints
{
make
in
make
.
left
.
equalTo
(
iconImageView
.
snp
.
right
)
.
offset
(
8
)
make
.
centerY
.
equalToSuperview
()
make
.
right
.
lessThanOrEqualToSuperview
()
.
offset
(
-
12
)
}
}
}
}
}
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