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
4fc9024a
authored
Jul 03, 2024
by
ludi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改nickname的混用bug
parent
5672d639
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
23 additions
and
6 deletions
FuSiLive/Classes/Login/Controller/FUSSetUserInfoViewController.m
FuSiLive/Classes/NewLive/Main/View/FunctionView/ShareToChat/FUSLiveShareToChatView.m
FuSiLive/Classes/NewsFeed/RichEditor/Controller/WGBaseRichEditorViewController.m
FuSiLive/Classes/Search/Model/FUSMainSearchModel.h
FuSiLive/Classes/Search/Model/FUSMainSearchModel.m
FuSiLive/Classes/Search/View/FUSMainSearchTableViewCell.m
FuSiLive/Classes/Search/View/FUSSearchTableViewCell.swift
FuSiLive/Classes/Login/Controller/FUSSetUserInfoViewController.m
View file @
4fc9024a
...
...
@@ -98,6 +98,7 @@
_nickLabel
.
text
=
FUSLocalizationHelper
.
localString
(
@"昵称:"
);
_nicknameTextField
.
placeholder
=
FUSLocalizationHelper
.
localString
(
@"设定您的昵称"
);
_nicknameTextField
.
textColor
=
[
UIColor
fus_textColorRich
];
_sexLabel
.
text
=
FUSLocalizationHelper
.
localString
(
@"性别:"
);
[
_girlButton
setTitle
:
FUSLocalizationHelper
.
localString
(
@"女"
)
forState
:
UIControlStateNormal
];
[
_boyButton
setTitle
:
FUSLocalizationHelper
.
localString
(
@"男"
)
forState
:
UIControlStateNormal
];
...
...
@@ -116,8 +117,8 @@
_nicknameTextField
.
delegate
=
self
;
// [_nicknameTextField setValue:[UIColor colorWithHex:@"#333333"] forKeyPath:@"_placeholderLabel.textColor"];
NSAttributedString
*
attrString
=
[[
NSAttributedString
alloc
]
initWithString
:
FUSLocalizationHelper
.
localString
(
@"设定您的昵称"
)
attributes
:@{
NSForegroundColorAttributeName
:
[
UIColor
colorWithHex
:
@"#333333"
],
NSFontAttributeName
:
_nicknameTextField
.
font
}];
_nicknameTextField
.
attributedPlaceholder
=
attrString
;
//
NSAttributedString *attrString = [[NSAttributedString alloc] initWithString:FUSLocalizationHelper.localString(@"设定您的昵称") attributes:@{NSForegroundColorAttributeName:[UIColor colorWithHex:@"#333333"], NSFontAttributeName:_nicknameTextField.font}];
//
_nicknameTextField.attributedPlaceholder = attrString;
// 设置默认性别
_selSex
=
-
1
;
...
...
FuSiLive/Classes/NewLive/Main/View/FunctionView/ShareToChat/FUSLiveShareToChatView.m
View file @
4fc9024a
...
...
@@ -277,7 +277,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 @
4fc9024a
...
...
@@ -799,7 +799,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/Model/FUSMainSearchModel.h
View file @
4fc9024a
...
...
@@ -14,6 +14,8 @@
@property
(
nonatomic
,
copy
)
NSString
*
level
;
@property
(
nonatomic
,
copy
)
NSString
*
face
;
@property
(
nonatomic
,
copy
)
NSString
*
lev
;
@property
(
nonatomic
,
copy
)
NSString
*
nickname
;
/// 昵称,后台N,n不分,导致要写这个兼容
@property
(
nonatomic
,
copy
)
NSString
*
nickName
;
@property
(
nonatomic
,
copy
)
NSString
*
markname
;
@property
(
nonatomic
,
copy
)
NSString
*
uid
;
...
...
FuSiLive/Classes/Search/Model/FUSMainSearchModel.m
View file @
4fc9024a
...
...
@@ -10,4 +10,18 @@
@implementation
FUSMainSearchModel
-
(
NSString
*
)
nickname
{
if
([
NSString
isNull
:
_nickname
])
{
_nickname
=
_nickName
;
}
return
_nickname
;
}
-
(
NSString
*
)
nickName
{
if
([
NSString
isNull
:
_nickName
])
{
_nickName
=
_nickname
;
}
return
_nickName
;
}
@end
FuSiLive/Classes/Search/View/FUSMainSearchTableViewCell.m
View file @
4fc9024a
...
...
@@ -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 @
4fc9024a
...
...
@@ -148,7 +148,7 @@ class FUSSearchTableViewCell: UITableViewCell {
}
}
anchorName
.
text
=
searchModel
?
.
nick
N
ame
anchorName
.
text
=
searchModel
?
.
nick
n
ame
}
}
...
...
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