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
33905c2c
authored
Jul 09, 2024
by
pierce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改UI
parent
8c41982c
Hide whitespace changes
Inline
Side-by-side
Showing
33 changed files
with
122 additions
and
123 deletions
DevelopmentPods/FUSFoundation/FUSFoundation/Classes/FUSFoundation/Views/FUSStyleButton.m
FuSiLive/Classes/BaoFang/OpenScreenPush/View/FUSOpenScreenPushView.m
FuSiLive/Classes/Board/View/BoardPopupView/FireCount/FUSFireCountTableViewCell.xib
FuSiLive/Classes/Foundation/Http/FUSURLDictionary.h
FuSiLive/Classes/Foundation/View/CustomView/FUSNameLevelView.xib
FuSiLive/Classes/FusiLive-Bridging-Header.h
FuSiLive/Classes/InstantMessaging/View/ToolViews/FUSIMGiftView.m
FuSiLive/Classes/InstantMessaging/View/ToolViews/VideoChat/FunctionViews/FUSVideoChatGiftView.m
FuSiLive/Classes/InstantMessaging/View/ToolViews/VideoChat/FunctionViews/FUSVideoChatUserInfoView.m
FuSiLive/Classes/NewLive/Main/Other/FunctionViewHelper/FUSLiveChatDataSourceHelper.m
FuSiLive/Classes/NewLive/Main/View/FunctionView/AudienceListView/ContributeList/FUSContributeCellTableViewCell.m
FuSiLive/Classes/NewLive/Main/View/FunctionView/AudienceListView/UserList/FUSAudienceListView.m
FuSiLive/Classes/NewLive/Main/View/FunctionView/AudienceListView/UserList/FUSAudienceTableViewCell.m
FuSiLive/Classes/NewLive/Main/View/FunctionView/ChatInputView/FUSLiveChatInputBulletsListCell.m
FuSiLive/Classes/NewLive/Main/View/FunctionView/ChatInputView/FUSLiveChatInputTaskListView.swift
FuSiLive/Classes/NewLive/Main/View/FunctionView/FUSGiftCenter/FUSGiftAnimation/FUSGiftAnimation.m
FuSiLive/Classes/NewLive/Main/View/FunctionView/FUSGiftCenter/FUSGiftAnimation/FUSWEBPGiftAnimation.m
FuSiLive/Classes/NewLive/Main/View/FunctionView/GiftView/FUSLiveGiftCollectionViewCell.m
FuSiLive/Classes/NewLive/Main/View/FunctionView/GiftView/FUSLiveGiftView.m
FuSiLive/Classes/NewLive/Main/View/FunctionView/HeadView/FUSLiveCoinTicketView.m
FuSiLive/Classes/NewLive/Main/View/FunctionView/Popular/ProgressView/FUSPopularProgressView.m
FuSiLive/Classes/Zone/Controller/FireFlyMyZone/FUSZoneTaskCenterViewController.m
FuSiLive/Classes/Zone/View/TaskCenter/FUSGotBackpackItemAnimView.h
FuSiLive/Classes/Zone/View/TaskCenter/FUSGotBackpackItemAnimView.m
FuSiLive/Classes/Zone/View/TaskCenter/FUSTaskCenterHeaderSimpleTableViewCell.xib
FuSiLive/Classes/Zone/View/TaskCenter/FUSTaskCenterListTableViewCell.h
FuSiLive/Classes/Zone/View/TaskCenter/FUSTaskCenterListTableViewCell.m
FuSiLive/Classes/Zone/View/TaskCenter/FUSTaskCenterListTableViewCell.xib
FuSiLive/Classes/Zone/View/TaskCenter/FUSTaskCenterProcessTableViewCell.h
FuSiLive/Classes/Zone/View/TaskCenter/FUSTaskCenterProcessTableViewCell.m
FuSiLive/Classes/Zone/View/TaskCenter/FUSTaskCenterProcessTableViewCell.xib
FuSiLive/Classes/Zone/View/TaskCenter/FUSTaskCenterTableViewCell.m
FuSiLive/Classes/Zone/View/TaskCenter/FUSTaskCenterTableViewCell.xib
DevelopmentPods/FUSFoundation/FUSFoundation/Classes/FUSFoundation/Views/FUSStyleButton.m
View file @
33905c2c
...
...
@@ -225,16 +225,16 @@
[
self
setTitleColor
:[
UIColor
whiteColor
]
forState
:
UIControlStateDisabled
];
self
.
layer
.
cornerRadius
=
self
.
height
/
2
.
0
f
;
self
.
layer
.
masksToBounds
=
YES
;
self
.
backgroundColor
=
[
UIColor
fus_
appMainColor
];
self
.
backgroundColor
=
[
UIColor
fus_
diamondBlue
];
}
break
;
case
FUSButtonStyleBlueBorder
:
{
[
self
cleanStyle
];
[
self
setTitleColor
:[
UIColor
fus_
appMainColor
]
forState
:
UIControlStateNormal
];
[
self
setTitleColor
:[
UIColor
fus_
diamondBlue
]
forState
:
UIControlStateNormal
];
self
.
layer
.
cornerRadius
=
self
.
height
/
2
.
0
f
;
self
.
layer
.
masksToBounds
=
YES
;
self
.
layer
.
borderColor
=
UIColor
.
fus_
appMainColor
.
CGColor
;
self
.
layer
.
borderColor
=
UIColor
.
fus_
diamondBlue
.
CGColor
;
self
.
layer
.
borderWidth
=
1
;
self
.
backgroundColor
=
[
UIColor
clearColor
];
}
...
...
FuSiLive/Classes/BaoFang/OpenScreenPush/View/FUSOpenScreenPushView.m
View file @
33905c2c
...
...
@@ -65,7 +65,7 @@
self
.
picPageControl
.
numberOfPages
=
openScreenPushModel
.
img
.
count
;
self
.
picPageControl
.
currentPage
=
0
;
self
.
picPageControl
.
pageIndicatorTintColor
=
[
UIColor
colorWithHex
:
@"B3B3B3"
];
self
.
picPageControl
.
currentPageIndicatorTintColor
=
[
UIColor
colorWithHex
:
@"2BE1B0"
];
self
.
picPageControl
.
currentPageIndicatorTintColor
=
[
UIColor
fus_diamondBlue
];
if
(
openScreenPushModel
.
img
.
count
>
1
)
{
self
.
picPageControl
.
hidden
=
NO
;
...
...
FuSiLive/Classes/Board/View/BoardPopupView/FireCount/FUSFireCountTableViewCell.xib
View file @
33905c2c
...
...
@@ -76,9 +76,9 @@
<nil
key=
"highlightedColor"
/>
</label>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"vip_icon_normal"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"wq7-T4-CP0"
>
<rect
key=
"frame"
x=
"141"
y=
"15
"
width=
"13"
height=
"15
"
/>
<rect
key=
"frame"
x=
"141"
y=
"15
.5"
width=
"13"
height=
"14
"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1
5
"
id=
"7ez-1b-Xza"
/>
<constraint
firstAttribute=
"height"
constant=
"1
4
"
id=
"7ez-1b-Xza"
/>
</constraints>
</imageView>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"aV3-TM-xFk"
>
...
...
@@ -124,7 +124,7 @@
<resources>
<image
name=
"fireFly_zone_fireCount_Top1"
width=
"53"
height=
"64"
/>
<image
name=
"fireFly_zone_fireCount_Top1_rank"
width=
"43"
height=
"11"
/>
<image
name=
"fireFly_zone_fireCount_fire"
width=
"1
5"
height=
"1
5"
/>
<image
name=
"fireFly_zone_fireCount_fire"
width=
"1
2"
height=
"15.
5"
/>
<image
name=
"vip_icon_normal"
width=
"13"
height=
"13"
/>
</resources>
</document>
FuSiLive/Classes/Foundation/Http/FUSURLDictionary.h
View file @
33905c2c
...
...
@@ -1049,7 +1049,7 @@
#define URL_WEB_ARBIC_HELP DNS_WEB(@"/Nesting/help/l7.html")
// 《直播 & 社区公约》
#define URL_WEB_REGULATION DNS_WEB(@"fusi/help/index.html")//DNS_WEB(@"/regulation.html")
#define URL_WEB_REGULATION DNS_WEB(@"
/
fusi/help/index.html")//DNS_WEB(@"/regulation.html")
// 主播时长查询
#define URL_LIVE_TIME_SEARCH DNS_WEB(@"/Nesting/queryTime/index.html")
...
...
FuSiLive/Classes/Foundation/View/CustomView/FUSNameLevelView.xib
View file @
33905c2c
...
...
@@ -36,9 +36,9 @@
<nil
key=
"highlightedColor"
/>
</label>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"vip_icon_normal"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"wzh-4h-Drs"
>
<rect
key=
"frame"
x=
"57.5"
y=
"1
.5"
width=
"13"
height=
"13
"
/>
<rect
key=
"frame"
x=
"57.5"
y=
"1
"
width=
"13"
height=
"14
"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1
3
"
id=
"Vgo-JX-t0s"
/>
<constraint
firstAttribute=
"height"
constant=
"1
4
"
id=
"Vgo-JX-t0s"
/>
</constraints>
</imageView>
</subviews>
...
...
FuSiLive/Classes/FusiLive-Bridging-Header.h
View file @
33905c2c
...
...
@@ -37,6 +37,7 @@
#import "FUSMyZoneViewController.h"
#import "FUSBaoFangHttpHelper.h"
#import "FUSSingleDailyCheckInView.h"
#import "FUSGotBackpackItemAnimView.h"
#import "FUSMyEditNameAlertView.h"
// MARK: -- 直播间
...
...
FuSiLive/Classes/InstantMessaging/View/ToolViews/FUSIMGiftView.m
View file @
33905c2c
...
...
@@ -186,7 +186,7 @@
_rechargeBtn
.
frame
=
CGRectMake
(
CGRectGetMaxX
(
_diamondCountBtn
.
frame
)
+
8
,
0
,
btnWidth
,
_giftBottomView
.
height
);
NSString
*
title
=
[
NSString
stringWithFormat
:
@"%@ >"
,[
NSString
fus_localString
:
@"储值"
]];
NSMutableAttributedString
*
atrTitle
=
[[
NSMutableAttributedString
alloc
]
initWithString
:
title
];
[
atrTitle
addAttributes
:@{
NSForegroundColorAttributeName
:
[
UIColor
colorWithHex
:
@"2BE1B0"
]}
range
:
NSMakeRange
(
0
,
[
NSString
fus_localString
:
@"储值"
].
length
)];
[
atrTitle
addAttributes
:@{
NSForegroundColorAttributeName
:
[
UIColor
fus_diamondBlue
]}
range
:
NSMakeRange
(
0
,
[
NSString
fus_localString
:
@"储值"
].
length
)];
[
atrTitle
addAttributes
:@{
NSForegroundColorAttributeName
:
[
UIColor
grayColor
]}
range
:
NSMakeRange
([
NSString
fus_localString
:
@"储值"
].
length
,
title
.
length
-
[
NSString
fus_localString
:
@"储值"
].
length
)];
// [_rechargeBtn setTitle:title forState:UIControlStateNormal];
...
...
FuSiLive/Classes/InstantMessaging/View/ToolViews/VideoChat/FunctionViews/FUSVideoChatGiftView.m
View file @
33905c2c
...
...
@@ -150,7 +150,7 @@ if (@available(iOS 11.0, *)) {height = 290 + UIView.fus_SafeBottom;}\
_jewelCountBtn
.
titleLabel
.
font
=
[
UIFont
fus_themeFont
:
14
];
[
_jewelCountBtn
addTarget
:
self
action
:
@selector
(
fus_onClickMyJewelCount
:
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
_jewelCountBtn
setImageEdgeInsets
:
UIEdgeInsetsMake
(
3
,
0
,
3
,
0
)];
[
_jewelCountBtn
setTitleColor
:[
UIColor
colorWithHex
:
@"2BE1B0"
]
forState
:
UIControlStateNormal
];
[
_jewelCountBtn
setTitleColor
:[
UIColor
fus_diamondBlue
]
forState
:
UIControlStateNormal
];
_jewelCountBtn
.
imageView
.
contentMode
=
UIViewContentModeScaleAspectFit
;
[
_bgView
addSubview
:
_jewelCountBtn
];
}
...
...
@@ -172,7 +172,7 @@ if (@available(iOS 11.0, *)) {height = 290 + UIView.fus_SafeBottom;}\
_rechargetBtn
.
imageEdgeInsets
=
UIEdgeInsetsMake
(
0
,
labelWidth
,
0
,
-
labelWidth
);
_rechargetBtn
.
titleEdgeInsets
=
UIEdgeInsetsMake
(
0
,
-
imageWidth
,
0
,
imageWidth
);
[
_rechargetBtn
setTitleColor
:[
UIColor
colorWithHex
:
@"2BE1B0"
]
forState
:
UIControlStateNormal
];
[
_rechargetBtn
setTitleColor
:[
UIColor
fus_diamondBlue
]
forState
:
UIControlStateNormal
];
[
_rechargetBtn
addTarget
:
self
action
:
@selector
(
fus_onClickReChargeBtn
:
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
_bgView
addSubview
:
_rechargetBtn
];
}
...
...
FuSiLive/Classes/InstantMessaging/View/ToolViews/VideoChat/FunctionViews/FUSVideoChatUserInfoView.m
View file @
33905c2c
...
...
@@ -462,7 +462,7 @@ if (@available(iOS 11.0, *)) {height = 80 + UIView.fus_SafeBottom;}\
_nickNameLabel
.
font
=
[
UIFont
fus_themeBoldFont
:
21
];;
[
self
.
bgView
addSubview
:
_nickNameLabel
];
_richImageView
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
30
,
15
)];
_richImageView
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
28
,
14
)];
_richImageView
.
contentMode
=
UIViewContentModeScaleAspectFit
;
[
self
.
bgView
addSubview
:
_richImageView
];
}
...
...
@@ -499,7 +499,7 @@ if (@available(iOS 11.0, *)) {height = 80 + UIView.fus_SafeBottom;}\
-
(
void
)
fus_initSignLabel
{
_signLabel
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
15
,
CGRectGetMaxY
(
_fireFlyIDLabel
.
frame
)
+
55
,
self
.
bgView
.
width
-
30
,
15
)];
_signLabel
.
textColor
=
[
UIColor
fus_textColorRich
];
_signLabel
.
font
=
[
UIFont
fus_themeFont
:
1
3
];
_signLabel
.
font
=
[
UIFont
fus_themeFont
:
1
5
];
// _signLabel.adjustsFontSizeToFitWidth = YES;
_signLabel
.
textAlignment
=
NSTextAlignmentCenter
;
[
self
.
bgView
addSubview
:
_signLabel
];
...
...
@@ -522,7 +522,7 @@ if (@available(iOS 11.0, *)) {height = 80 + UIView.fus_SafeBottom;}\
UILabel
*
label
=
label
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
0
,
bgView
.
centerY
-
10
,
bgView
.
width
,
20
)];
label
.
textColor
=
UIColor
.
fus_textColorRich
;
label
.
textAlignment
=
NSTextAlignmentCenter
;
label
.
font
=
[
UIFont
italicSystemFontOfSize
:
26
];
label
.
font
=
[
UIFont
fus_custom1ItalicFont
:
26
];
[
bgView
addSubview
:
label
];
switch
(
i
)
{
...
...
FuSiLive/Classes/NewLive/Main/Other/FunctionViewHelper/FUSLiveChatDataSourceHelper.m
View file @
33905c2c
...
...
@@ -883,7 +883,7 @@
hasShowVipIcon
=
YES
;
UIImage
*
levelImage
=
[
UIImage
fus_imageWithLevel
:
model
.
level
.
integerValue
];
if
(
levelImage
)
{
CGFloat
imageH
=
levelImageHeight
;
CGFloat
imageH
=
14
;
CGFloat
imageW
=
levelImageHeight
/
levelImage
.
size
.
height
*
levelImage
.
size
.
width
;
NSAttributedString
*
levelAttr
=
[
NSAttributedString
attachmentStringWithContent
:
levelImage
contentMode
:
UIViewContentModeScaleAspectFit
attachmentSize
:
CGSizeMake
(
imageW
,
imageH
)
alignToFont
:
FUS_LIVE_FONT
(
fontSize
)
alignment
:
YYTextVerticalAlignmentCenter
];
// 让VIP图标图标往下偏移
...
...
FuSiLive/Classes/NewLive/Main/View/FunctionView/AudienceListView/ContributeList/FUSContributeCellTableViewCell.m
View file @
33905c2c
...
...
@@ -225,14 +225,14 @@
self
.
vipImageView
.
image
=
[
UIImage
fus_imageWithLevel
:
level
];
if
(
level
<=
30
)
{
[
self
.
vipImageView
mas_remakeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
width
.
height
.
mas_equalTo
(
1
3
);
make
.
width
.
height
.
mas_equalTo
(
1
4
);
make
.
centerY
.
equalTo
(
self
.
nicknameLabel
.
mas_centerY
);
make
.
left
.
equalTo
(
self
.
onlineLabel
.
mas_right
).
offset
(
4
);
}];
}
else
{
[
self
.
vipImageView
mas_remakeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
height
.
mas_equalTo
(
1
3
);
make
.
width
.
mas_equalTo
(
2
6
);
make
.
height
.
mas_equalTo
(
1
4
);
make
.
width
.
mas_equalTo
(
2
8
);
make
.
centerY
.
equalTo
(
self
.
nicknameLabel
.
mas_centerY
);
make
.
left
.
equalTo
(
self
.
onlineLabel
.
mas_right
).
offset
(
4
);
}];
...
...
FuSiLive/Classes/NewLive/Main/View/FunctionView/AudienceListView/UserList/FUSAudienceListView.m
View file @
33905c2c
...
...
@@ -95,7 +95,7 @@
self
.
openVIPBtn
=
[
FUSStyleButton
buttonWithType
:
UIButtonTypeCustom
];
self
.
openVIPBtn
.
style
=
FUSButtonStyleBlue
;
self
.
openVIPBtn
.
titleLabel
.
font
=
[
UIFont
fus_themeFont
:
12
];
self
.
openVIPBtn
.
titleLabel
.
font
=
[
UIFont
fus_theme
Bold
Font
:
12
];
[
self
.
openVIPBtn
setTitle
:[
NSString
fus_localString
:
@"去开通"
]
forState
:
UIControlStateNormal
];
[
self
.
openVIPBtn
setTitleColor
:
UIColor
.
fus_textColorRich
forState
:
UIControlStateNormal
];
self
.
openVIPBtn
.
layer
.
cornerRadius
=
13
;
...
...
FuSiLive/Classes/NewLive/Main/View/FunctionView/AudienceListView/UserList/FUSAudienceTableViewCell.m
View file @
33905c2c
...
...
@@ -160,14 +160,14 @@
self
.
vipImageView
.
image
=
[
UIImage
fus_imageWithLevel
:
level
];
if
(
level
<=
30
)
{
[
self
.
vipImageView
mas_remakeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
width
.
height
.
mas_equalTo
(
1
3
);
make
.
width
.
height
.
mas_equalTo
(
1
4
);
make
.
centerY
.
equalTo
(
self
.
nicknameLabel
.
mas_centerY
);
make
.
left
.
equalTo
(
self
.
onlineLabel
.
mas_right
).
offset
(
4
);
}];
}
else
{
[
self
.
vipImageView
mas_remakeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
height
.
mas_equalTo
(
1
3
);
make
.
width
.
mas_equalTo
(
2
6
);
make
.
height
.
mas_equalTo
(
1
4
);
make
.
width
.
mas_equalTo
(
2
8
);
make
.
centerY
.
equalTo
(
self
.
nicknameLabel
.
mas_centerY
);
make
.
left
.
equalTo
(
self
.
onlineLabel
.
mas_right
).
offset
(
4
);
}];
...
...
FuSiLive/Classes/NewLive/Main/View/FunctionView/ChatInputView/FUSLiveChatInputBulletsListCell.m
View file @
33905c2c
...
...
@@ -53,8 +53,8 @@
self
.
contentBtn
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
self
.
contentBtn
.
userInteractionEnabled
=
NO
;
self
.
contentBtn
.
frame
=
CGRectMake
(
0
,
0
,
82
.
5
,
22
);
[
self
.
contentBtn
setTitleColor
:
UIColor
.
fus_textColorMedium
forState
:
UIControlStateNormal
];
[
self
.
contentBtn
setTitleColor
:
UIColor
.
fus_textColorRich
forState
:
UIControlStateSelected
];
[
self
.
contentBtn
setTitleColor
:
[
UIColor
colorWithHex
:
@"22222b"
]
forState
:
UIControlStateNormal
];
[
self
.
contentBtn
setTitleColor
:
[
UIColor
colorWithHex
:
@"282828"
]
forState
:
UIControlStateSelected
];
self
.
contentBtn
.
titleLabel
.
font
=
[
UIFont
fus_themeFont
:
12
];
self
.
contentBtn
.
layer
.
cornerRadius
=
11
;
self
.
contentBtn
.
layer
.
masksToBounds
=
YES
;
...
...
FuSiLive/Classes/NewLive/Main/View/FunctionView/ChatInputView/FUSLiveChatInputTaskListView.swift
View file @
33905c2c
...
...
@@ -178,12 +178,12 @@ class FUSLiveChatInputTaskListView: UIView, UITableViewDelegate, UITableViewData
dewView
.
addDewAward
(
withAmount
:
"
\(
listModel
.
award
)
"
,
textColor
:
UIColor
.
fus_dewBlue
())
UIApplication
.
shared
.
keyWindow
?
.
addSubview
(
dewView
)
}
else
{
let
awardView
=
FUSSingleDailyCheckInView
.
fus_
()
awardView
.
frame
=
UIScreen
.
main
.
bounds
awardView
.
backgroundColor
=
UIColor
.
init
(
white
:
0
,
alpha
:
0.6
)
awardView
.
fus_showCheckInSucceed
(
withIcon
:
listModel
.
icon
,
desc
:
listModel
.
getTips
,
award
:
String
(
listModel
.
award
),
animated
:
false
)
UIApplication
.
shared
.
keyWindow
?
.
addSubview
(
awardView
)
FUSGotBackpackItemAnimView
.
fus_show
(
with
:
.
type2
,
icon
:
listModel
.
icon
,
name
:
listModel
.
getTips
,
goodsType
:
FUSGotBackpackItemGoodsType
(
rawValue
:
UInt
(
listModel
.
classify
))
??
.
goodsTypeNone
,
isMotorHasWear
:
false
)
//
let awardView = FUSSingleDailyCheckInView.fus_()
//
awardView.frame = UIScreen.main.bounds
//
awardView.backgroundColor = UIColor.init(white: 0, alpha: 0.6)
//
awardView.fus_showCheckInSucceed(withIcon: listModel.icon, desc: listModel.getTips, award: String(listModel.award), animated: false)
//
UIApplication.shared.keyWindow?.addSubview(awardView)
}
}
...
...
FuSiLive/Classes/NewLive/Main/View/FunctionView/FUSGiftCenter/FUSGiftAnimation/FUSGiftAnimation.m
View file @
33905c2c
...
...
@@ -277,7 +277,7 @@
if
(
levelStr
.
integerValue
>
0
)
{
UIImage
*
levelImage
=
[
UIImage
fus_imageWithLevel
:
levelStr
.
integerValue
];
CGFloat
height
=
25
;
CGFloat
height
=
14
;
CGFloat
width
=
height
/
levelImage
.
size
.
height
*
levelImage
.
size
.
width
;
NSAttributedString
*
levelAttr
=
[
NSAttributedString
attachmentStringWithContent
:
levelImage
contentMode
:
UIViewContentModeScaleAspectFit
attachmentSize
:
CGSizeMake
(
width
,
height
)
alignToFont
:
[
UIFont
fus_themeFont
:
15
]
alignment
:
YYTextVerticalAlignmentCenter
];
[
attr
appendAttributedString
:
levelAttr
];
...
...
@@ -369,7 +369,7 @@
_faceImageView
.
layer
.
cornerRadius
=
_faceImageView
.
height
/
2
.
0
;
_faceImageView
.
layer
.
masksToBounds
=
YES
;
_faceImageView
.
layer
.
borderWidth
=
1
;
_faceImageView
.
layer
.
borderColor
=
[[
UIColor
colorWithHex
:
@"2be1b0"
]
CGColor
];
_faceImageView
.
layer
.
borderColor
=
[[
UIColor
fus_diamondBlue
]
CGColor
];
[
_bgImageView
addSubview
:
_faceImageView
];
_senderInfoLabel
=
[[
YYLabel
alloc
]
init
];
...
...
@@ -523,7 +523,7 @@
UIImage
*
levelImage
=
[
UIImage
fus_imageWithLevel
:
model
.
level
.
integerValue
];
if
(
levelImage
)
{
CGFloat
imageH
=
1
5
;
CGFloat
imageH
=
1
4
;
CGFloat
imageW
=
imageH
/
levelImage
.
size
.
height
*
levelImage
.
size
.
width
;
NSAttributedString
*
levelAttr
=
[
NSAttributedString
attachmentStringWithContent
:
levelImage
contentMode
:
UIViewContentModeScaleAspectFit
attachmentSize
:
CGSizeMake
(
imageW
,
imageH
)
alignToFont
:
[
UIFont
fus_themeFont
:
13
]
alignment
:
YYTextVerticalAlignmentCenter
];
...
...
FuSiLive/Classes/NewLive/Main/View/FunctionView/FUSGiftCenter/FUSGiftAnimation/FUSWEBPGiftAnimation.m
View file @
33905c2c
...
...
@@ -96,20 +96,12 @@
resourceMd5
:
resourceMd5
completion
:^
(
YYImage
*
yyImage
)
{
if
(
!
yyImage
)
{
[
weakSelf
fus_endGiftAnimation
];
return
;
}
weakSelf
.
retryTime
=
0
;
// dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
// YYImage *yyImage = [YYImage imageWithData:webpImageData];
// yyImage.preloadAllAnimatedImageFrames = YES;
// dispatch_async(dispatch_get_main_queue(), ^{
[
weakSelf
displayWithWebpImage
:
yyImage
];
// });
// });
[
weakSelf
displayWithWebpImage
:
yyImage
];
}];
}
...
...
@@ -133,8 +125,12 @@
if
(
self
.
didEndAnimation
)
{
self
.
didEndAnimation
(
weakSelf
.
animationModel
);
}
[
NSObject
cancelPreviousPerformRequestsWithTarget
:
self
selector
:
@selector
(
fus_timeOutAnimation
)
object
:
nil
];
});
}
-
(
void
)
fus_timeOutAnimation
{
[
self
fus_endGiftAnimation
];
}
-
(
void
)
fus_removeGiftAnimation
...
...
@@ -177,7 +173,8 @@
[
self
fus_endGiftAnimation
];
return
;
}
[
NSObject
cancelPreviousPerformRequestsWithTarget
:
self
selector
:
@selector
(
fus_timeOutAnimation
)
object
:
nil
];
[
self
performSelector
:
@selector
(
fus_timeOutAnimation
)
withObject
:
nil
afterDelay
:
30
];
// 图片资源已经加载到内存中
_webpImageView
.
image
=
webpImage
;
_webpImageView
.
animationRepeatCount
=
1
;
...
...
@@ -205,6 +202,7 @@
-
(
void
)
dealloc
{
[
NSObject
cancelPreviousPerformRequestsWithTarget
:
self
selector
:
@selector
(
fus_timeOutAnimation
)
object
:
nil
];
if
(
_webpImageView
.
observationInfo
)
{
[
_webpImageView
removeObserver
:
self
forKeyPath
:
@"currentAnimatedImageIndex"
];
}
...
...
FuSiLive/Classes/NewLive/Main/View/FunctionView/GiftView/FUSLiveGiftCollectionViewCell.m
View file @
33905c2c
...
...
@@ -278,7 +278,7 @@
if
([
model
.
givecurrency
isEqualToString
:
@"5"
])
{
[
_priceBtn
setTitleColor
:[
UIColor
colorWithHex
:
@"3CAFF3"
]
forState
:
UIControlStateNormal
];
[
_priceBtn
setTitleColor
:[
UIColor
fus_dewBlue
]
forState
:
UIControlStateNormal
];
}
else
{
[
_priceBtn
setTitleColor
:[
UIColor
colorWithHex
:
@"58DBD7"
]
forState
:
UIControlStateNormal
];
}
...
...
FuSiLive/Classes/NewLive/Main/View/FunctionView/GiftView/FUSLiveGiftView.m
View file @
33905c2c
...
...
@@ -671,7 +671,7 @@ static FUSLiveGiftView *giftView = nil;
_gemBtn
.
contentVerticalAlignment
=
UIControlContentVerticalAlignmentCenter
;
_gemBtn
.
contentHorizontalAlignment
=
UIControlContentHorizontalAlignmentCenter
;
[
_gemBtn
setImage
:[
UIImage
imageNamed
:
@"common_assets_diamond_23x23"
]
forState
:
UIControlStateNormal
];
[
_gemBtn
setTitleColor
:[
UIColor
colorWithHex
:
@"2BE1B0"
]
forState
:
UIControlStateNormal
];
[
_gemBtn
setTitleColor
:[
UIColor
fus_diamondBlue
]
forState
:
UIControlStateNormal
];
_gemBtn
.
titleLabel
.
font
=
[
UIFont
fus_themeFont
:
13
];
[
_gemBtn
sizeToFit
];
_gemBtn
.
centerY
=
_bottomBGView
.
height
/
2
.
0
;
...
...
@@ -684,7 +684,7 @@ static FUSLiveGiftView *giftView = nil;
-
(
void
)
initRechargeButton
{
_rechargeBtn
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
[
_rechargeBtn
setTitleColor
:[
UIColor
colorWithHex
:
@"2BE1B0"
]
forState
:
UIControlStateNormal
];
[
_rechargeBtn
setTitleColor
:[
UIColor
fus_diamondBlue
]
forState
:
UIControlStateNormal
];
[
_rechargeBtn
setTitle
:[
NSString
fus_localString
:
@"储值"
]
forState
:
UIControlStateNormal
];
_rechargeBtn
.
titleLabel
.
font
=
[
UIFont
fus_themeFont
:
13
];
[
_rechargeBtn
setImage
:[[
UIImage
imageNamed
:
@"live_icon_gift_recharge_arrow"
]
fusrtl_imageFlippedForRightToLeftLayoutDirection
]
forState
:
UIControlStateNormal
];
...
...
@@ -1501,34 +1501,34 @@ static FUSLiveGiftView *giftView = nil;
FUSLiveGiftDataModel
*
dataModel
=
self
.
categoryDataSource
[
_selectedIndexPath
.
section
].
giftDataArr
[
_selectedIndexPath
.
item
];
if
([
FUSLiveGiftDataModel
fus_isNullWithModel
:
dataModel
])
{
[
_gemBtn
setImage
:[
UIImage
imageNamed
:
@"common_assets_diamond_23x23"
]
forState
:
UIControlStateNormal
];
[
_gemBtn
setTitleColor
:[
UIColor
colorWithHex
:
@"2BE1B0"
]
forState
:
UIControlStateNormal
];
[
_gemBtn
setTitleColor
:[
UIColor
fus_diamondBlue
]
forState
:
UIControlStateNormal
];
[
self
fus_updataDiamondCountFromSever
:
NO
];
[
_rechargeBtn
setTitleColor
:[
UIColor
colorWithHex
:
@"2BE1B0"
]
forState
:
UIControlStateNormal
];
[
_rechargeBtn
setTitleColor
:[
UIColor
fus_diamondBlue
]
forState
:
UIControlStateNormal
];
[
_rechargeBtn
setTitle
:[
NSString
fus_localString
:
@"储值"
]
forState
:
UIControlStateNormal
];
return
;
}
if
([
dataModel
.
currency
isEqualToString
:
@"5"
])
{
[
_gemBtn
setImage
:[
UIImage
imageNamed
:
@"common_assets_dew_giftPanel"
]
forState
:
UIControlStateNormal
];
[
_gemBtn
setTitleColor
:[
UIColor
colorWithHex
:
@"3CAFF3"
]
forState
:
UIControlStateNormal
];
[
_gemBtn
setTitleColor
:[
UIColor
fus_dewBlue
]
forState
:
UIControlStateNormal
];
[
self
fus_setDiamondCount
:[
FUSCacheDataShare
shareStore
].
userDetailInfo
.
chip
];
[
_rechargeBtn
setTitleColor
:[
UIColor
colorWithHex
:
@"3CAFF3"
]
forState
:
UIControlStateNormal
];
[
_rechargeBtn
setTitleColor
:[
UIColor
fus_dewBlue
]
forState
:
UIControlStateNormal
];
[
_rechargeBtn
setTitle
:[
NSString
fus_localString
:
@"买入"
]
forState
:
UIControlStateNormal
];
}
else
{
[
_gemBtn
setImage
:[
UIImage
imageNamed
:
@"common_assets_diamond_23x23"
]
forState
:
UIControlStateNormal
];
[
_gemBtn
setTitleColor
:[
UIColor
colorWithHex
:
@"2BE1B0"
]
forState
:
UIControlStateNormal
];
[
_gemBtn
setTitleColor
:[
UIColor
fus_diamondBlue
]
forState
:
UIControlStateNormal
];
[
self
fus_updataDiamondCountFromSever
:
NO
];
[
_rechargeBtn
setTitleColor
:[
UIColor
colorWithHex
:
@"2BE1B0"
]
forState
:
UIControlStateNormal
];
[
_rechargeBtn
setTitleColor
:[
UIColor
fus_diamondBlue
]
forState
:
UIControlStateNormal
];
[
_rechargeBtn
setTitle
:[
NSString
fus_localString
:
@"储值"
]
forState
:
UIControlStateNormal
];
}
}
else
if
(
giftType
==
FUSDewGift
)
{
[
_gemBtn
setImage
:[
UIImage
imageNamed
:
@"common_assets_dew_giftPanel"
]
forState
:
UIControlStateNormal
];
[
_gemBtn
setTitleColor
:[
UIColor
colorWithHex
:
@"3CAFF3"
]
forState
:
UIControlStateNormal
];
[
_gemBtn
setTitleColor
:[
UIColor
fus_dewBlue
]
forState
:
UIControlStateNormal
];
[
self
fus_setDiamondCount
:[
FUSCacheDataShare
shareStore
].
userDetailInfo
.
chip
];
[
_rechargeBtn
setTitleColor
:[
UIColor
colorWithHex
:
@"3CAFF3"
]
forState
:
UIControlStateNormal
];
[
_rechargeBtn
setTitleColor
:[
UIColor
fus_dewBlue
]
forState
:
UIControlStateNormal
];
[
_rechargeBtn
setTitle
:[
NSString
fus_localString
:
@"买入"
]
forState
:
UIControlStateNormal
];
}
...
...
FuSiLive/Classes/NewLive/Main/View/FunctionView/HeadView/FUSLiveCoinTicketView.m
View file @
33905c2c
...
...
@@ -115,8 +115,8 @@
self
.
titleBGImageView
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
4
,
2
,
_bgView
.
height
-
4
,
_bgView
.
height
-
4
)];
_titleBGImageView
.
centerY
=
_bgView
.
height
/
2
.
0
-
1
;
}
else
if
(
self
.
type
==
FUSLiveCoinTicketViewTypeHeatPower
||
self
.
type
==
FUSLiveCoinTicketViewTypeHeatRank
){
self
.
titleBGImageView
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
7
,
2
,
12
,
8
.
5
)];
_titleBGImageView
.
centerY
=
_bgView
.
height
/
2
.
0
;
//
self.titleBGImageView = [[UIImageView alloc] initWithFrame:CGRectMake(7, 2, 12, 8.5)];
//
_titleBGImageView.centerY = _bgView.height / 2.0;
}
_titleBGImageView
.
contentMode
=
UIViewContentModeScaleAspectFit
;
...
...
@@ -125,7 +125,8 @@
if
(
self
.
type
==
FUSLiveCoinTicketViewTypeCoinTicket
)
{
_titleBGImageView
.
image
=
[
UIImage
imageNamed
:
@"live_coin_bg_view"
];
}
else
if
(
self
.
type
==
FUSLiveCoinTicketViewTypeHeatPower
||
self
.
type
==
FUSLiveCoinTicketViewTypeHeatRank
)
{
_titleBGImageView
.
image
=
[
UIImage
imageNamed
:
@"live_coin_heat_bg"
];
_titleBGImageView
.
hidden
=
YES
;
// _titleBGImageView.image = [UIImage imageNamed:@"live_coin_heat_bg"];
}
}
...
...
@@ -166,6 +167,7 @@
self
.
rankLabel
=
[[
UILabel
alloc
]
initWithFrame
:
_numberView
.
frame
];
self
.
rankLabel
.
font
=
[
UIFont
fus_themeFont
:
12
];
self
.
rankLabel
.
textColor
=
UIColor
.
fus_appMainColor
;
self
.
rankLabel
.
center
=
CGPointMake
(
self
.
width
/
2
.
0
,
self
.
height
/
2
.
0
);
[
self
addSubview
:
self
.
rankLabel
];
[
_titleBGImageView
fusrtl_resetFrameToFitRTL
];
...
...
@@ -259,7 +261,8 @@
self
.
bgView
.
width
=
self
.
width
;
self
.
titleBGImageView
.
x
=
7
;
self
.
rankLabel
.
x
=
leadingSpace
+
2
;
// self.rankLabel.x = leadingSpace + 2;
self
.
rankLabel
.
center
=
CGPointMake
(
self
.
width
/
2
.
0
,
self
.
height
/
2
.
0
);
self
.
arrowImageView
.
x
=
CGRectGetMaxX
(
self
.
rankLabel
.
frame
)
+
3
;
[
_titleBGImageView
fusrtl_resetFrameToFitRTL
];
...
...
FuSiLive/Classes/NewLive/Main/View/FunctionView/Popular/ProgressView/FUSPopularProgressView.m
View file @
33905c2c
...
...
@@ -32,7 +32,7 @@
self
.
layer
.
borderColor
=
[
UIColor
whiteColor
].
CGColor
;
self
.
layer
.
borderWidth
=
0
.
5
;
CGRect
rect
=
CGRectInset
(
self
.
bounds
,
4
,
4
);
CGRect
rect
=
CGRectInset
(
self
.
bounds
,
3
,
3
);
self
.
progressBGView
=
[[
UIView
alloc
]
initWithFrame
:
rect
];
self
.
progressBGView
.
backgroundColor
=
[
UIColor
colorWithWhite
:
0
alpha
:
0
.
30
];
self
.
progressBGView
.
layer
.
cornerRadius
=
self
.
progressBGView
.
width
/
2
.
0
f
;
...
...
FuSiLive/Classes/Zone/Controller/FireFlyMyZone/FUSZoneTaskCenterViewController.m
View file @
33905c2c
...
...
@@ -21,6 +21,7 @@
#import "FUSDewAwardAnimationView.h"
#import <StoreKit/StoreKit.h>
#import "FUSSettingViewController.h"
#import "FUSGotBackpackItemAnimView.h"
#import <FirebaseAnalytics/FirebaseAnalytics.h>
...
...
@@ -118,7 +119,7 @@ static NSString *const reuseIdentifyCell = @"cell";
_segmentView
.
isEqualSpace
=
YES
;
_segmentView
.
itemFont
=
[
UIFont
fus_themeFont
:
15
];
_segmentView
.
backgroundColor
=
[
UIColor
clearColor
];
[
_segmentView
fus_setItemTitleColor
:[
UIColor
fus_
themeColor
]
forState
:
UIControlStateSelected
];
[
_segmentView
fus_setItemTitleColor
:[
UIColor
fus_
diamondBlue
]
forState
:
UIControlStateSelected
];
[
_segmentView
fus_setItemTitleColor
:[
UIColor
fus_textColorMedium
]
forState
:
UIControlStateNormal
];
[
_segmentView
fus_setUnderLineSelectedImage
:[[
UIImage
imageNamed
:
@"common_icon_segment_selected"
]
imageByTintColor
:[
UIColor
fus_themeColor
]]];
[
self
.
view
addSubview
:
_segmentView
];
...
...
@@ -436,15 +437,15 @@ static NSString *const reuseIdentifyCell = @"cell";
[
dewAnimView
addDewAwardWithAmount
:[
NSString
stringWithFormat
:
@"%ld"
,
listModel
.
award
]
textColor
:[
UIColor
fus_dewBlue
]];
[
UIApplication
.
sharedApplication
.
keyWindow
addSubview
:
dewAnimView
];
}
else
{
FUSSingleDailyCheckInView
*
awardView
=
[
FUSSingleDailyCheckInView
fus_dailyCheckInView
];
awardView
.
frame
=
UIView
.
fus_screenFrame
;
awardView
.
backgroundColor
=
[[
UIColor
blackColor
]
colorWithAlphaComponent
:
0
.
6
];
[
awardView
fus_showCheckInSucceedWithIcon
:
listModel
.
icon
desc
:
listModel
.
getTips
award
:
@
(
listModel
.
award
).
description
animated
:
NO
];
[
UIApplication
.
sharedApplication
.
keyWindow
addSubview
:
awardView
];
[
FUSGotBackpackItemAnimView
fus_showWithType
:
FUSGotBackpackItemAnimType2
icon
:
listModel
.
icon
name
:
listModel
.
getTips
goodsType
:
listModel
.
classify
isMotorHasWear
:
NO
];
//
FUSSingleDailyCheckInView *awardView = [FUSSingleDailyCheckInView fus_dailyCheckInView];
//
awardView.frame = UIView.fus_screenFrame;
//
awardView.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.6];
//
[awardView fus_showCheckInSucceedWithIcon:listModel.icon
//
desc:listModel.getTips
//
award:@(listModel.award).description
//
animated:NO];
//
[UIApplication.sharedApplication.keyWindow addSubview:awardView];
}
}
...
...
FuSiLive/Classes/Zone/View/TaskCenter/FUSGotBackpackItemAnimView.h
View file @
33905c2c
...
...
@@ -24,7 +24,7 @@ NS_ASSUME_NONNULL_BEGIN
@interface
FUSGotBackpackItemAnimView
:
UIView
+
(
void
)
f
f
_showWithType
:(
FUSGotBackpackItemAnimType
)
type
+
(
void
)
f
us
_showWithType
:(
FUSGotBackpackItemAnimType
)
type
icon
:(
NSString
*
)
iconUrl
name
:(
NSString
*
)
name
goodsType
:(
FUSGotBackpackItemGoodsType
)
goodsType
...
...
FuSiLive/Classes/Zone/View/TaskCenter/FUSGotBackpackItemAnimView.m
View file @
33905c2c
...
...
@@ -53,7 +53,7 @@
@implementation
FUSGotBackpackItemAnimView
+
(
void
)
f
f
_showWithType
:(
FUSGotBackpackItemAnimType
)
type
+
(
void
)
f
us
_showWithType
:(
FUSGotBackpackItemAnimType
)
type
icon
:(
NSString
*
)
iconUrl
name
:(
NSString
*
)
name
goodsType
:(
FUSGotBackpackItemGoodsType
)
goodsType
...
...
@@ -92,7 +92,7 @@
__weak
typeof
(
self
)
weakSelf
=
self
;
[
self
.
iconImageView
setWebImageWithSubURLString
:
iconUrl
placeholder
:
nil
completion
:^
(
UIImage
*
_Nullable
image
,
NSURL
*
_Nonnull
url
,
YYWebImageFromType
from
,
YYWebImageStage
stage
,
NSError
*
_Nullable
error
)
{
if
(
image
)
{
[
weakSelf
f
f
_showImageAnim
:
image
];
[
weakSelf
f
us
_showImageAnim
:
image
];
}
else
{
[
weakSelf
removeFromSuperview
];
}
...
...
@@ -101,7 +101,7 @@
return
self
;
}
-
(
void
)
f
f
_showImageAnim
:(
UIImage
*
)
image
{
-
(
void
)
f
us
_showImageAnim
:(
UIImage
*
)
image
{
self
.
backgroundColor
=
[
UIColor
colorWithWhite
:
0
alpha
:
0
.
6
];
if
(
self
.
goodsType
==
FUSGotBackpackItemGoodsTypeGift
)
{
...
...
@@ -168,7 +168,7 @@
self
.
nameContentView
.
centerX
=
self
.
iconImageView
.
centerX
;
self
.
hidden
=
NO
;
// FUSBackpackButton *backpackButton = [FUSBackpackButton f
f
_showBackpackButton];
// FUSBackpackButton *backpackButton = [FUSBackpackButton f
us
_showBackpackButton];
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
duration
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
...
...
@@ -186,21 +186,23 @@
}
// self.backpackButton = backpackButton;
// [self ff_showMovingToBackpackBtn:backpackButton
];
[
self
fus_showMoving
/*ToBackpackBtn:backpackButton*/
];
});
}
//- (void)ff_showMovingToBackpackBtn:(FUSBackpackButton *)backpackButton
{
//
-
(
void
)
fus_showMoving
/*ToBackpackBtn:(FUSBackpackButton *)backpackButton*/
{
// CGFloat popDutation = 0;
// CGFloat moveDutation = 0.4;
//
// [UIView animateWithDuration:moveDutation animations:^{
// self.nameContentView.alpha = 0;
// self.nameContentView.transform = CGAffineTransformScale(CGAffineTransformIdentity, 0.1, 0.1);
//
// }];
//
CGFloat
moveDutation
=
0
.
4
;
[
UIView
animateWithDuration
:
moveDutation
animations
:
^
{
self
/*.nameContentView*/
.
alpha
=
0
;
// self/*.nameContentView*/.transform = CGAffineTransformScale(CGAffineTransformIdentity, 0.1, 0.1);
}
completion
:^
(
BOOL
finished
)
{
[
self
removeFromSuperview
];
}];
//
// CAAnimationGroup *moveOutAnimGroup = [CAAnimationGroup animation];
// moveOutAnimGroup.delegate = (id)[YYWeakProxy proxyWithTarget:self];
// moveOutAnimGroup.removedOnCompletion = NO;
...
...
@@ -208,12 +210,6 @@
// moveOutAnimGroup.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseIn];
// moveOutAnimGroup.fillMode = kCAFillModeForwards;
//
//// CAKeyframeAnimation *popScaleAnimation = [CAKeyframeAnimation animationWithKeyPath:@"transform.scale"];
//// popScaleAnimation.values = @[@1,@1.3,@1];
//// popScaleAnimation.keyTimes = @[@0,@0.6,@1];
//// popScaleAnimation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseIn];
//// popScaleAnimation.duration = popDutation;
////
// CAKeyframeAnimation *moveOutScaleAnimation = [CAKeyframeAnimation animationWithKeyPath:@"transform.scale"];
// moveOutScaleAnimation.values = @[@1,@0.7,@0];//@[@1,@0.8,@0.6,@0.4,@0.1];
// moveOutScaleAnimation.keyTimes = @[@0,@0.6,@1];//@[@0,@0.2,@0.4,@0.6,@1];
...
...
@@ -230,10 +226,10 @@
//
// moveOutAnimGroup.animations = @[moveOutScaleAnimation,positionAnimation];
// [self.iconImageView.layer addAnimation:moveOutAnimGroup forKey:@"FUSGotBackpackMoveOutAnim"];
//
}
//
}
//- (void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag {
// [self.backpackButton f
f
_startRemoveCountDown];
// [self.backpackButton f
us
_startRemoveCountDown];
// [self removeFromSuperview];
//}
...
...
FuSiLive/Classes/Zone/View/TaskCenter/FUSTaskCenterHeaderSimpleTableViewCell.xib
View file @
33905c2c
...
...
@@ -3,7 +3,7 @@
<device
id=
"retina4_7"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"2268
4
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"2268
5
"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
...
...
@@ -20,23 +20,14 @@
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"新手任务"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"FWv-iM-weK"
>
<rect
key=
"frame"
x=
"20"
y=
"12"
width=
"69.5"
height=
"20.5"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"17"
/>
<color
key=
"textColor"
white=
"
1
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<color
key=
"textColor"
white=
"
0.0
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<nil
key=
"highlightedColor"
/>
</label>
<view
alpha=
"0.20000000000000001"
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"UsE-jb-O0d"
>
<rect
key=
"frame"
x=
"20"
y=
"43"
width=
"290"
height=
"1"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"w75-bY-ocO"
/>
</constraints>
</view>
</subviews>
<color
key=
"backgroundColor"
red=
"0.96470588235294119"
green=
"0.96470588235294119"
blue=
"0.96470588235294119"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<constraints>
<constraint
firstAttribute=
"bottom"
secondItem=
"UsE-jb-O0d"
secondAttribute=
"bottom"
id=
"18a-pr-Vks"
/>
<constraint
firstItem=
"FWv-iM-weK"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"20"
id=
"7Rs-i0-11Y"
/>
<constraint
firstItem=
"FWv-iM-weK"
firstAttribute=
"centerY"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"centerY"
id=
"JSX-Eq-4Yk"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"UsE-jb-O0d"
secondAttribute=
"trailing"
constant=
"10"
id=
"Otw-ch-aU3"
/>
<constraint
firstItem=
"UsE-jb-O0d"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"20"
id=
"Zda-Np-xrd"
/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide
key=
"safeArea"
id=
"aW0-zy-SZf"
/>
...
...
FuSiLive/Classes/Zone/View/TaskCenter/FUSTaskCenterListTableViewCell.h
View file @
33905c2c
...
...
@@ -15,6 +15,7 @@ typedef void(^OperationTaskListBlock)(FUSTaskCenterListModel *model,UIButton *se
@property
(
nonatomic
,
strong
)
FUSTaskCenterListModel
*
listModel
;
@property
(
nonatomic
,
copy
)
OperationTaskListBlock
operationTaskListBlock
;
@property
(
strong
,
nonatomic
)
IBOutlet
UIView
*
liveView
;
@end
...
...
FuSiLive/Classes/Zone/View/TaskCenter/FUSTaskCenterListTableViewCell.m
View file @
33905c2c
...
...
@@ -65,8 +65,8 @@
weakSelf
.
imageWidthConstraint
.
constant
=
16
;
}
}];
self
.
awardLabel
.
textColor
=
[
UIColor
fus_
textColorLight
];
self
.
addlabel
.
textColor
=
[
UIColor
fus_
textColorLight
];
self
.
awardLabel
.
textColor
=
[
UIColor
fus_
diamondBlue
];
self
.
addlabel
.
textColor
=
[
UIColor
fus_
diamondBlue
];
}
if
([
NSString
isNullWithString
:
listModel
.
tagValue
])
{
...
...
FuSiLive/Classes/Zone/View/TaskCenter/FUSTaskCenterListTableViewCell.xib
View file @
33905c2c
...
...
@@ -63,7 +63,7 @@
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"--"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
numberOfLines=
"2"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"iwt-SR-z91"
>
<rect
key=
"frame"
x=
"20"
y=
"40"
width=
"200"
height=
"16"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
red=
"0.
41960784313725491"
green=
"0.45490196078431372"
blue=
"0.5019607843137254
8"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<color
key=
"textColor"
red=
"0.
59999999999999998"
green=
"0.59999999999999998"
blue=
"0.5999999999999999
8"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"新手大礼包"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
numberOfLines=
"2"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"oRB-IO-xec"
>
...
...
@@ -72,7 +72,7 @@
<constraint
firstAttribute=
"width"
relation=
"greaterThanOrEqual"
priority=
"750"
constant=
"10"
id=
"QrD-mc-JjG"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
red=
"
1"
green=
"1"
blue=
"
1"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<color
key=
"textColor"
red=
"
0.15686274509803921"
green=
"0.15686274509803921"
blue=
"0.1568627450980392
1"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Label"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
numberOfLines=
"2"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"vuj-9P-CdU"
>
...
...
@@ -113,6 +113,7 @@
<outlet
property=
"detailLabel"
destination=
"iwt-SR-z91"
id=
"kdA-bg-PZD"
/>
<outlet
property=
"expTimeLabel"
destination=
"vuj-9P-CdU"
id=
"LUp-Pj-033"
/>
<outlet
property=
"imageWidthConstraint"
destination=
"R4K-BJ-QMZ"
id=
"K4Z-8f-lu3"
/>
<outlet
property=
"liveView"
destination=
"23y-Os-R55"
id=
"sjS-wN-lIL"
/>
<outlet
property=
"operationBtn"
destination=
"VBv-Bq-UZB"
id=
"0RD-iD-3Hb"
/>
<outlet
property=
"taskNameLabel"
destination=
"oRB-IO-xec"
id=
"szN-TL-KfO"
/>
</connections>
...
...
FuSiLive/Classes/Zone/View/TaskCenter/FUSTaskCenterProcessTableViewCell.h
View file @
33905c2c
...
...
@@ -15,6 +15,9 @@ typedef void(^OperationTaskProcessBlock)(FUSTaskCenterListModel *model,UIButton
@property
(
nonatomic
,
assign
)
NSInteger
anchorType
;
@property
(
nonatomic
,
strong
)
FUSTaskCenterListModel
*
listModel
;
@property
(
nonatomic
,
copy
)
OperationTaskProcessBlock
operationTaskProcessBlock
;
@property
(
strong
,
nonatomic
)
IBOutlet
UIView
*
lineView
;
@end
NS_ASSUME_NONNULL_END
FuSiLive/Classes/Zone/View/TaskCenter/FUSTaskCenterProcessTableViewCell.m
View file @
33905c2c
...
...
@@ -100,8 +100,8 @@
if
(
!
[
NSString
isNullWithString
:
listModel
.
tagValue
])
{
self
.
awardLabel
.
text
=
listModel
.
tagValue
;
self
.
awardLabel
.
textColor
=
[
UIColor
fus_
textColorLight
];
self
.
addLabel
.
textColor
=
[
UIColor
fus_
textColorLight
];
self
.
awardLabel
.
textColor
=
[
UIColor
fus_
diamondBlue
];
self
.
addLabel
.
textColor
=
[
UIColor
fus_
diamondBlue
];
}
}
...
...
FuSiLive/Classes/Zone/View/TaskCenter/FUSTaskCenterProcessTableViewCell.xib
View file @
33905c2c
...
...
@@ -49,13 +49,13 @@
<constraint
firstAttribute=
"width"
relation=
"greaterThanOrEqual"
priority=
"250"
constant=
"27.5"
id=
"OZm-fY-Bat"
/>
</constraints>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"15"
/>
<color
key=
"textColor"
red=
"
1"
green=
"1"
blue=
"
1"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<color
key=
"textColor"
red=
"
0.15686274509803921"
green=
"0.15686274509803921"
blue=
"0.1568627450980392
1"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"------"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
numberOfLines=
"2"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"8v6-UE-dIy"
>
<rect
key=
"frame"
x=
"20"
y=
"36"
width=
"230"
height=
"14.5"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"12"
/>
<color
key=
"textColor"
red=
"0.
41960784313725491"
green=
"0.45490196078431372"
blue=
"0.5019607843137254
8"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<color
key=
"textColor"
red=
"0.
59999999999999998"
green=
"0.59999999999999998"
blue=
"0.5999999999999999
8"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"RbH-RC-F8l"
customClass=
"FUSStyleButton"
>
...
...
@@ -128,6 +128,7 @@
<outlet
property=
"btnConstrant"
destination=
"ZlU-VB-AeZ"
id=
"MWo-Ga-fxv"
/>
<outlet
property=
"detailLabel"
destination=
"8v6-UE-dIy"
id=
"tNE-Re-0Zj"
/>
<outlet
property=
"imageWidthConstraint"
destination=
"ogJ-Ij-RNm"
id=
"Ybs-7c-I53"
/>
<outlet
property=
"lineView"
destination=
"qPl-w4-kgo"
id=
"iGu-xX-upi"
/>
<outlet
property=
"operationBtn"
destination=
"RbH-RC-F8l"
id=
"wtc-x8-Amr"
/>
<outlet
property=
"taskProcessLabel"
destination=
"EyC-iH-DvF"
id=
"s5u-4V-YfW"
/>
<outlet
property=
"taskTitleLabel"
destination=
"bfp-Ws-YBS"
id=
"lUa-EV-zX5"
/>
...
...
FuSiLive/Classes/Zone/View/TaskCenter/FUSTaskCenterTableViewCell.m
View file @
33905c2c
...
...
@@ -206,6 +206,7 @@ static NSString *const reuseIdentifyNoTaskCell = @"FUSMissionCenterNoTaskCell";
weakSelf
.
operationTaskBlock
(
model
,
sender
,
weakSelf
.
currentModel
);
}
};
listCell
.
liveView
.
hidden
=
(
indexPath
.
row
==
weakSelf
.
currentModel
.
tasklist
.
count
);
return
listCell
;
}
else
if
(
listModel
.
type
==
2
)
{
FUSTaskCenterTextTableViewCell
*
textCell
=
[
tableView
dequeueReusableCellWithIdentifier
:
reuseIdentifyTextCell
forIndexPath
:
indexPath
];
...
...
@@ -229,6 +230,7 @@ static NSString *const reuseIdentifyNoTaskCell = @"FUSMissionCenterNoTaskCell";
weakSelf
.
operationTaskBlock
(
model
,
sender
,
weakSelf
.
currentModel
);
}
};
processCell
.
lineView
.
hidden
=
(
indexPath
.
row
==
weakSelf
.
currentModel
.
tasklist
.
count
);
return
processCell
;
}
else
{
FUSTaskCenterListTableViewCell
*
listCell
=
[
tableView
dequeueReusableCellWithIdentifier
:
reuseIdentifyListCell
forIndexPath
:
indexPath
];
...
...
@@ -240,6 +242,7 @@ static NSString *const reuseIdentifyNoTaskCell = @"FUSMissionCenterNoTaskCell";
weakSelf
.
operationTaskBlock
(
model
,
sender
,
weakSelf
.
currentModel
);
}
};
listCell
.
liveView
.
hidden
=
(
indexPath
.
row
==
weakSelf
.
currentModel
.
tasklist
.
count
);
return
listCell
;
}
}
...
...
FuSiLive/Classes/Zone/View/TaskCenter/FUSTaskCenterTableViewCell.xib
View file @
33905c2c
...
...
@@ -3,7 +3,7 @@
<device
id=
"retina4_7"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"2268
4
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"2268
5
"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
...
...
@@ -18,22 +18,22 @@
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"LWc-0B-lGP"
>
<rect
key=
"frame"
x=
"10"
y=
"
10"
width=
"300"
height=
"9
8"
/>
<rect
key=
"frame"
x=
"10"
y=
"
0.0"
width=
"300"
height=
"10
8"
/>
</imageView>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"eGI-j1-i70"
>
<rect
key=
"frame"
x=
"10"
y=
"
10"
width=
"300"
height=
"9
8"
/>
<rect
key=
"frame"
x=
"10"
y=
"
0.0"
width=
"300"
height=
"10
8"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</tableView>
</subviews>
<constraints>
<constraint
firstAttribute=
"trailing"
secondItem=
"eGI-j1-i70"
secondAttribute=
"trailing"
constant=
"10"
id=
"3Nl-2s-hKt"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"LWc-0B-lGP"
secondAttribute=
"trailing"
constant=
"10"
id=
"7vT-Be-1pg"
/>
<constraint
firstItem=
"LWc-0B-lGP"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
constant=
"10"
id=
"IUt-c0-jUI"
/>
<constraint
firstItem=
"LWc-0B-lGP"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
id=
"IUt-c0-jUI"
/>
<constraint
firstItem=
"LWc-0B-lGP"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"10"
id=
"SA1-dz-kuL"
/>
<constraint
firstItem=
"eGI-j1-i70"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"10"
id=
"TNL-8c-JqK"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"eGI-j1-i70"
secondAttribute=
"bottom"
id=
"XfK-5w-fBj"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"LWc-0B-lGP"
secondAttribute=
"bottom"
id=
"ds1-9h-g16"
/>
<constraint
firstItem=
"eGI-j1-i70"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
constant=
"10"
id=
"gIM-HN-b8o"
/>
<constraint
firstItem=
"eGI-j1-i70"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
id=
"gIM-HN-b8o"
/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide
key=
"safeArea"
id=
"aW0-zy-SZf"
/>
...
...
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