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
a3b5e00d
authored
Jul 09, 2024
by
ludi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/UI修改版本' of
http://git.yabolive.net:88/pidan/FuSiLive
into feature/UI修改版本
parents
74681a63
8441e6ee
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
101 additions
and
150 deletions
FuSiLive/Assets.xcassets/Live/PK/PK_List_Hot.imageset/Contents.json
FuSiLive/Assets.xcassets/Live/PK/PK_List_Hot.imageset/HOT@2x.png
FuSiLive/Assets.xcassets/Live/PK/PK_List_Hot.imageset/HOT@3x.png
FuSiLive/Classes/NewLive/Main/View/FunctionView/ChatInputView/FUSLiveBottomToolView.m
FuSiLive/Classes/NewLive/Main/View/FunctionView/HeadView/LiveUserListView/FUSLiveUserCollectionViewCell.m
FuSiLive/Classes/NewLive/Main/View/FunctionView/PK/Model/FUSPKInfoModel.h
FuSiLive/Classes/NewLive/Main/View/FunctionView/PK/View/Cell/FUSPKHotAnchorListTableViewCell.m
FuSiLive/Classes/NewLive/Main/View/FunctionView/PK/View/Cell/FUSPKHotAnchorListTableViewCell.xib
FuSiLive/Classes/NewLive/Main/View/FunctionView/PK/View/PKMainView/FUSPKMainResultView.m
FuSiLive/Classes/NewLive/Main/View/Push/FUSVideoStartSetScopeBtnView.m
FuSiLive/Classes/NewLive/Main/View/Push/FUSVideoStartSetScopeBtnView.xib
FuSiLive/Classes/NewsFeed/Views/FUSNewsFeedLikeListView.m
FuSiLive/Classes/Zone/View/VIPCenter/FUSRichIconView.h
FuSiLive/Classes/Zone/View/VIPCenter/FUSRichIconView.m
FuSiLive/Assets.xcassets/Live/PK/PK_List_Hot.imageset/Contents.json
deleted
100644 → 0
View file @
74681a63
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"HOT@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"HOT@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
FuSiLive/Assets.xcassets/Live/PK/PK_List_Hot.imageset/HOT@2x.png
deleted
100644 → 0
View file @
74681a63
665 Bytes
FuSiLive/Assets.xcassets/Live/PK/PK_List_Hot.imageset/HOT@3x.png
deleted
100644 → 0
View file @
74681a63
1.5 KB
FuSiLive/Classes/NewLive/Main/View/FunctionView/ChatInputView/FUSLiveBottomToolView.m
View file @
a3b5e00d
...
...
@@ -825,23 +825,25 @@
if
(
pkBtnState
==
FUSLiveChatToolPKBtnStateCancel
)
{
[
self
.
toolBtn2
setImage
:[
UIImage
imageNamed
:
@"Live_bottom_audience_PK_Normal"
]
forState
:
UIControlStateNormal
];
[
self
.
toolBtn2
setImage
:[
UIImage
imageNamed
:
@"Live_bottom_audience_PK_highlight"
]
forState
:
UIControlStateHighlighted
];
[
self
.
toolBtn2
setBackgroundImage
:[
UIImage
animatedImageNamed
:
@"PKBottomBtnBgRotationAnimation_"
duration
:
2
]
forState
:
UIControlStateNormal
];
}
else
{
[
self
.
toolBtn2
setImage
:[
UIImage
imageNamed
:
@"Live_icon_toolview_highlighted_2"
]
forState
:
UIControlStateHighlighted
];
[
self
.
toolBtn2
setImage
:[
UIImage
imageNamed
:
@"Live_icon_toolview_normal_2"
]
forState
:
UIControlStateNormal
];
}
switch
(
pkBtnState
)
{
case
FUSLiveChatToolPKBtnStateStart
:
{
[
_PKBtn
setBackgroundImage
:
nil
forState
:
UIControlStateNormal
];
[
self
.
toolBtn2
setBackgroundImage
:
nil
forState
:
UIControlStateNormal
];
}
break
;
case
FUSLiveChatToolPKBtnStateCancel
:
{
[
_PKBtn
setBackgroundImage
:[
UIImage
animatedImageNamed
:
@"PKBottomBtnBgRotationAnimation_"
duration
:
2
]
forState
:
UIControlStateNormal
];
[
self
.
toolBtn2
setBackgroundImage
:[
UIImage
animatedImageNamed
:
@"PKBottomBtnBgRotationAnimation_"
duration
:
2
]
forState
:
UIControlStateNormal
];
}
break
;
case
FUSLiveChatToolPKBtnStateStop
:
{
[
_PKBtn
setBackgroundImage
:
nil
forState
:
UIControlStateNormal
];
[
self
.
toolBtn2
setBackgroundImage
:
nil
forState
:
UIControlStateNormal
];
}
break
;
default
:
...
...
FuSiLive/Classes/NewLive/Main/View/FunctionView/HeadView/LiveUserListView/FUSLiveUserCollectionViewCell.m
View file @
a3b5e00d
...
...
@@ -16,7 +16,7 @@
// 头像 image View
@property
(
strong
,
nonatomic
)
FUSRichIconView
*
faceImageView
;
//
富豪等级
ImageView
//
top 的动效
ImageView
@property
(
strong
,
nonatomic
)
UIImageView
*
richManImageView
;
@end
...
...
FuSiLive/Classes/NewLive/Main/View/FunctionView/PK/Model/FUSPKInfoModel.h
View file @
a3b5e00d
...
...
@@ -26,6 +26,8 @@ NS_ASSUME_NONNULL_BEGIN
@property
(
nonatomic
,
copy
)
NSString
*
rankNum
;
// 围观
@property
(
nonatomic
,
copy
)
NSString
*
num
;
// 人气值
@property
(
nonatomic
,
copy
)
NSString
*
popularScore
;
// pk状态
@property
(
nonatomic
,
copy
)
NSString
*
status
;
// 设置状态
...
...
FuSiLive/Classes/NewLive/Main/View/FunctionView/PK/View/Cell/FUSPKHotAnchorListTableViewCell.m
View file @
a3b5e00d
...
...
@@ -36,7 +36,7 @@
[
_anchorImageView
setWebImageWithSubURLString
:
model
.
face
placeholder
:[
UIImage
fus_defaultIcon
]
options
:
0
];
_nameLabel
.
text
=
model
.
nickname
;
_audienceLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@"
,
model
.
num
];
_hotLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@"
,
model
.
rankNum
];
_hotLabel
.
text
=
[
NSString
stringWithFormat
:
@"%@"
,
model
.
popularScore
];
if
(
model
.
status
.
integerValue
==
0
)
{
// 邀请pk
_operationBtn
.
enabled
=
YES
;
...
...
FuSiLive/Classes/NewLive/Main/View/FunctionView/PK/View/Cell/FUSPKHotAnchorListTableViewCell.xib
View file @
a3b5e00d
...
...
@@ -43,8 +43,8 @@
<constraint
firstAttribute=
"width"
constant=
"14"
id=
"RJJ-u6-Nyg"
/>
</constraints>
</imageView>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"
PK_List_H
ot"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"U4S-TF-mgr"
>
<rect
key=
"frame"
x=
"95"
y=
"
40"
width=
"15"
height=
"6
"
/>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"
live_popular_h
ot"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"U4S-TF-mgr"
>
<rect
key=
"frame"
x=
"95"
y=
"
37"
width=
"12.5"
height=
"12.5
"
/>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"---"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"KZR-Fz-rB0"
>
<rect
key=
"frame"
x=
"74"
y=
"36"
width=
"16"
height=
"14"
/>
...
...
@@ -53,7 +53,7 @@
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"---"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Rnu-Vj-c1y"
>
<rect
key=
"frame"
x=
"1
10
"
y=
"36"
width=
"16"
height=
"14"
/>
<rect
key=
"frame"
x=
"1
07.5
"
y=
"36"
width=
"16"
height=
"14"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"11"
/>
<color
key=
"textColor"
red=
"0.40000000000000002"
green=
"0.40000000000000002"
blue=
"0.40000000000000002"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
...
...
@@ -113,6 +113,6 @@
</objects>
<resources>
<image
name=
"PK_List_Audience"
width=
"9"
height=
"9.5"
/>
<image
name=
"
PK_List_Hot"
width=
"15"
height=
"6
"
/>
<image
name=
"
live_popular_hot"
width=
"12.5"
height=
"12.5
"
/>
</resources>
</document>
FuSiLive/Classes/NewLive/Main/View/FunctionView/PK/View/PKMainView/FUSPKMainResultView.m
View file @
a3b5e00d
...
...
@@ -67,28 +67,27 @@ NSInteger const kPKMainResultViewHeight = 150;
}
self
.
losePicArr
=
[
loseImageArr
copy
];
// self.PKMiddleResultImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 150, 150)];
// self.PKMiddleResultImageView.centerX = self.centerX;
// [self addSubview:self.PKMiddleResultImageView];
// self.PKMiddleResultImageView.hidden = YES;
CGFloat
size
=
kPKMainResultViewHeight
*
0
.
8
;
CGFloat
size
=
kPKMainResultViewHeight
*
0
.
6
;
self
.
PKLeftResultImageView
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
self
.
width
/
2
.
0
f
-
size
,
0
,
size
,
size
)];
self
.
PKLeftResultImageView
.
centerX
=
self
.
centerX
*
0
.
5
;
self
.
PKLeftResultImageView
.
animationDuration
=
2
;
self
.
PKLeftResultImageView
.
animationDuration
=
3
;
self
.
PKLeftResultImageView
.
animationRepeatCount
=
1
;
[
self
addSubview
:
self
.
PKLeftResultImageView
];
self
.
PKLeftResultImageView
.
hidden
=
YES
;
self
.
PKRightResultImageView
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
self
.
width
/
2
.
0
f
,
0
,
size
,
size
)];
self
.
PKRightResultImageView
.
centerX
=
self
.
centerX
*
1
.
5
;
self
.
PKRightResultImageView
.
animationDuration
=
2
;
self
.
PKRightResultImageView
.
animationDuration
=
3
;
self
.
PKRightResultImageView
.
animationRepeatCount
=
1
;
[
self
addSubview
:
self
.
PKRightResultImageView
];
self
.
PKRightResultImageView
.
hidden
=
YES
;
self
.
winningStreakView
=
[[
FUSPkWinningStreakView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
48
,
42
)];
[
self
.
winningStreakView
fus_setNumber
:[
FUSLiveHelper
shareInstance
].
currentFunctionView
.
pkHelper
.
winTotal
anim
:
NO
];
[
self
addSubview
:
self
.
winningStreakView
];
self
.
userInteractionEnabled
=
NO
;
}
-
(
void
)
layoutSubviews
{
...
...
@@ -132,16 +131,17 @@ NSInteger const kPKMainResultViewHeight = 150;
self
.
PKLeftResultImageView
.
transform
=
CGAffineTransformIdentity
;
self
.
PKRightResultImageView
.
transform
=
CGAffineTransformIdentity
;
CGFloat
centerY
=
self
.
PKLeftResultImageView
.
height
/
2
.
0
f
-
40
;
self
.
PKLeftResultImageView
.
center
=
CGPointMake
(
self
.
width
/
2
.
0
f
-
self
.
PKLeftResultImageView
.
width
+
65
,
centerY
);
self
.
PKRightResultImageView
.
center
=
CGPointMake
(
self
.
width
/
2
.
0
f
+
self
.
PKRightResultImageView
.
width
-
65
,
centerY
);
// CGFloat centerY = self.PKLeftResultImageView.height / 2.0f - 40;
//
// self.PKLeftResultImageView.center = CGPointMake(self.width / 2.0f - self.PKLeftResultImageView.width + 65, centerY);
// self.PKRightResultImageView.center = CGPointMake(self.width / 2.0f + self.PKRightResultImageView.width - 65, centerY);
self
.
PKLeftResultImageView
.
center
=
CGPointMake
(
self
.
fus_leftResultImageViewBeginCenterX
,
self
.
fus_ResultImageViewCentY
);
self
.
PKRightResultImageView
.
center
=
CGPointMake
(
self
.
fus_rightResultImageViewBeginCenterX
,
self
.
fus_ResultImageViewCentY
);
switch
(
ourAnchorResult
)
{
case
FUSPKResultWin
:
{
self
.
PKLeftResultImageView
.
hidden
=
NO
;
self
.
PKRightResultImageView
.
hidden
=
NO
;
// self.PKMiddleResultImageView.hidden = YES;
self
.
PKLeftResultImageView
.
animationImages
=
self
.
winPicArr
;
[
self
.
PKLeftResultImageView
startAnimating
];
self
.
PKRightResultImageView
.
animationImages
=
self
.
losePicArr
;
...
...
@@ -156,7 +156,6 @@ NSInteger const kPKMainResultViewHeight = 150;
{
self
.
PKLeftResultImageView
.
hidden
=
NO
;
self
.
PKRightResultImageView
.
hidden
=
NO
;
// self.PKMiddleResultImageView.hidden = YES;
self
.
PKLeftResultImageView
.
animationImages
=
self
.
losePicArr
;
[
self
.
PKLeftResultImageView
startAnimating
];
self
.
PKRightResultImageView
.
animationImages
=
self
.
winPicArr
;
...
...
@@ -168,9 +167,6 @@ NSInteger const kPKMainResultViewHeight = 150;
break
;
case
FUSPKResultDraw
:
{
// self.PKLeftResultImageView.hidden = YES;
// self.PKRightResultImageView.hidden = YES;
// self.PKMiddleResultImageView.hidden = NO;
self
.
PKLeftResultImageView
.
animationImages
=
nil
;
self
.
PKRightResultImageView
.
animationImages
=
nil
;
...
...
@@ -191,10 +187,9 @@ NSInteger const kPKMainResultViewHeight = 150;
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
3
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
CGFloat
animScale
=
0
.
55
;
CGFloat
leftY
=
self
.
winningStreakView
.
y
-
self
.
PKLeftResultImageView
.
height
*
animScale
/
2
.
0
f
;
CGPoint
leftCenter
=
CGPointMake
(
self
.
fus_leftWinStreakCenterX
,
leftY
);
CGPoint
rightCenter
=
CGPointMake
(
self
.
fus_rightWinStreakCenterX
,
self
.
fus_winStreakCenterY
);
CGPoint
leftCenter
=
CGPointMake
(
self
.
fus_leftWinStreakCenterX
,
self
.
fus_ResultImageViewCentY
);
CGPoint
rightCenter
=
CGPointMake
(
self
.
fus_rightWinStreakCenterX
,
self
.
fus_ResultImageViewCentY
);
[
self
.
PKLeftResultImageView
stopAnimating
];
[
self
.
PKRightResultImageView
stopAnimating
];
...
...
@@ -202,8 +197,7 @@ NSInteger const kPKMainResultViewHeight = 150;
self
.
PKLeftResultImageView
.
center
=
leftCenter
;
self
.
PKRightResultImageView
.
center
=
rightCenter
;
self
.
PKLeftResultImageView
.
transform
=
CGAffineTransformScale
(
CGAffineTransformIdentity
,
animScale
,
animScale
);
self
.
PKRightResultImageView
.
transform
=
CGAffineTransformScale
(
CGAffineTransformIdentity
,
animScale
,
animScale
);
if
(
self
.
winningStreakView
.
centerX
!=
self
.
fus_leftWinStreakCenterX
)
{
self
.
winningStreakView
.
alpha
=
0
;
}
...
...
@@ -213,15 +207,15 @@ NSInteger const kPKMainResultViewHeight = 150;
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
0
.
1
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
[
self
.
winningStreakView
fus_setNumber
:
winningStreak
anim
:
YES
];
});
[
UIView
animateWithDuration
:
0
.
5
animations
:
^
{
self
.
PKLeftResultImageView
.
transform
=
CGAffineTransformScale
(
CGAffineTransformIdentity
,
0
.
8
,
0
.
8
);
self
.
PKLeftResultImageView
.
alpha
=
0
;
}
completion
:^
(
BOOL
finished
)
{
self
.
PKLeftResultImageView
.
hidden
=
YES
;
self
.
PKLeftResultImageView
.
alpha
=
1
;
self
.
PKLeftResultImageView
.
transform
=
CGAffineTransformIdentity
;
//
[UIView animateWithDuration:0.5 animations:^{
//
self.PKLeftResultImageView.transform = CGAffineTransformScale(CGAffineTransformIdentity, 0.8, 0.8);
//
self.PKLeftResultImageView.alpha = 0;
//
} completion:^(BOOL finished) {
//
self.PKLeftResultImageView.hidden = YES;
//
self.PKLeftResultImageView.alpha = 1;
//
self.PKLeftResultImageView.transform = CGAffineTransformIdentity;
self
.
isResultAnimating
=
NO
;
}];
//
}];
}];
});
}
...
...
@@ -230,18 +224,19 @@ NSInteger const kPKMainResultViewHeight = 150;
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
3
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
CGPoint
leftCenter
=
CGPointMake
(
self
.
fus_leftWinStreakCenterX
,
self
.
fus_ResultImageViewCentY
);
CGPoint
rightCenter
=
CGPointMake
(
self
.
fus_rightWinStreakCenterX
,
self
.
fus_ResultImageViewCentY
);
[
self
.
PKLeftResultImageView
stopAnimating
];
[
self
.
PKRightResultImageView
stopAnimating
];
CGFloat
animScale
=
0
.
55
;
CGPoint
leftCenter
=
CGPointMake
(
self
.
fus_leftWinStreakCenterX
,
self
.
fus_winStreakCenterY
);
CGPoint
rightCenter
=
CGPointMake
(
self
.
fus_rightWinStreakCenterX
,
self
.
winningStreakView
.
y
-
self
.
PKLeftResultImageView
.
height
*
animScale
/
2
.
0
f
+
8
);
[
UIView
animateWithDuration
:
1
animations
:
^
{
self
.
PKLeftResultImageView
.
center
=
leftCenter
;
self
.
PKRightResultImageView
.
center
=
rightCenter
;
self
.
PKLeftResultImageView
.
transform
=
CGAffineTransformScale
(
CGAffineTransformIdentity
,
animScale
,
animScale
);
self
.
PKRightResultImageView
.
transform
=
CGAffineTransformScale
(
CGAffineTransformIdentity
,
animScale
,
animScale
);
if
(
self
.
winningStreakView
.
centerX
!=
self
.
fus_rightWinStreakCenterX
)
{
self
.
winningStreakView
.
alpha
=
0
;
}
...
...
@@ -251,28 +246,26 @@ NSInteger const kPKMainResultViewHeight = 150;
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
0
.
1
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
[
self
.
winningStreakView
fus_setNumber
:
winningStreak
anim
:
YES
];
});
[
UIView
animateWithDuration
:
0
.
5
animations
:
^
{
self
.
PKRightResultImageView
.
transform
=
CGAffineTransformScale
(
CGAffineTransformIdentity
,
0
.
8
,
0
.
8
);
self
.
PKRightResultImageView
.
alpha
=
0
;
}
completion
:^
(
BOOL
finished
)
{
self
.
PKRightResultImageView
.
hidden
=
YES
;
self
.
PKRightResultImageView
.
alpha
=
1
;
self
.
PKRightResultImageView
.
transform
=
CGAffineTransformIdentity
;
//
[UIView animateWithDuration:0.5 animations:^{
//
self.PKRightResultImageView.transform = CGAffineTransformScale(CGAffineTransformIdentity, 0.8, 0.8);
//
self.PKRightResultImageView.alpha = 0;
//
} completion:^(BOOL finished) {
//
self.PKRightResultImageView.hidden = YES;
//
self.PKRightResultImageView.alpha = 1;
//
self.PKRightResultImageView.transform = CGAffineTransformIdentity;
self
.
isResultAnimating
=
NO
;
}];
//
}];
}];
});
}
-
(
void
)
fus_startDrawAnim
{
CGPoint
leftCenter
=
CGPointMake
(
self
.
fus_leftWinStreakCenterX
,
self
.
fus_
winStreakCenter
Y
);
CGPoint
rightCenter
=
CGPointMake
(
self
.
fus_rightWinStreakCenterX
,
self
.
fus_
winStreakCenter
Y
);
CGPoint
leftCenter
=
CGPointMake
(
self
.
fus_leftWinStreakCenterX
,
self
.
fus_
ResultImageViewCent
Y
);
CGPoint
rightCenter
=
CGPointMake
(
self
.
fus_rightWinStreakCenterX
,
self
.
fus_
ResultImageViewCent
Y
);
[
UIView
animateWithDuration
:
1
delay
:
3
options
:
UIViewAnimationOptionCurveEaseInOut
animations
:^
{
self
.
PKLeftResultImageView
.
center
=
leftCenter
;
self
.
PKRightResultImageView
.
center
=
rightCenter
;
self
.
PKLeftResultImageView
.
transform
=
CGAffineTransformScale
(
CGAffineTransformIdentity
,
0
.
55
,
0
.
55
);
self
.
PKRightResultImageView
.
transform
=
CGAffineTransformScale
(
CGAffineTransformIdentity
,
0
.
55
,
0
.
55
);
self
.
winningStreakView
.
alpha
=
0
;
}
completion
:^
(
BOOL
finished
)
{
[
self
.
winningStreakView
fus_setNumber
:
0
anim
:
NO
];
...
...
@@ -281,16 +274,29 @@ NSInteger const kPKMainResultViewHeight = 150;
}];
}
-
(
CGFloat
)
fus_ResultImageViewCentY
{
return
self
.
height
-
self
.
PKLeftResultImageView
.
height
/
2
.
0
+
40
;
}
-
(
CGFloat
)
fus_leftResultImageViewBeginCenterX
{
return
self
.
width
/
2
.
0
f
-
self
.
PKLeftResultImageView
.
width
/
2
.
0
;
}
-
(
CGFloat
)
fus_rightResultImageViewBeginCenterX
{
return
self
.
width
/
2
.
0
f
+
self
.
PKRightResultImageView
.
width
/
2
.
0
;
}
-
(
CGFloat
)
fus_leftWinStreakCenterX
{
return
10
+
self
.
winningStreakView
.
width
/
2
.
0
f
;
return
10
+
4
+
self
.
winningStreakView
.
width
/
2
.
0
f
;
}
-
(
CGFloat
)
fus_rightWinStreakCenterX
{
return
self
.
width
-
10
-
self
.
winningStreakView
.
width
/
2
.
0
f
;
return
self
.
width
-
10
-
4
-
self
.
winningStreakView
.
width
/
2
.
0
f
;
}
-
(
CGFloat
)
fus_winStreakCenterY
{
return
self
.
height
-
10
-
self
.
winningStreakView
.
height
/
2
.
0
f
;
return
self
.
height
-
10
-
10
-
40
-
self
.
winningStreakView
.
height
/
2
.
0
f
;
}
/**
...
...
FuSiLive/Classes/NewLive/Main/View/Push/FUSVideoStartSetScopeBtnView.m
View file @
a3b5e00d
...
...
@@ -19,8 +19,8 @@
@property
(
strong
,
nonatomic
)
IBOutlet
UIButton
*
facebookShareBtn
;
@property
(
strong
,
nonatomic
)
IBOutlet
UIButton
*
twitterShareBtn
;
@property
(
strong
,
nonatomic
)
IBOutlet
UIButton
*
lineShareBtn
;
@property
(
strong
,
nonatomic
)
IBOutlet
UIButton
*
wechatShareBtn
;
@property
(
strong
,
nonatomic
)
IBOutlet
UIButton
*
wcCircleShareBtn
;
//
@property (strong, nonatomic) IBOutlet UIButton *wechatShareBtn;
//
@property (strong, nonatomic) IBOutlet UIButton *wcCircleShareBtn;
@property
(
strong
,
nonatomic
)
IBOutlet
UILabel
*
titleLabel
;
...
...
@@ -101,11 +101,12 @@
shareType
=
FUSVideoStartShareTypeTwitter
;
}
else
if
(
self
.
lineShareBtn
.
isSelected
)
{
shareType
=
FUSVideoStartShareTypeLine
;
}
else
if
(
self
.
wechatShareBtn
.
isSelected
)
{
shareType
=
FUSVideoStartShareTypeWeChat
;
}
else
if
(
self
.
wcCircleShareBtn
.
isSelected
)
{
shareType
=
FUSVideoStartShareTypeWeChatCircle
;
}
}
// else if (self.wechatShareBtn.isSelected) {
// shareType = FUSVideoStartShareTypeWeChat;
// } else if (self.wcCircleShareBtn.isSelected) {
// shareType = FUSVideoStartShareTypeWeChatCircle;
// }
FUSLiveRoomScopeType
scopeType
=
FUSLiveRoomScopeTypeOpen
;
if
(
self
.
scopeFollowBtn
.
isSelected
)
{
...
...
@@ -145,9 +146,9 @@
BOOL
selected
=
!
sender
.
isSelected
;
self
.
facebookShareBtn
.
selected
=
NO
;
self
.
lineShareBtn
.
selected
=
NO
;
self
.
wechatShareBtn
.
selected
=
NO
;
//
self.wechatShareBtn.selected = NO;
self
.
twitterShareBtn
.
selected
=
NO
;
self
.
wcCircleShareBtn
.
selected
=
NO
;
//
self.wcCircleShareBtn.selected = NO;
sender
.
selected
=
selected
;
}
...
...
FuSiLive/Classes/NewLive/Main/View/Push/FUSVideoStartSetScopeBtnView.xib
View file @
a3b5e00d
...
...
@@ -145,7 +145,7 @@
<rect
key=
"frame"
x=
"0.0"
y=
"392"
width=
"405"
height=
"32"
/>
<subviews>
<button
opaque=
"NO"
tag=
"1"
contentMode=
"scaleAspectFit"
selected=
"YES"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"mBV-p9-Cwf"
>
<rect
key=
"frame"
x=
"
245
"
y=
"0.0"
width=
"32"
height=
"32"
/>
<rect
key=
"frame"
x=
"
309
"
y=
"0.0"
width=
"32"
height=
"32"
/>
<constraints>
<constraint
firstAttribute=
"width"
secondItem=
"mBV-p9-Cwf"
secondAttribute=
"height"
multiplier=
"1:1"
id=
"xFI-Ns-703"
/>
</constraints>
...
...
@@ -155,30 +155,8 @@
<action
selector=
"clickShareBtnAction:"
destination=
"iN0-l3-epB"
eventType=
"touchUpInside"
id=
"1wE-i9-cxm"
/>
</connections>
</button>
<button
opaque=
"NO"
tag=
"4"
contentMode=
"scaleAspectFit"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Hax-4z-Ra6"
>
<rect
key=
"frame"
x=
"373"
y=
"0.0"
width=
"32"
height=
"32"
/>
<constraints>
<constraint
firstAttribute=
"width"
secondItem=
"Hax-4z-Ra6"
secondAttribute=
"height"
multiplier=
"1:1"
id=
"HdX-DE-CIs"
/>
</constraints>
<state
key=
"normal"
image=
"live_start_share_wx_circle"
/>
<state
key=
"selected"
image=
"live_start_share_wx_circle_selected"
/>
<connections>
<action
selector=
"clickShareBtnAction:"
destination=
"iN0-l3-epB"
eventType=
"touchUpInside"
id=
"Khu-Pa-DZs"
/>
</connections>
</button>
<button
opaque=
"NO"
tag=
"3"
contentMode=
"scaleAspectFit"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"nbP-M5-7px"
>
<rect
key=
"frame"
x=
"341"
y=
"0.0"
width=
"32"
height=
"32"
/>
<constraints>
<constraint
firstAttribute=
"width"
secondItem=
"nbP-M5-7px"
secondAttribute=
"height"
multiplier=
"1:1"
id=
"SfG-U4-9nT"
/>
</constraints>
<state
key=
"normal"
image=
"live_start_share_wechat"
/>
<state
key=
"selected"
image=
"live_start_share_wechat_selected"
/>
<connections>
<action
selector=
"clickShareBtnAction:"
destination=
"iN0-l3-epB"
eventType=
"touchUpInside"
id=
"0XA-95-lKC"
/>
</connections>
</button>
<button
opaque=
"NO"
tag=
"2"
contentMode=
"scaleAspectFit"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"iSB-WR-aap"
>
<rect
key=
"frame"
x=
"
277
"
y=
"0.0"
width=
"32"
height=
"32"
/>
<rect
key=
"frame"
x=
"
341
"
y=
"0.0"
width=
"32"
height=
"32"
/>
<constraints>
<constraint
firstAttribute=
"width"
secondItem=
"iSB-WR-aap"
secondAttribute=
"height"
multiplier=
"1:1"
id=
"vlG-31-Yig"
/>
</constraints>
...
...
@@ -189,7 +167,7 @@
</connections>
</button>
<button
opaque=
"NO"
tag=
"2"
contentMode=
"scaleAspectFit"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"gPb-3Y-YG4"
>
<rect
key=
"frame"
x=
"3
09
"
y=
"0.0"
width=
"32"
height=
"32"
/>
<rect
key=
"frame"
x=
"3
73
"
y=
"0.0"
width=
"32"
height=
"32"
/>
<constraints>
<constraint
firstAttribute=
"width"
secondItem=
"gPb-3Y-YG4"
secondAttribute=
"height"
multiplier=
"1:1"
id=
"4l9-24-sIs"
/>
<constraint
firstAttribute=
"width"
secondItem=
"gPb-3Y-YG4"
secondAttribute=
"height"
multiplier=
"1:1"
id=
"X89-GA-rMo"
/>
...
...
@@ -207,18 +185,12 @@
<constraint
firstAttribute=
"bottom"
secondItem=
"iSB-WR-aap"
secondAttribute=
"bottom"
id=
"4Io-ej-Fhk"
/>
<constraint
firstItem=
"gPb-3Y-YG4"
firstAttribute=
"top"
secondItem=
"NU6-oh-N2C"
secondAttribute=
"top"
id=
"En9-Ik-wGX"
/>
<constraint
firstItem=
"mBV-p9-Cwf"
firstAttribute=
"top"
secondItem=
"NU6-oh-N2C"
secondAttribute=
"top"
id=
"GYb-hx-ky2"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"Hax-4z-Ra6"
secondAttribute=
"bottom"
id=
"Jym-iY-i5f"
/>
<constraint
firstItem=
"nbP-M5-7px"
firstAttribute=
"top"
secondItem=
"NU6-oh-N2C"
secondAttribute=
"top"
id=
"PuB-nY-A5k"
/>
<constraint
firstItem=
"nbP-M5-7px"
firstAttribute=
"leading"
secondItem=
"gPb-3Y-YG4"
secondAttribute=
"trailing"
id=
"VZI-fY-xbL"
/>
<constraint
firstItem=
"Hax-4z-Ra6"
firstAttribute=
"top"
secondItem=
"NU6-oh-N2C"
secondAttribute=
"top"
id=
"aB4-vI-yEY"
/>
<constraint
firstItem=
"iSB-WR-aap"
firstAttribute=
"leading"
secondItem=
"mBV-p9-Cwf"
secondAttribute=
"trailing"
id=
"aO6-jf-aZD"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"mBV-p9-Cwf"
secondAttribute=
"bottom"
id=
"f6R-qJ-jW7"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Hax-4z-Ra6"
secondAttribute=
"trailing"
id=
"fBT-5k-mgy"
/>
<constraint
firstItem=
"iSB-WR-aap"
firstAttribute=
"top"
secondItem=
"NU6-oh-N2C"
secondAttribute=
"top"
id=
"t41-O6-3dp"
/>
<constraint
firstAttribute=
"height"
constant=
"32"
id=
"tV2-as-DhX"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"nbP-M5-7px"
secondAttribute=
"bottom"
id=
"vcs-t1-z5h"
/>
<constraint
firstItem=
"gPb-3Y-YG4"
firstAttribute=
"leading"
secondItem=
"iSB-WR-aap"
secondAttribute=
"trailing"
id=
"vun-vx-gHP"
/>
<constraint
first
Item=
"Hax-4z-Ra6"
firstAttribute=
"leading"
secondItem=
"nbP-M5-7px"
secondAttribute=
"trailing"
id=
"xqe-nx-9P4
"
/>
<constraint
first
Attribute=
"trailing"
secondItem=
"gPb-3Y-YG4"
secondAttribute=
"trailing"
id=
"xgj-2i-Cpm
"
/>
</constraints>
</view>
</subviews>
...
...
@@ -249,8 +221,6 @@
<outlet
property=
"startLiveBtn"
destination=
"yWH-ry-ezq"
id=
"Pgh-JP-l3g"
/>
<outlet
property=
"titleLabel"
destination=
"oq4-1B-4Bm"
id=
"SSS-RS-n25"
/>
<outlet
property=
"twitterShareBtn"
destination=
"iSB-WR-aap"
id=
"OTK-bu-y5J"
/>
<outlet
property=
"wcCircleShareBtn"
destination=
"Hax-4z-Ra6"
id=
"KiJ-R2-9Yi"
/>
<outlet
property=
"wechatShareBtn"
destination=
"nbP-M5-7px"
id=
"Oj7-Fi-SF9"
/>
</connections>
<point
key=
"canvasLocation"
x=
"141"
y=
"145"
/>
</view>
...
...
@@ -268,9 +238,5 @@
<image
name=
"live_start_share_line_selected"
width=
"19"
height=
"19"
/>
<image
name=
"live_start_share_twitter"
width=
"19"
height=
"19"
/>
<image
name=
"live_start_share_twitter_selected"
width=
"19"
height=
"19"
/>
<image
name=
"live_start_share_wechat"
width=
"19.666666030883789"
height=
"19"
/>
<image
name=
"live_start_share_wechat_selected"
width=
"19.666666030883789"
height=
"19"
/>
<image
name=
"live_start_share_wx_circle"
width=
"19.666666030883789"
height=
"19"
/>
<image
name=
"live_start_share_wx_circle_selected"
width=
"19.666666030883789"
height=
"19"
/>
</resources>
</document>
FuSiLive/Classes/NewsFeed/Views/FUSNewsFeedLikeListView.m
View file @
a3b5e00d
...
...
@@ -114,7 +114,7 @@
[
FUSNewsFeedHttpHelper
fus_requestDynamicLikeListWithTopicId
:
_topicId
commentId
:
_commentId
page
:
self
.
page
success
:^
(
NSArray
*
_Nonnull
likeList
,
NSInteger
likeTotal
)
{
if
(
_
page
==
1
)
{
if
(
self
.
page
==
1
)
{
[
self
.
likeList
removeAllObjects
];
}
[
self
.
likeList
addObjectsFromArray
:
likeList
];
...
...
@@ -170,7 +170,7 @@
NSDictionary
*
privilege
=
likeUser
.
privilege
;
NSInteger
level
=
[
privilege
[
@"richPower"
]
integerValue
]
==
1
?
likeUser
.
richLevel
:
0
;
cell
.
iconView
.
faceImageView
.
image
=
[
UIImage
imageNamed
:
@"icon_head_default"
];
[
cell
.
iconView
fus_setupIconWithFacePath
:
face
level
:
level
hiddenLevel
:
NO
];
[
cell
.
iconView
fus_setupIconWithFacePath
:
face
level
:
level
];
cell
.
iconView
.
hidden
=
NO
;
cell
.
totalCountLabel
.
hidden
=
YES
;
}
else
{
...
...
FuSiLive/Classes/Zone/View/VIPCenter/FUSRichIconView.h
View file @
a3b5e00d
...
...
@@ -20,18 +20,19 @@ NS_ASSUME_NONNULL_BEGIN
// 富豪等级挂件
@property
(
nonatomic
,
strong
)
UIImageView
*
richWearImageView
;
/// 是否显示未获得vip的灰色图片
@property
(
nonatomic
,
assign
)
BOOL
showNoVipLevel
;
/// 设置直播间内的富豪等级头像
/// @param facePath 富豪等级头像
/// @param level 等级
-
(
void
)
fus_setupLiveIconWithFacePath
:(
NSString
*
)
facePath
level
:(
NSInteger
)
level
;
-
(
void
)
fus_setupLiveIconWithFacePath
:(
NSString
*
)
facePath
level
:(
NSInteger
)
level
hiddenLevel
:(
BOOL
)
hiddenLevel
animated
:(
BOOL
)
animated
;
-
(
void
)
fus_setupLiveIconWithFacePath
:(
NSString
*
)
facePath
level
:(
NSInteger
)
level
animated
:(
BOOL
)
animated
;
-
(
void
)
fus_setupIconWithImage
:(
UIImage
*
)
faceImage
level
:(
NSInteger
)
level
animated
:(
BOOL
)
animated
;
-
(
void
)
fus_setupIconWithFacePath
:(
NSString
*
)
facePath
level
:(
NSInteger
)
level
;
-
(
void
)
fus_setupIconWithFacePath
:(
NSString
*
)
facePath
level
:(
NSInteger
)
level
hiddenLevel
:(
BOOL
)
hiddenLevel
;
-
(
void
)
fus_setupIconWithFacePath
:(
NSString
*
)
facePath
level
:(
NSInteger
)
level
hiddenLevel
:(
BOOL
)
hiddenLevel
animated
:(
BOOL
)
animated
;
-
(
void
)
fus_setupIconWithFacePath
:(
NSString
*
)
facePath
level
:(
NSInteger
)
level
;
-
(
void
)
fus_setupIconWithFacePath
:(
NSString
*
)
facePath
level
:(
NSInteger
)
level
animated
:(
BOOL
)
animated
;
@end
...
...
FuSiLive/Classes/Zone/View/VIPCenter/FUSRichIconView.m
View file @
a3b5e00d
...
...
@@ -78,43 +78,38 @@ static CGFloat const kBaseSize = 40.0f;
-
(
void
)
fus_setupIconWithImage
:
(
UIImage
*
)
faceImage
level
:
(
NSInteger
)
level
animated
:
(
BOOL
)
animated
{
self
.
faceImageView
.
image
=
faceImage
;
[
self
fus_setupWithLevel
:
level
hiddenLevel
:
NO
animated
:
YES
];
[
self
fus_setupWithLevel
:
level
animated
:
YES
];
}
-
(
void
)
fus_setupLiveIconWithFacePath
:
(
NSString
*
)
facePath
level
:
(
NSInteger
)
level
{
[
self
fus_setupLiveIconWithFacePath
:
facePath
level
:
level
hiddenLevel
:
NO
animated
:
YES
];
[
self
fus_setupLiveIconWithFacePath
:
facePath
level
:
level
animated
:
YES
];
}
-
(
void
)
fus_setupLiveIconWithFacePath
:
(
NSString
*
)
facePath
level
:
(
NSInteger
)
level
hiddenLevel
:
(
BOOL
)
hiddenLevel
animated
:
(
BOOL
)
animated
{
-
(
void
)
fus_setupLiveIconWithFacePath
:
(
NSString
*
)
facePath
level
:
(
NSInteger
)
level
animated
:
(
BOOL
)
animated
{
if
([
facePath
containsString
:
@"boy"
]
||
[
facePath
containsString
:
@"girl"
])
{
[
self
fus_setupIconWithImage
:[
UIImage
imageNamed
:
@"live_default_head_bg"
]
level
:
level
animated
:
animated
];
}
else
{
[
self
fus_setupIconWithFacePath
:
facePath
level
:
level
hiddenLevel
:
hiddenLevel
animated
:
animated
];
[
self
fus_setupIconWithFacePath
:
facePath
level
:
level
animated
:
animated
];
}
}
-
(
void
)
fus_setupIconWithFacePath
:
(
NSString
*
)
facePath
level
:
(
NSInteger
)
level
{
[
self
fus_setupIconWithFacePath
:
facePath
level
:
level
hiddenLevel
:
NO
];
}
-
(
void
)
fus_setupIconWithFacePath
:
(
NSString
*
)
facePath
level
:
(
NSInteger
)
level
hiddenLevel
:
(
BOOL
)
hiddenLevel
{
[
self
fus_setupIconWithFacePath
:
facePath
level
:
level
hiddenLevel
:
hiddenLevel
animated
:
YES
];
[
self
fus_setupIconWithFacePath
:
facePath
level
:
level
];
}
-
(
void
)
fus_setupIconWithFacePath
:
(
NSString
*
)
facePath
level
:
(
NSInteger
)
level
hiddenLevel
:
(
BOOL
)
hiddenLevel
animated
:
(
BOOL
)
animated
{
[
self
.
faceImageView
setWebImageWithSubURLString
:
facePath
placeholder
:
nil
];
[
self
fus_setupWithLevel
:
level
hiddenLevel
:
hiddenLevel
animated
:
animated
];
[
self
fus_setupWithLevel
:
level
animated
:
animated
];
}
-
(
void
)
fus_setupWithLevel
:
(
NSInteger
)
level
hiddenLevel
:
(
BOOL
)
hiddenLevel
animated
:
(
BOOL
)
animated
{
-
(
void
)
fus_setupWithLevel
:
(
NSInteger
)
level
animated
:
(
BOOL
)
animated
{
UIImage
*
image
=
[
UIImage
fus_imageWithLevel
:
level
];
_richWearImageView
.
hidden
=
(
image
==
nil
)
||
(
level
<=
0
&&
!
self
.
showNoVipLevel
);
_richWearImageView
.
image
=
image
;
_richWearImageView
.
hidden
=
(
image
==
nil
);
}
@end
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