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
3159f1dc
authored
Mar 13, 2026
by
ludi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复一些ui问题
parent
8920fece
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
96 additions
and
106 deletions
FuSiLive.xcodeproj/project.pbxproj
Modules/FUSShowRoomModule/FUSShowRoomModule/FUSShowRoomBundle.bundle/FUSShowRoomAssets.xcassets/PKNEW/live_list_room_popular_img.imageset/live_list_room_popular_img@2x.png
Modules/FUSShowRoomModule/FUSShowRoomModule/FUSShowRoomBundle.bundle/FUSShowRoomAssets.xcassets/PKNEW/live_list_room_popular_img.imageset/live_list_room_popular_img@3x.png
Modules/FUSShowRoomModule/FUSShowRoomModule/FUSShowRoomBundle.bundle/FUSShowRoomAssets.xcassets/PKNEW/live_pk_control_search_icon.imageset/Contents.json
Modules/FUSShowRoomModule/FUSShowRoomModule/FUSShowRoomBundle.bundle/FUSShowRoomAssets.xcassets/PKNEW/live_pk_control_search_icon.imageset/live_pk_control_search_icon@2x.png
Modules/FUSShowRoomModule/FUSShowRoomModule/FUSShowRoomBundle.bundle/FUSShowRoomAssets.xcassets/PKNEW/live_pk_control_search_icon.imageset/live_pk_control_search_icon@3x.png
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/PK/FUSPKNew/FUSView/FUSPKControlView/Cell/FUSPKControlContributionUserBlankCell.swift
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/PK/FUSPKNew/FUSView/FUSPKControlView/Cell/FUSPKControlSearchPlayerRandomCell.swift
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/PK/FUSPKNew/FUSView/FUSPKControlView/Cell/FUSPKUserContributionLogCell.swift
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/PK/FUSPKNew/FUSView/FUSPKControlView/FUSPKControlContributionView.swift
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/PK/FUSPKNew/FUSView/FUSPKControlView/FUSPKControlOpponentView.swift
FuSiLive.xcodeproj/project.pbxproj
View file @
3159f1dc
...
...
@@ -102,7 +102,7 @@
/* End PBXFileReference section */
/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */
00E501FF2E0543A800579DB0
/*
Exceptions for "NotificationService" folder in "NotificationService" targ
et */
=
{
00E501FF2E0543A800579DB0
/*
PBXFileSystemSynchronizedBuildFileExceptionS
et */
=
{
isa
=
PBXFileSystemSynchronizedBuildFileExceptionSet
;
membershipExceptions
=
(
"NotificationService-Info.plist"
,
...
...
@@ -112,18 +112,7 @@
/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */
/* Begin PBXFileSystemSynchronizedRootGroup section */
00E501F42E0543A800579DB0
/* NotificationService */
=
{
isa
=
PBXFileSystemSynchronizedRootGroup
;
exceptions
=
(
00E501FF2E0543A800579DB0
/* Exceptions for "NotificationService" folder in "NotificationService" target */
,
);
explicitFileTypes
=
{
};
explicitFolders
=
(
);
path
=
NotificationService
;
sourceTree
=
"<group>"
;
};
00E501F42E0543A800579DB0
/* NotificationService */
=
{
isa
=
PBXFileSystemSynchronizedRootGroup
;
exceptions
=
(
00E501FF2E0543A800579DB0
/* PBXFileSystemSynchronizedBuildFileExceptionSet */
,
);
explicitFileTypes
=
{};
explicitFolders
=
();
path
=
NotificationService
;
sourceTree
=
"<group>"
;
};
/* End PBXFileSystemSynchronizedRootGroup section */
/* Begin PBXFrameworksBuildPhase section */
...
...
@@ -426,10 +415,14 @@
inputFileListPaths
=
(
"${PODS_ROOT}/Target Support Files/Pods-FuSiLive/Pods-FuSiLive-frameworks-${CONFIGURATION}-input-files.xcfilelist"
,
);
inputPaths
=
(
);
name
=
"[CP] Embed Pods Frameworks"
;
outputFileListPaths
=
(
"${PODS_ROOT}/Target Support Files/Pods-FuSiLive/Pods-FuSiLive-frameworks-${CONFIGURATION}-output-files.xcfilelist"
,
);
outputPaths
=
(
);
runOnlyForDeploymentPostprocessing
=
0
;
shellPath
=
/bin/sh
;
shellScript
=
"\"${PODS_ROOT}/Target Support Files/Pods-FuSiLive/Pods-FuSiLive-frameworks.sh\"\n"
;
...
...
@@ -443,10 +436,14 @@
inputFileListPaths
=
(
"${PODS_ROOT}/Target Support Files/Pods-FuSiLive/Pods-FuSiLive-resources-${CONFIGURATION}-input-files.xcfilelist"
,
);
inputPaths
=
(
);
name
=
"[CP] Copy Pods Resources"
;
outputFileListPaths
=
(
"${PODS_ROOT}/Target Support Files/Pods-FuSiLive/Pods-FuSiLive-resources-${CONFIGURATION}-output-files.xcfilelist"
,
);
outputPaths
=
(
);
runOnlyForDeploymentPostprocessing
=
0
;
shellPath
=
/bin/sh
;
shellScript
=
"\"${PODS_ROOT}/Target Support Files/Pods-FuSiLive/Pods-FuSiLive-resources.sh\"\n"
;
...
...
@@ -676,7 +673,7 @@
CLANG_CXX_LANGUAGE_STANDARD
=
"gnu++17"
;
CODE_SIGN_ENTITLEMENTS
=
FuSiLive/FuSiLive.entitlements
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
2025062600
39
;
CURRENT_PROJECT_VERSION
=
2025062600
40
;
DEFINES_MODULE
=
YES
;
DEVELOPMENT_TEAM
=
6GG26BHUMC
;
ENABLE_ON_DEMAND_RESOURCES
=
NO
;
...
...
@@ -941,7 +938,7 @@
CLANG_CXX_LANGUAGE_STANDARD
=
"gnu++17"
;
CODE_SIGN_ENTITLEMENTS
=
FuSiLive/FuSiLive.entitlements
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
2025062600
39
;
CURRENT_PROJECT_VERSION
=
2025062600
40
;
DEFINES_MODULE
=
YES
;
DEVELOPMENT_TEAM
=
6GG26BHUMC
;
ENABLE_ON_DEMAND_RESOURCES
=
NO
;
...
...
Modules/FUSShowRoomModule/FUSShowRoomModule/FUSShowRoomBundle.bundle/FUSShowRoomAssets.xcassets/PKNEW/live_list_room_popular_img.imageset/live_list_room_popular_img@2x.png
View file @
3159f1dc
1.67 KB
|
W:
|
H:
2.34 KB
|
W:
|
H:
2-up
Swipe
Onion skin
Modules/FUSShowRoomModule/FUSShowRoomModule/FUSShowRoomBundle.bundle/FUSShowRoomAssets.xcassets/PKNEW/live_list_room_popular_img.imageset/live_list_room_popular_img@3x.png
View file @
3159f1dc
3.18 KB
|
W:
|
H:
3.05 KB
|
W:
|
H:
2-up
Swipe
Onion skin
Modules/FUSShowRoomModule/FUSShowRoomModule/FUSShowRoomBundle.bundle/FUSShowRoomAssets.xcassets/PKNEW/live_pk_control_search_icon.imageset/Contents.json
deleted
100644 → 0
View file @
8920fece
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"live_pk_control_search_icon@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"live_pk_control_search_icon@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
Modules/FUSShowRoomModule/FUSShowRoomModule/FUSShowRoomBundle.bundle/FUSShowRoomAssets.xcassets/PKNEW/live_pk_control_search_icon.imageset/live_pk_control_search_icon@2x.png
deleted
100644 → 0
View file @
8920fece
1.72 KB
Modules/FUSShowRoomModule/FUSShowRoomModule/FUSShowRoomBundle.bundle/FUSShowRoomAssets.xcassets/PKNEW/live_pk_control_search_icon.imageset/live_pk_control_search_icon@3x.png
deleted
100644 → 0
View file @
8920fece
3.31 KB
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/PK/FUSPKNew/FUSView/FUSPKControlView/Cell/FUSPKControlContributionUserBlankCell.swift
View file @
3159f1dc
...
...
@@ -418,6 +418,10 @@ class FUSPKControlContributionHotDataCell: UITableViewCell {
var
level
=
model
.
level
if
isVip
==
0
{
level
=
-
1
self
.
richImageView
.
isHidden
=
true
}
else
{
self
.
richImageView
.
isHidden
=
false
}
self
.
richImageView
.
image
=
.
fus_image
(
withLevel
:
level
)
...
...
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/PK/FUSPKNew/FUSView/FUSPKControlView/Cell/FUSPKControlSearchPlayerRandomCell.swift
View file @
3159f1dc
...
...
@@ -108,16 +108,16 @@ class FUSPKControlSearchPlayerPlayerListHeader: FUSBaseView {
override
func
makeUI
()
{
super
.
makeUI
()
let
bottomBgColorView
=
UIView
()
bottomBgColorView
.
backgroundColor
=
.
init
(
hex
:
"#F0F0F0"
)
self
.
addSubview
(
bottomBgColorView
)
bottomBgColorView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalToSuperview
()
.
inset
(
16
)
make
.
bottom
.
equalToSuperview
()
make
.
height
.
equalTo
(
10
)
}
//
let bottomBgColorView = UIView()
//
bottomBgColorView.backgroundColor = .init(hex: "#F0F0F0")
//
self.addSubview(bottomBgColorView)
//
bottomBgColorView.snp.makeConstraints { make in
//
make.left.right.equalToSuperview().inset(16)
//
make.bottom.equalToSuperview()
//
make.height.equalTo(10)
//
}
bgImageView
.
backgroundColor
=
.
init
(
hex
:
"#F0F0F0"
)
//
bgImageView.backgroundColor = .init(hex: "#F0F0F0")
bgImageView
.
layer
.
cornerRadius
=
8
bgImageView
.
layer
.
masksToBounds
=
true
bgImageView
.
isUserInteractionEnabled
=
true
...
...
@@ -125,7 +125,7 @@ class FUSPKControlSearchPlayerPlayerListHeader: FUSBaseView {
bgImageView
.
snp
.
makeConstraints
{
make
in
make
.
bottom
.
equalToSuperview
()
make
.
top
.
equalTo
(
10
)
make
.
left
.
right
.
equalToSuperview
()
.
inset
(
16
)
make
.
left
.
right
.
equalToSuperview
()
.
inset
(
8
)
}
titleLabel
.
font
=
.
fus_themeMediumFont
(
17
)
...
...
@@ -146,7 +146,7 @@ class FUSPKControlSearchPlayerPlayerListHeader: FUSBaseView {
}
let
searchBgView
=
UIView
()
searchBgView
.
backgroundColor
=
.
white
searchBgView
.
backgroundColor
=
.
init
(
hex
:
"#F0F0F0"
)
searchBgView
.
layer
.
cornerRadius
=
34
/
2.0
searchBgView
.
layer
.
masksToBounds
=
true
bgImageView
.
addSubview
(
searchBgView
)
...
...
@@ -158,7 +158,8 @@ class FUSPKControlSearchPlayerPlayerListHeader: FUSBaseView {
make
.
top
.
equalTo
(
titleLabel
.
snp
.
bottom
)
}
let
searchIcon
=
UIImageView
(
image
:
FUSShowRoomCenterBunble
.
imageNamed
(
"live_pk_control_search_icon"
))
let
searchIcon
=
UIImageView
(
image
:
FUSShowRoomCenterBunble
.
imageNamed
(
"fus_home_navi_search_icon"
))
searchIcon
.
contentMode
=
.
scaleAspectFit
searchBgView
.
addSubview
(
searchIcon
)
searchIcon
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
10
)
...
...
@@ -257,23 +258,23 @@ class FUSPKControlSearchPlayerPlayerListCell: UITableViewCell {
let
lineView
=
UIView
()
func
makeUI
(){
let
topBgColorView
=
UIView
()
topBgColorView
.
backgroundColor
=
.
init
(
hex
:
"#F0F0F0"
)
self
.
addSubview
(
topBgColorView
)
topBgColorView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalToSuperview
()
.
inset
(
16
)
make
.
top
.
equalToSuperview
()
make
.
height
.
equalTo
(
10
)
}
//
let topBgColorView = UIView()
//
topBgColorView.backgroundColor = .init(hex: "#F0F0F0")
//
self.addSubview(topBgColorView)
//
topBgColorView.snp.makeConstraints { make in
//
make.left.right.equalToSuperview().inset(16)
//
make.top.equalToSuperview()
//
make.height.equalTo(10)
//
}
bgImageView
.
backgroundColor
=
.
init
(
hex
:
"#F0F0F0"
)
//
bgImageView.backgroundColor = .init(hex: "#F0F0F0")
bgImageView
.
layer
.
cornerRadius
=
8
bgImageView
.
layer
.
masksToBounds
=
true
bgImageView
.
isUserInteractionEnabled
=
true
self
.
contentView
.
addSubview
(
bgImageView
)
bgImageView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
bottom
.
equalToSuperview
()
make
.
left
.
right
.
equalToSuperview
()
.
inset
(
16
)
make
.
left
.
right
.
equalToSuperview
()
.
inset
(
8
)
}
faceView
.
layer
.
cornerRadius
=
40
/
2.0
...
...
@@ -391,6 +392,10 @@ class FUSPKControlSearchPlayerPlayerListCell: UITableViewCell {
var
level
=
model
.
level
if
isVip
==
false
{
level
=
-
1
self
.
richImageView
.
isHidden
=
true
}
else
{
self
.
richImageView
.
isHidden
=
false
}
self
.
richImageView
.
image
=
.
fus_image
(
withLevel
:
level
)
...
...
@@ -420,18 +425,18 @@ class FUSPKControlSearchPlayerNoDataCell: UITableViewCell {
func
makeUI
(){
let
topColorView
=
UIView
()
topColorView
.
backgroundColor
=
.
init
(
hex
:
"#F0F0F0"
)
self
.
contentView
.
addSubview
(
topColorView
)
topColorView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalToSuperview
()
.
inset
(
16
)
make
.
top
.
equalToSuperview
()
make
.
height
.
equalTo
(
10
)
}
//
let topColorView = UIView()
//
topColorView.backgroundColor = .init(hex: "#F0F0F0")
//
self.contentView.addSubview(topColorView)
//
topColorView.snp.makeConstraints { make in
//
make.left.right.equalToSuperview().inset(16)
//
make.top.equalToSuperview()
//
make.height.equalTo(10)
//
}
bgImageView
.
layer
.
cornerRadius
=
8
bgImageView
.
layer
.
masksToBounds
=
true
bgImageView
.
backgroundColor
=
.
init
(
hex
:
"#F0F0F0"
)
//
bgImageView.backgroundColor = .init(hex: "#F0F0F0")
self
.
contentView
.
addSubview
(
bgImageView
)
bgImageView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
bottom
.
equalToSuperview
()
...
...
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/PK/FUSPKNew/FUSView/FUSPKControlView/Cell/FUSPKUserContributionLogCell.swift
View file @
3159f1dc
...
...
@@ -149,13 +149,20 @@ class FUSPKUserContributionLogCell: UITableViewCell {
var
level
=
model
.
level
if
model
.
inVip
==
0
{
level
=
0
level
=
-
1
}
if
model
.
inHide
==
"1"
{
level
=
-
1
}
if
level
<
0
{
self
.
richImageView
.
isHidden
=
true
}
else
{
self
.
richImageView
.
isHidden
=
false
}
self
.
faceView
.
setWebImageWithSubURLString
(
model
.
face
)
self
.
richImageView
.
image
=
.
fus_image
(
withLevel
:
level
)
self
.
nicknameLabel
.
text
=
model
.
nickname
.
removingPercentEncoding
...
...
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/PK/FUSPKNew/FUSView/FUSPKControlView/FUSPKControlContributionView.swift
View file @
3159f1dc
...
...
@@ -26,7 +26,7 @@ public class FUSPKControlContributionView: FUSPKControlSubBaseView {
let
tableView
=
UITableView
(
frame
:
.
zero
,
style
:
.
grouped
)
let
bottomStatusBgView
=
UIView
()
let
goPkBtn
=
FUSStyleButton
(
type
:
.
custom
)
private
let
emptyView
=
FUSEmpty
View
(
frame
:
CGRectMake
(
0
,
0
,
UIView
.
fus_screenW
(),
300
))
private
let
emptyView
=
UI
View
(
frame
:
CGRectMake
(
0
,
0
,
UIView
.
fus_screenW
(),
300
))
let
pkStatusBgView
=
FUSPKControlContributionPkStatusView
(
frame
:
.
zero
)
/// 控制section的显示
...
...
@@ -101,7 +101,13 @@ public class FUSPKControlContributionView: FUSPKControlSubBaseView {
// emptyView.isHidden = true
emptyView
.
backgroundColor
=
.
clear
self
.
emptyView
.
fus_setEmptyViewIcon
(
.
fus_emptyImg
(),
title
:
.
fus_localString
(
"暂无数据"
),
buttonTittle
:
""
)
let
emptyShowView
=
FUSEmptyView
(
frame
:
CGRectMake
(
0
,
0
,
200
,
200
))
emptyShowView
.
fus_setEmptyViewIcon
(
.
fus_emptyImg
(),
title
:
.
fus_localString
(
"暂无数据"
),
buttonTittle
:
""
)
emptyView
.
addSubview
(
emptyShowView
)
emptyShowView
.
snp
.
makeConstraints
{
make
in
make
.
center
.
equalToSuperview
()
make
.
size
.
equalTo
(
emptyShowView
.
size
)
}
let
bottomBgView
=
UIImageView
()
bottomBgView
.
backgroundColor
=
.
white
...
...
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/PK/FUSPKNew/FUSView/FUSPKControlView/FUSPKControlOpponentView.swift
View file @
3159f1dc
...
...
@@ -170,8 +170,8 @@ class FUSPKControlOpponentInfoView: FUSBaseView {
let
avatarTapBtn
=
UIButton
(
type
:
.
custom
)
let
bgImageView
=
UIImageView
(
image
:
FUSShowRoomCenterBunble
.
imageNamed
(
"live_pk_control_opponent_info_bg_blue"
))
let
faceView
=
FUSRichIcon
View
(
frame
:
CGRectMake
(
0
,
0
,
40
,
40
))
let
richImageView
=
UIImageView
(
frame
:
.
init
(
x
:
0
,
y
:
0
,
width
:
37
,
height
:
14
)
)
let
faceView
=
UIImage
View
(
frame
:
CGRectMake
(
0
,
0
,
40
,
40
))
let
richImageView
=
UIImageView
()
let
nicknameLabel
=
UILabel
()
let
muteBtn
=
UIButton
(
type
:
.
custom
)
let
muteDescLabel
=
UILabel
()
...
...
@@ -197,6 +197,8 @@ class FUSPKControlOpponentInfoView: FUSBaseView {
make
.
left
.
top
.
equalToSuperview
()
.
inset
(
6
)
}
faceView
.
layer
.
cornerRadius
=
40
/
2.0
faceView
.
layer
.
masksToBounds
=
true
bgImageView
.
addSubview
(
faceView
)
faceView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
28
)
...
...
@@ -209,19 +211,14 @@ class FUSPKControlOpponentInfoView: FUSBaseView {
make
.
edges
.
equalTo
(
faceView
)
.
inset
(
-
10
)
}
bgImageView
.
addSubview
(
richImageView
)
richImageView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
faceView
.
snp
.
right
)
.
offset
(
8
)
make
.
centerY
.
equalToSuperview
()
make
.
width
.
equalTo
(
37
)
make
.
height
.
equalTo
(
14
)
}
nicknameLabel
.
font
=
.
fus_themeMediumFont
(
15
)
nicknameLabel
.
textColor
=
.
fus_textColorRich
()
bgImageView
.
addSubview
(
nicknameLabel
)
nicknameLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
richImageView
.
snp
.
right
)
.
offset
(
6
)
make
.
centerY
.
equalToSuperview
()
bgImageView
.
addSubview
(
richImageView
)
richImageView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
nicknameLabel
.
snp
.
right
)
.
offset
(
2
)
make
.
centerY
.
equalTo
(
faceView
.
snp
.
centerY
)
}
muteBtn
.
setImage
(
FUSShowRoomCenterBunble
.
imageNamed
(
"live_pk_control_opponent_mute_off"
),
for
:
.
normal
)
...
...
@@ -233,6 +230,12 @@ class FUSPKControlOpponentInfoView: FUSBaseView {
make
.
size
.
equalTo
(
CGSizeMake
(
40
,
40
))
}
nicknameLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
faceView
.
snp
.
right
)
.
offset
(
8
)
make
.
centerY
.
equalTo
(
faceView
.
snp
.
centerY
)
make
.
right
.
lessThanOrEqualTo
(
muteBtn
.
snp
.
left
)
.
offset
(
-
80
)
}
muteDescLabel
.
font
=
.
fus_themeMediumFont
(
11
)
// if FUSLocalizationHelper.fus_isChineseEnvironment() == false {
// muteDescLabel.font = .fus_themeMediumFont(9)
...
...
@@ -263,27 +266,6 @@ class FUSPKControlOpponentInfoView: FUSBaseView {
}
public
func
fus_setup
(
model
:
FUSPKAnchorModel
)
{
let
isVip
=
model
.
vip
==
1
var
level
=
model
.
level
self
.
nicknameLabel
.
textColor
=
.
white
if
isVip
,
let
levelModel
=
FUSSwiftCacheDataShare
.
share
.
fus_levelModel
(
level
:
level
)
{
self
.
nicknameLabel
.
textColor
=
.
init
(
hex
:
levelModel
.
color
)
richImageView
.
setWebImageWithSubURLString
(
levelModel
.
icon
)
richImageView
.
isHidden
=
false
nicknameLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
richImageView
.
snp
.
right
)
.
offset
(
6
)
make
.
centerY
.
equalToSuperview
()
}
}
else
{
richImageView
.
isHidden
=
true
level
=
0
nicknameLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
faceView
.
snp
.
right
)
.
offset
(
8
)
make
.
centerY
.
equalToSuperview
()
}
}
if
model
.
sideColor
==
.
red
{
self
.
bgImageView
.
image
=
FUSShowRoomCenterBunble
.
imageNamed
(
"live_pk_control_opponent_info_bg_red"
)
...
...
@@ -292,7 +274,18 @@ class FUSPKControlOpponentInfoView: FUSBaseView {
self
.
bgImageView
.
image
=
FUSShowRoomCenterBunble
.
imageNamed
(
"live_pk_control_opponent_info_bg_blue"
)
}
self
.
faceView
.
fus_setupIcon
(
withFacePath
:
model
.
face
??
""
,
level
:
level
)
let
isVip
=
model
.
vip
==
1
var
level
=
model
.
level
if
isVip
==
false
{
level
=
-
1
self
.
richImageView
.
isHidden
=
true
}
else
{
self
.
richImageView
.
isHidden
=
false
}
self
.
richImageView
.
image
=
.
fus_image
(
withLevel
:
level
)
self
.
faceView
.
setWebImageWithSubURLString
(
model
.
face
)
self
.
nicknameLabel
.
text
=
model
.
nickname
?
.
removingPercentEncoding
}
...
...
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