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
a0440a61
authored
Jun 24, 2024
by
ludi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
备份一下,完成我的头部修改,搜索润色
parent
ac847042
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
215 additions
and
87 deletions
DevelopmentPods/FUSFoundation/FUSFoundation/Classes/FUSFoundation/Views/FUSLoadingIndicator.swift
DevelopmentPods/FUSFoundation/FUSFoundation/Classes/FuSiTheme/Theme/UIFont+FUSTheme.h
DevelopmentPods/FUSFoundation/FUSFoundation/Classes/FuSiTheme/Theme/UIFont+FUSTheme.m
FuSiLive.xcodeproj/project.pbxproj
FuSiLive/AppDelegate.m
FuSiLive/Classes/FusiVersionFeature/ViewController/HomePage/View/FUSMyHeaderView.m
FuSiLive/Classes/FusiVersionFeature/ViewController/HomePage/View/FUSMyView.m
FuSiLive/Classes/NewLive/Main/View/FunctionView/ShareToChat/FUSLiveShareToChatView.m
FuSiLive/Classes/NewsFeed/RichEditor/Controller/WGBaseRichEditorViewController.m
FuSiLive/Classes/Search/Controller/FUSSearchViewController.swift
FuSiLive/Classes/Search/Controller/FUSSearchViewController.xib
FuSiLive/Classes/Search/Model/FUSMainSearchModel.h
FuSiLive/Classes/Search/View/FUSMainSearchTableViewCell.m
FuSiLive/Classes/Search/View/FUSSearchTableViewCell.swift
FuSiLive/Info.plist
FuSiLive/Resources/Font/FZCustom01.ttf
DevelopmentPods/FUSFoundation/FUSFoundation/Classes/FUSFoundation/Views/FUSLoadingIndicator.swift
0 → 100644
View file @
a0440a61
//
// FUSLoadingIndicator.swift
// LudyUITestDemo
//
// Created by aaa on 2023/11/15.
//
import
UIKit
@objcMembers
public
class
FUSLoadingIndicator
:
UIView
{
static
let
shared
=
FUSLoadingIndicator
()
private
let
containerView
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
UIColor
(
white
:
0
,
alpha
:
0
)
return
view
}()
private
var
isAnimating
=
false
private
let
animationImageView
:
UIImageView
=
{
let
imageView
=
UIImageView
()
imageView
.
contentMode
=
.
scaleAspectFit
return
imageView
}()
private
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
commonInit
()
}
required
init
?(
coder
aDecoder
:
NSCoder
)
{
super
.
init
(
coder
:
aDecoder
)
commonInit
()
}
private
func
commonInit
()
{
addSubview
(
containerView
)
containerView
.
addSubview
(
animationImageView
)
setupConstraints
()
setupAnimation
()
}
private
func
setupConstraints
()
{
containerView
.
translatesAutoresizingMaskIntoConstraints
=
false
animationImageView
.
translatesAutoresizingMaskIntoConstraints
=
false
NSLayoutConstraint
.
activate
([
containerView
.
centerXAnchor
.
constraint
(
equalTo
:
centerXAnchor
),
containerView
.
centerYAnchor
.
constraint
(
equalTo
:
centerYAnchor
),
containerView
.
widthAnchor
.
constraint
(
equalToConstant
:
50
),
containerView
.
heightAnchor
.
constraint
(
equalToConstant
:
50
),
animationImageView
.
centerXAnchor
.
constraint
(
equalTo
:
containerView
.
centerXAnchor
),
animationImageView
.
centerYAnchor
.
constraint
(
equalTo
:
containerView
.
centerYAnchor
),
// animationImageView.widthAnchor.constraint(equalToConstant: 50),
// animationImageView.heightAnchor.constraint(equalToConstant: 50)
])
}
private
func
setupAnimation
()
{
var
images
:
[
UIImage
]
=
[]
for
i
in
1
...
39
{
if
let
image
=
UIImage
(
named
:
"FFLoadingIndicator_v1_
\(
String
(
format
:
"%02d"
,
i
)
)
"
)
{
images
.
append
(
image
)
}
}
animationImageView
.
animationImages
=
images
animationImageView
.
animationDuration
=
1.2
animationImageView
.
animationRepeatCount
=
0
// 0 means repeat indefinitely
}
static
public
func
fus_show
(
canTouch
:
Bool
)
{
if
shared
.
isAnimating
{
return
}
DispatchQueue
.
main
.
async
{
guard
let
keyWindow
=
FUSLoadingIndicator
.
fus_findKeyWindow
()
else
{
return
}
shared
.
isAnimating
=
true
shared
.
frame
=
keyWindow
.
bounds
shared
.
isUserInteractionEnabled
=
!
canTouch
keyWindow
.
addSubview
(
shared
)
shared
.
animationImageView
.
startAnimating
()
}
}
static
func
fus_findKeyWindow
()
->
UIWindow
?
{
if
#available(iOS 13.0, *)
{
if
let
windowScene
=
UIApplication
.
shared
.
connectedScenes
.
first
as?
UIWindowScene
{
return
windowScene
.
windows
.
first
(
where
:
{
$0
.
isKeyWindow
})
}
else
{
return
nil
}
}
else
{
return
UIApplication
.
shared
.
keyWindow
}
}
static
public
func
fus_dismiss
()
{
DispatchQueue
.
main
.
async
{
shared
.
isAnimating
=
false
shared
.
animationImageView
.
stopAnimating
()
shared
.
removeFromSuperview
()
}
}
}
DevelopmentPods/FUSFoundation/FUSFoundation/Classes/FuSiTheme/Theme/UIFont+FUSTheme.h
View file @
a0440a61
...
...
@@ -13,5 +13,6 @@
+
(
UIFont
*
)
fus_themeFont
:(
CGFloat
)
fontSize
;
+
(
UIFont
*
)
fus_themeMediumFont
:(
CGFloat
)
fontSize
;
+
(
UIFont
*
)
fus_themeBoldFont
:(
CGFloat
)
fontSize
;
+
(
UIFont
*
)
fus_custom1ItalicFont
:(
CGFloat
)
fontSize
;
@end
DevelopmentPods/FUSFoundation/FUSFoundation/Classes/FuSiTheme/Theme/UIFont+FUSTheme.m
View file @
a0440a61
...
...
@@ -26,4 +26,14 @@
return
font
?:
[
UIFont
systemFontOfSize
:
fontSize
];
}
+
(
UIFont
*
)
fus_custom1ItalicFont
:(
CGFloat
)
fontSize
{
UIFont
*
font
=
[
UIFont
fontWithName
:
@"Geometric706BT-BlackCondensedB"
size
:
fontSize
];
if
(
font
)
{
return
font
;
}
else
{
return
[
UIFont
systemFontOfSize
:
fontSize
];;
}
return
font
?:
[
UIFont
systemFontOfSize
:
fontSize
];
}
@end
FuSiLive.xcodeproj/project.pbxproj
View file @
a0440a61
...
...
@@ -7,6 +7,7 @@
objects
=
{
/* Begin PBXBuildFile section */
008FEC472C296CBC00B1AF13
/* FZCustom01.ttf in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
008FEC462C296CB700B1AF13
/* FZCustom01.ttf */
;
};
00A0C5602C2676010044A41D
/* FUSLoginViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
00A0C5542C2675FE0044A41D
/* FUSLoginViewController.xib */
;
};
00A0C5612C2676010044A41D
/* FUSForgetPasswordViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
00A0C5552C2675FE0044A41D
/* FUSForgetPasswordViewController.m */
;
};
00A0C5622C2676010044A41D
/* FUSMessageRegisterViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
00A0C5572C2675FF0044A41D
/* FUSMessageRegisterViewController.m */
;
};
...
...
@@ -1398,6 +1399,7 @@
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
008FEC462C296CB700B1AF13
/* FZCustom01.ttf */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file
;
path
=
FZCustom01.ttf
;
sourceTree
=
"<group>"
;
};
00A0C5542C2675FE0044A41D
/* FUSLoginViewController.xib */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
file.xib
;
path
=
FUSLoginViewController.xib
;
sourceTree
=
"<group>"
;
};
00A0C5552C2675FE0044A41D
/* FUSForgetPasswordViewController.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
FUSForgetPasswordViewController.m
;
sourceTree
=
"<group>"
;
};
00A0C5562C2675FE0044A41D
/* FUSForgetPasswordViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
FUSForgetPasswordViewController.h
;
sourceTree
=
"<group>"
;
};
...
...
@@ -8385,6 +8387,7 @@
BEDC65D32C09DAE700505F76
/* Font */
=
{
isa
=
PBXGroup
;
children
=
(
008FEC462C296CB700B1AF13
/* FZCustom01.ttf */
,
BEDC65D22C09DAE700505F76
/* FZLanTingHei-B-GBK.ttf */
,
);
path
=
Font
;
...
...
@@ -8798,6 +8801,7 @@
BEDC6ECB2C09DAE800505F76
/* img_2.png in Resources */
,
BED0FBBE2C0C49CA0017B285
/* FUSSelectImageCollectionViewCell.xib in Resources */
,
BEDC6F292C09DAE900505F76
/* live_head_follow_btn_anim_0@2x.png in Resources */
,
008FEC472C296CBC00B1AF13
/* FZCustom01.ttf in Resources */
,
BEDC6F3F2C09DAE900505F76
/* 4_live_first_recharge_package_detail_placeholder.png in Resources */
,
BEDC6EE12C09DAE800505F76
/* dew_sky_award.json in Resources */
,
BED0F9A02C0C49C90017B285
/* FUSVideoChatSetItem.xib in Resources */
,
...
...
FuSiLive/AppDelegate.m
View file @
a0440a61
...
...
@@ -703,6 +703,20 @@ static dispatch_queue_t get_status_queue() {
// [Bugly startWithAppId:@"9356424af8" config:config];
}
-
(
void
)
registerFont
:
(
NSString
*
)
fontName
{
NSURL
*
fontURL
=
[[
NSBundle
mainBundle
]
URLForResource
:
fontName
withExtension
:
@"ttf"
];
NSData
*
fontData
=
[
NSData
dataWithContentsOfURL
:
fontURL
];
CGDataProviderRef
provider
=
CGDataProviderCreateWithCFData
((
__bridge
CFDataRef
)
fontData
);
CGFontRef
font
=
CGFontCreateWithDataProvider
(
provider
);
CFErrorRef
error
=
NULL
;
CTFontManagerRegisterGraphicsFont
(
font
,
&
error
);
if
(
error
)
{
CFRelease
(
error
);
}
CFRelease
(
font
);
CFRelease
(
provider
);
}
-
(
NSString
*
)
modeString
{
#if DEBUG
...
...
FuSiLive/Classes/FusiVersionFeature/ViewController/HomePage/View/FUSMyHeaderView.m
View file @
a0440a61
...
...
@@ -14,7 +14,6 @@
@property
(
nonatomic
,
strong
)
UIButton
*
avatorBtn
;
@property
(
nonatomic
,
strong
)
UILabel
*
nickNameLabel
;
//@property (nonatomic, strong) UILabel *vipMarkLabel;
@property
(
nonatomic
,
strong
)
UIImageView
*
vipMarkImgView
;
@property
(
nonatomic
,
strong
)
UILabel
*
levelLabel
;
@property
(
nonatomic
,
strong
)
UIButton
*
ageBtn
;
...
...
@@ -86,72 +85,34 @@
make
.
left
.
top
.
bottom
.
equalTo
(
nickNameBgView
);
}];
// self.vipMarkLabel = [[UILabel alloc] init];
// self.vipMarkLabel.font = [UIFont fus_themeBoldFont:9];
// self.vipMarkLabel.textColor = [UIColor fus_textColorRich];
// self.vipMarkLabel.text = @"V";
// self.vipMarkLabel.textAlignment = NSTextAlignmentCenter;
// self.vipMarkLabel.layer.cornerRadius = 14 / 2.0f;
// self.vipMarkLabel.layer.masksToBounds = YES;
// self.vipMarkLabel.backgroundColor = [UIColor fus_diamondBlue];
// [nickNameBgView addSubview:self.vipMarkLabel];
// [self.vipMarkLabel mas_makeConstraints:^(MASConstraintMaker *make) {
// make.right.equalTo(nickNameBgView);
// make.centerY.equalTo(nickNameBgView.mas_centerY);
// make.left.equalTo(self.nickNameLabel.mas_right).offset(6);
// make.size.mas_equalTo(CGSizeMake(14, 14));
// }];
self
.
vipMarkImgView
=
[[
UIImageView
alloc
]
init
];
self
.
vipMarkImgView
.
contentMode
=
UIViewContentModeScaleAspectFit
;
[
nickNameBgView
addSubview
:
self
.
vipMarkImgView
];
[
self
.
vipMarkImgView
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
right
.
equalTo
(
nickNameBgView
);
make
.
centerY
.
equalTo
(
nickNameBgView
.
mas_centerY
);
make
.
left
.
equalTo
(
self
.
nickNameLabel
.
mas_right
).
offset
(
6
);
// make.size.mas_equalTo(CGSizeMake(14, 14));
make
.
height
.
offset
(
16
);
}];
UIButton
*
sexBlankBgView
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
[
topBgView
addSubview
:
sexBlankBgView
];
[
sexBlankBgView
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
top
.
equalTo
(
nickNameBgView
.
mas_bottom
).
offset
(
4
);
make
.
centerX
.
equalTo
(
topBgView
);
make
.
height
.
offset
(
18
);
}];
self
.
levelLabel
=
[[
UILabel
alloc
]
init
];
self
.
levelLabel
.
font
=
[
UIFont
fus_themeFont
:
1
3
];
self
.
levelLabel
.
font
=
[
UIFont
fus_themeFont
:
1
0
];
self
.
levelLabel
.
textColor
=
[
UIColor
whiteColor
];
self
.
levelLabel
.
backgroundColor
=
[
UIColor
colorWithHex
:
@"#87878A"
alpha
:
0
.
32
];
self
.
levelLabel
.
layer
.
cornerRadius
=
1
8
/
2
.
0
f
;
self
.
levelLabel
.
layer
.
cornerRadius
=
1
4
/
2
.
0
f
;
self
.
levelLabel
.
layer
.
masksToBounds
=
YES
;
[
sexBlank
BgView
addSubview
:
self
.
levelLabel
];
[
nickName
BgView
addSubview
:
self
.
levelLabel
];
[
self
.
levelLabel
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
top
.
bottom
.
offset
(
0
);
make
.
height
.
offset
(
14
);
make
.
left
.
equalTo
(
self
.
nickNameLabel
.
mas_right
).
offset
(
6
);
make
.
centerY
.
equalTo
(
nickNameBgView
.
mas_centerY
);
}];
self
.
ageBtn
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
self
.
ageBtn
.
titleLabel
.
font
=
[
UIFont
fus_themeFont
:
12
];
[
self
.
ageBtn
setTitleColor
:[
UIColor
colorWithHex
:
@"#76C4FF"
]
forState
:
UIControlStateNormal
];
[
self
.
ageBtn
setTitleColor
:[
UIColor
colorWithHex
:
@"#FE96B0"
]
forState
:
UIControlStateSelected
];
[
self
.
ageBtn
setImage
:[
UIImage
imageNamed
:
@"fus_common_sex_male_icon"
]
forState
:
UIControlStateNormal
];
[
self
.
ageBtn
setImage
:[
UIImage
imageNamed
:
@"fus_common_sex_female_icon"
]
forState
:
UIControlStateSelected
];
self
.
ageBtn
.
layer
.
cornerRadius
=
18
/
2
.
0
f
;
self
.
ageBtn
.
layer
.
borderWidth
=
1
;
self
.
ageBtn
.
layer
.
borderColor
=
[
UIColor
colorWithHex
:
@"#87878A"
alpha
:
0
.
32
].
CGColor
;
[
sexBlankBgView
addSubview
:
self
.
ageBtn
];
[
self
.
ageBtn
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
top
.
right
.
bottom
.
offset
(
0
);
self
.
vipMarkImgView
=
[[
UIImageView
alloc
]
init
];
self
.
vipMarkImgView
.
contentMode
=
UIViewContentModeScaleAspectFit
;
[
nickNameBgView
addSubview
:
self
.
vipMarkImgView
];
[
self
.
vipMarkImgView
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
right
.
equalTo
(
nickNameBgView
);
make
.
centerY
.
equalTo
(
nickNameBgView
.
mas_centerY
);
make
.
left
.
equalTo
(
self
.
levelLabel
.
mas_right
).
offset
(
6
);
make
.
width
.
offset
(
40
);
make
.
size
.
mas_equalTo
(
CGSizeMake
(
14
,
14
));
// make.height.offset(16);
}];
UIButton
*
copyBgBtn
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
[
topBgView
addSubview
:
copyBgBtn
];
[
copyBgBtn
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
top
.
equalTo
(
sexBlank
BgView
.
mas_bottom
).
offset
(
0
);
make
.
top
.
equalTo
(
nickName
BgView
.
mas_bottom
).
offset
(
0
);
make
.
height
.
offset
(
34
);
make
.
centerX
.
equalTo
(
topBgView
.
mas_centerX
);
}];
...
...
@@ -165,14 +126,32 @@
make
.
centerY
.
equalTo
(
copyBgBtn
.
mas_centerY
);
}];
UIImageView
*
copyImgView
=
[[
UIImageView
alloc
]
initWithImage
:[
UIImage
imageNamed
:
@"fus_my_setting_header_copy_icon"
]];
[
copyBgBtn
addSubview
:
copyImgView
];
[
copyImgView
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
right
.
equalTo
(
copyBgBtn
.
mas_right
).
offset
(
-
10
);
make
.
centerY
.
equalTo
(
copyBgBtn
.
mas_centerY
);
make
.
left
.
equalTo
(
self
.
idLabel
.
mas_right
).
offset
(
4
);
self
.
ageBtn
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
self
.
ageBtn
.
titleLabel
.
font
=
[
UIFont
fus_themeFont
:
12
];
[
self
.
ageBtn
setTitleColor
:[
UIColor
colorWithHex
:
@"#76C4FF"
]
forState
:
UIControlStateNormal
];
[
self
.
ageBtn
setTitleColor
:[
UIColor
colorWithHex
:
@"#FE96B0"
]
forState
:
UIControlStateSelected
];
[
self
.
ageBtn
setImage
:[
UIImage
imageNamed
:
@"fus_common_sex_male_icon"
]
forState
:
UIControlStateNormal
];
[
self
.
ageBtn
setImage
:[
UIImage
imageNamed
:
@"fus_common_sex_female_icon"
]
forState
:
UIControlStateSelected
];
self
.
ageBtn
.
layer
.
cornerRadius
=
18
/
2
.
0
f
;
self
.
ageBtn
.
layer
.
borderWidth
=
1
;
self
.
ageBtn
.
layer
.
borderColor
=
[
UIColor
colorWithHex
:
@"#87878A"
alpha
:
0
.
32
].
CGColor
;
[
copyBgBtn
addSubview
:
self
.
ageBtn
];
[
self
.
ageBtn
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
right
.
offset
(
0
);
make
.
left
.
equalTo
(
self
.
idLabel
.
mas_right
).
offset
(
6
);
make
.
width
.
offset
(
40
);
make
.
height
.
offset
(
18
);
make
.
centerY
.
equalTo
(
self
.
idLabel
.
mas_centerY
);
}];
// UIImageView *copyImgView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"fus_my_setting_header_copy_icon"]];
// [copyBgBtn addSubview:copyImgView];
// [copyImgView mas_makeConstraints:^(MASConstraintMaker *make) {
// make.right.equalTo(copyBgBtn.mas_right).offset(-10);
// make.centerY.equalTo(copyBgBtn.mas_centerY);
// make.left.equalTo(self.idLabel.mas_right).offset(4);
// }];
UIImageView
*
topBottomBgImageView
=
[[
UIImageView
alloc
]
initWithImage
:[
UIImage
imageNamed
:
@"fus_my_setting_header_contentBottom_bg"
]];
topBottomBgImageView
.
userInteractionEnabled
=
YES
;
[
topBgView
addSubview
:
topBottomBgImageView
];
...
...
@@ -193,7 +172,8 @@
[
tempBgView
addTarget
:
self
action
:
@selector
(
fus_commondBtnDidClicked
:
)
forControlEvents
:
UIControlEventTouchUpInside
];
UILabel
*
tempNumLabel
=
labelsArray
[
i
];
tempNumLabel
.
font
=
[
UIFont
fus_themeBoldFont
:
25
];
// tempNumLabel.font = [UIFont fus_themeBoldFont:25];
tempNumLabel
.
font
=
[
UIFont
fus_custom1ItalicFont
:
25
];
tempNumLabel
.
textColor
=
[
UIColor
fus_textColorRich
];
[
tempBgView
addSubview
:
tempNumLabel
];
[
tempNumLabel
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
...
...
@@ -273,8 +253,6 @@
self
.
avatorBtn
.
tag
=
FUSMyHeaderButtonTypeMyZone
;
[
self
.
avatorBtn
addTarget
:
self
action
:
@selector
(
fus_commondBtnDidClicked
:
)
forControlEvents
:
UIControlEventTouchUpInside
];
sexBlankBgView
.
tag
=
FUSMyHeaderButtonTypeMyZone
;
[
sexBlankBgView
addTarget
:
self
action
:
@selector
(
fus_commondBtnDidClicked
:
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
copyBgBtn
addTarget
:
self
action
:
@selector
(
fus_copyBtnDidClicked
:
)
forControlEvents
:
UIControlEventTouchUpInside
];
}
...
...
@@ -301,7 +279,7 @@
NSString
*
name
=
[
NSString
isNull
:
model
.
markName
]
?
model
.
nickname
:
model
.
markName
;
self
.
nickNameLabel
.
text
=
name
;
// id
self
.
idLabel
.
text
=
[
NSString
stringWithFormat
:
@"ID: %@"
,
model
.
uid
];
self
.
idLabel
.
text
=
[
NSString
stringWithFormat
:
@"
Fusi
ID: %@"
,
model
.
uid
];
// 关注
NSString
*
focusNumberString
=
[
NSString
isNull
:
model
.
myfollow
]
?
@"0"
:
model
.
myfollow
;
self
.
followNumLabel
.
text
=
focusNumberString
;
...
...
@@ -327,7 +305,7 @@
}
// 等级
NSString
*
levelString
=
[
NSString
isNull
:
model
.
lev
]
?
@"0"
:
model
.
lev
;
self
.
levelLabel
.
text
=
[
NSString
stringWithFormat
:
@"
%@
"
,
levelString
];
self
.
levelLabel
.
text
=
[
NSString
stringWithFormat
:
@"
%@
"
,
levelString
];
//baoshi
self
.
dewNumLabel
.
text
=
[
NSString
isNull
:
model
.
chip
]
?
@"0"
:
model
.
chip
;
self
.
jewNumLabel
.
text
=
[
NSString
isNull
:
model
.
diamond
]
?
@"0"
:
model
.
diamond
;
...
...
@@ -352,7 +330,7 @@
#pragma mark --- getter and setter
+
(
CGFloat
)
fus_viewHeight
{
return
3
85
+
UIView
.
fus_SafeTop
;
return
3
60
+
UIView
.
fus_SafeTop
;
}
-
(
UILabel
*
)
intimacyNumLabel
{
...
...
FuSiLive/Classes/FusiVersionFeature/ViewController/HomePage/View/FUSMyView.m
View file @
a0440a61
...
...
@@ -45,7 +45,7 @@ typedef NS_ENUM(NSInteger, FUSMySettingItemType){
@property
(
nonatomic
,
strong
)
NSMutableArray
*
allGroups
;
@property
(
nonatomic
,
strong
)
UIView
*
naviView
;
@property
(
nonatomic
,
strong
)
UIButton
*
myzoneBtn
;
//
@property (nonatomic, strong) UIButton *myzoneBtn;
@property
(
nonatomic
,
strong
)
UIButton
*
publishBtn
;
@property
(
nonatomic
,
strong
)
FUSMyHeaderView
*
headerView
;
...
...
@@ -81,7 +81,7 @@ typedef NS_ENUM(NSInteger, FUSMySettingItemType){
}
-
(
void
)
fus_viewWillShow
{
[
self
fus_updateDataSourceWithType
:
Read
Memory
Begin
];
[
self
fus_updateDataSourceWithType
:
Read
Server
Begin
];
}
-
(
void
)
fus_createUI
{
...
...
@@ -105,23 +105,24 @@ typedef NS_ENUM(NSInteger, FUSMySettingItemType){
self
.
naviView
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
UIView
.
fus_StatusBarHeight
,
UIView
.
fus_screenW
,
UIView
.
fus_NavgationBarHeight
)];
[
self
addSubview
:
self
.
naviView
];
self
.
myzoneBtn
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
[
self
.
myzoneBtn
setImage
:[
UIImage
imageNamed
:
@"fus_my_setting_navi_zone_icon"
]
forState
:
UIControlStateNormal
];
[
self
.
naviView
addSubview
:
self
.
myzoneBtn
];
[
self
.
myzoneBtn
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
right
.
top
.
bottom
.
offset
(
0
);
make
.
width
.
equalTo
(
self
.
myzoneBtn
.
mas_height
);
}];
[
self
.
myzoneBtn
.
imageView
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
size
.
mas_offset
(
CGSizeMake
(
18
,
18
));
}];
//
self.myzoneBtn = [UIButton buttonWithType:UIButtonTypeCustom];
//
[self.myzoneBtn setImage:[UIImage imageNamed:@"fus_my_setting_navi_zone_icon"] forState:UIControlStateNormal];
//
[self.naviView addSubview:self.myzoneBtn];
//
[self.myzoneBtn mas_makeConstraints:^(MASConstraintMaker *make) {
//
make.right.top.bottom.offset(0);
//
make.width.equalTo(self.myzoneBtn.mas_height);
//
}];
//
[self.myzoneBtn.imageView mas_makeConstraints:^(MASConstraintMaker *make) {
//
make.size.mas_offset(CGSizeMake(18, 18));
//
}];
self
.
publishBtn
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
[
self
.
publishBtn
setImage
:[
UIImage
imageNamed
:
@"fus_my_setting_navi_publish_icon"
]
forState
:
UIControlStateNormal
];
[
self
.
naviView
addSubview
:
self
.
publishBtn
];
[
self
.
publishBtn
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
top
.
bottom
.
offset
(
0
);
make
.
right
.
equalTo
(
self
.
myzoneBtn
.
mas_left
);
// make.right.equalTo(self.myzoneBtn.mas_left);
make
.
right
.
offset
(
0
);
make
.
width
.
equalTo
(
self
.
publishBtn
.
mas_height
);
}];
...
...
@@ -129,7 +130,7 @@ typedef NS_ENUM(NSInteger, FUSMySettingItemType){
self
.
headerView
.
buttonDidClickedHander
=
^
(
FUSMyHeaderButtonType
type
)
{
[
weakself
fus_headerItemDidClicked
:
type
];
};
[
self
.
myzoneBtn
addTarget
:
self
action
:
@selector
(
myzoneBtnDidClicked
:
)
forControlEvents
:
UIControlEventTouchUpInside
];
//
[self.myzoneBtn addTarget:self action:@selector(myzoneBtnDidClicked:) forControlEvents:UIControlEventTouchUpInside];
[
self
.
publishBtn
addTarget
:
self
action
:
@selector
(
publishBtnDidClicked
:
)
forControlEvents
:
UIControlEventTouchUpInside
];
}
...
...
FuSiLive/Classes/NewLive/Main/View/FunctionView/ShareToChat/FUSLiveShareToChatView.m
View file @
a0440a61
...
...
@@ -270,7 +270,7 @@
FUSLiveShareToChatModel
*
userModel
=
[[
FUSLiveShareToChatModel
alloc
]
init
];
userModel
.
uid
=
model
.
uid
;
userModel
.
face
=
model
.
faceimg
;
userModel
.
nickname
=
model
.
nick
n
ame
;
userModel
.
nickname
=
model
.
nick
N
ame
;
userModel
.
level
=
model
.
level
;
userModel
.
privilege
=
model
.
privilege
;
userModel
.
selected
=
YES
;
...
...
FuSiLive/Classes/NewsFeed/RichEditor/Controller/WGBaseRichEditorViewController.m
View file @
a0440a61
...
...
@@ -769,7 +769,7 @@ WKScriptMessageHandler
searchVC
.
fromType
=
FUSSearchFromAtSomeOne
;
searchVC
.
modalPresentationStyle
=
UIModalPresentationCustom
;
searchVC
.
didSelectedModelBlock
=
^
(
FUSMainSearchModel
*
model
)
{
[
weakSelf
.
webView
insertAtSomeOneName
:
model
.
nick
n
ame
uid
:
model
.
uid
index
:
_atSomeOneArr
.
count
Callback
:^
(
id
_Nullable
obj
,
NSError
*
_Nullable
error
)
{
[
weakSelf
.
webView
insertAtSomeOneName
:
model
.
nick
N
ame
uid
:
model
.
uid
index
:
_atSomeOneArr
.
count
Callback
:^
(
id
_Nullable
obj
,
NSError
*
_Nullable
error
)
{
[
weakSelf
.
webView
contentBecomeFirstResponder
];
[
self
fus_checkInputContent
];
}];
...
...
FuSiLive/Classes/Search/Controller/FUSSearchViewController.swift
View file @
a0440a61
...
...
@@ -20,6 +20,7 @@ class FUSSearchViewController: FUSBaseViewController, UITableViewDelegate, UITab
@objc
var
searchType
=
FUSSearchVcType
.
peopleNetwork
@IBOutlet
weak
var
searchInputBgView
:
UIView
!
@IBOutlet
weak
var
searchTextField
:
UITextField
!
@IBOutlet
weak
var
cancelBtn
:
UIButton
!
@IBOutlet
weak
var
hotSearchLabel
:
UILabel
!
...
...
@@ -88,7 +89,7 @@ class FUSSearchViewController: FUSBaseViewController, UITableViewDelegate, UITab
tableView
.
delegate
=
self
tableView
.
dataSource
=
self
;
tableView
.
register
(
UINib
.
init
(
nibName
:
"FUSSearchTableViewCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"cell"
)
tableView
.
backgroundColor
=
UIColor
(
hex
:
"#11121A"
)
tableView
.
backgroundColor
=
.
fus_appBG
(
)
tableView
.
separatorStyle
=
UITableViewCell
.
SeparatorStyle
.
none
tableView
.
isAllowFatherTouch
=
true
weak
var
weakSelf
=
self
...
...
@@ -104,6 +105,7 @@ class FUSSearchViewController: FUSBaseViewController, UITableViewDelegate, UITab
refreshFooter
.
setTitle
(
FUSLocalizationHelper
.
localString
(
"没有更多了"
),
for
:
MJRefreshState
.
noMoreData
)
tableView
.
mj_footer
=
refreshFooter
self
.
searchInputBgView
.
backgroundColor
=
.
fus_textInputBackgroundGray
()
self
.
searchTextField
.
textAlignment
=
NSTextAlignment
.
left
;
var
attrString
:
NSAttributedString
{
...
...
@@ -116,6 +118,7 @@ class FUSSearchViewController: FUSBaseViewController, UITableViewDelegate, UITab
hotSearchLabel
.
text
=
FUSLocalizationHelper
.
localString
(
"观看记录"
)
cancelBtn
.
setTitleColor
(
.
fus_textColorRich
(),
for
:
.
normal
)
cancelBtn
.
setTitle
(
FUSLocalizationHelper
.
localString
(
"取消"
),
for
:
UIControl
.
State
.
normal
)
cancelBtn
.
sizeToFit
()
cancelConstraint
.
constant
=
cancelBtn
.
width
+
10
...
...
FuSiLive/Classes/Search/Controller/FUSSearchViewController.xib
View file @
a0440a61
...
...
@@ -3,7 +3,7 @@
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"2268
5
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"2268
4
"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
...
...
@@ -15,6 +15,7 @@
<outlet
property=
"cancelConstraint"
destination=
"4Ib-o4-58q"
id=
"l7J-br-aNW"
/>
<outlet
property=
"deleteBtn"
destination=
"cVo-Tb-1ED"
id=
"Uj7-M5-RIU"
/>
<outlet
property=
"hotSearchLabel"
destination=
"Ygj-1H-BxV"
id=
"a3L-n8-qQr"
/>
<outlet
property=
"searchInputBgView"
destination=
"TcZ-9Y-4WI"
id=
"UAI-65-tIY"
/>
<outlet
property=
"searchTextField"
destination=
"pRN-Ye-p5q"
id=
"92Z-Pn-vS5"
/>
<outlet
property=
"searchTextFieldBgView"
destination=
"wAi-Gw-Z6k"
id=
"oZ7-or-ZVV"
/>
<outlet
property=
"view"
destination=
"i5M-Pr-FkT"
id=
"sfx-zR-JGt"
/>
...
...
FuSiLive/Classes/Search/Model/FUSMainSearchModel.h
View file @
a0440a61
...
...
@@ -14,7 +14,7 @@
@property
(
nonatomic
,
copy
)
NSString
*
level
;
@property
(
nonatomic
,
copy
)
NSString
*
face
;
@property
(
nonatomic
,
copy
)
NSString
*
lev
;
@property
(
nonatomic
,
copy
)
NSString
*
nick
n
ame
;
@property
(
nonatomic
,
copy
)
NSString
*
nick
N
ame
;
@property
(
nonatomic
,
copy
)
NSString
*
markname
;
@property
(
nonatomic
,
copy
)
NSString
*
uid
;
@property
(
nonatomic
,
copy
)
NSDictionary
*
privilege
;
...
...
FuSiLive/Classes/Search/View/FUSMainSearchTableViewCell.m
View file @
a0440a61
...
...
@@ -78,7 +78,7 @@
NSString
*
name
=
@""
;
if
([
NSString
isNull
:
model
.
markname
])
{
name
=
model
.
nick
n
ame
;
name
=
model
.
nick
N
ame
;
}
else
{
name
=
model
.
markname
;
}
...
...
FuSiLive/Classes/Search/View/FUSSearchTableViewCell.swift
View file @
a0440a61
...
...
@@ -38,6 +38,8 @@ class FUSSearchTableViewCell: UITableViewCell {
func
commonInit
(){
anchorName
.
textColor
=
.
fus_textColorRich
()
var
callingImages
=
[
UIImage
]()
var
onLiveImages
=
[
UIImage
]()
var
onLineImages
=
[
UIImage
]()
...
...
@@ -144,7 +146,7 @@ class FUSSearchTableViewCell: UITableViewCell {
}
}
anchorName
.
text
=
searchModel
?
.
nick
n
ame
anchorName
.
text
=
searchModel
?
.
nick
N
ame
}
}
...
...
FuSiLive/Info.plist
View file @
a0440a61
...
...
@@ -47,6 +47,10 @@
<
string
>
获取图片,需要访问您的相册
<
/string
>
<
k
e
y
>
NSUserTrackingUsageDescription
<
/k
e
y
>
<
string
>
此标识符将用于向您推荐个性化广告。
<
/string
>
<
k
e
y
>
UIAppFonts
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
FZCustom01.ttf
<
/string
>
<
/
a
rr
a
y
>
<
k
e
y
>
UIBackgroundModes
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
audio
<
/string
>
...
...
FuSiLive/Resources/Font/FZCustom01.ttf
0 → 100644
View file @
a0440a61
File added
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