Commit 7ae3b21b by ludi

修复ui问题

parent 37d0bd0b
Showing with 56 additions and 38 deletions
......@@ -7,12 +7,12 @@
<key>FUSChatCenterBundle.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>74</integer>
<integer>76</integer>
</dict>
<key>FUSChatCenterModule.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>73</integer>
<integer>78</integer>
</dict>
</dict>
</dict>
......
......@@ -5,12 +5,12 @@
"scale" : "1x"
},
{
"filename" : "callCenter_freeTimeIsUp_title_img@2x.png",
"filename" : "组 62@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "callCenter_freeTimeIsUp_title_img@3x.png",
"filename" : "组 62@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
......
......@@ -168,7 +168,7 @@ extension FUSCallDiamondShortageAlertView {
make.image = .fus_diamonIcon()
make.alignment = .center
}
make.append("\(diamond)").textColor(.fus_theme())
make.append("\(diamond)").textColor(.fus_diamondBlue())
make.textColor(.fus_textColorMedium()).font(.fus_themeFont(14))
})
}
......
......@@ -283,6 +283,7 @@ extension FUSCallFreeTimeIsUpAlertView {
// make.bounds = CGRectMake(0, 0, 18, 18)
make.alignment = .center
}
make.append(" ")
make.append("\(priceNum)/" + .fus_localString("分钟")).textColor(.fus_diamondBlue())
make.font(.fus_themeFont(15))
})
......@@ -303,6 +304,7 @@ extension FUSCallFreeTimeIsUpAlertView {
// make.bounds = CGRectMake(0, 0, 18, 18)
make.alignment = .center
}
make.append(" ")
make.append("\(incomeModel.total)/" + .fus_localString("分钟"))
if incomeModel.currency == 3{
make.textColor(.fus_diamondBlue())
......
......@@ -843,8 +843,10 @@ class FUSChatCallConnectingView: FUSBaseView {
self?.userCardIsLoading = false
guard let self = self else { return }
if let dataDict = dataDict,
let userDict = dataDict["user"] as? [AnyHashable: Any],
let tempUserCardView = self.tempUserCardView{
let userInfoModel = FUSRoomUserInfoModel.fus_model(withDict: dataDict)
let userInfoModel = FUSRoomUserInfoModel.fus_model(withDict: userDict)
userInfoModel.fus_setValue(withDict: dataDict)
userInfoModel.uid = fid
self.addSubview(tempUserCardView)
tempUserCardView.fus_showUserInfoView(with: .videoChat, userInfoModel: userInfoModel, shouldRequestData: true)
......
......@@ -548,7 +548,7 @@ extension UILabel {
self.layer.shadowColor = UIColor.init(hex: "#415E5E", alpha: 148.0/255.0).cgColor
self.layer.shadowOffset = CGSize(width: 1, height: 0)
self.layer.shadowOpacity = 1
self.layer.shadowRadius = 3.0
self.layer.shadowRadius = 2.0
}
}
......@@ -574,6 +574,7 @@ extension NSAttributedString {
make.image = .fus_diamonIcon()
make.alignment = .center
}
make.append(" ")
make.append("\(price)" + "/\(String.fus_localString("分钟"))").textColor(.fus_diamondBlue())
make.font(.fus_themeFont(15))
}
......
......@@ -7,12 +7,12 @@
<key>FUSShowRoomBundle.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>78</integer>
<integer>75</integer>
</dict>
<key>FUSShowRoomModule.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>77</integer>
<integer>72</integer>
</dict>
</dict>
</dict>
......
......@@ -222,28 +222,28 @@ if (@available(iOS 11.0, *)) {height = 80 + UIView.fus_SafeBottom;}\
}
}
switch (type) {
case FUSUserInfoViewTypeLive:
{
// 判断是否是点开自己的资料卡
if ([_currentModel.realUid isEqualToString:[FUSCacheDataShare shareStore].userDetailInfo.uid]) {
_reportBtn.hidden = YES;
} else {
_reportBtn.hidden = NO;
}
}
break;
case FUSUserInfoViewTypeVideoChat:
{
}
break;
default:
break;
}
// switch (type) {
// case FUSUserInfoViewTypeLive:
// {
// // 判断是否是点开自己的资料卡
// if ([_currentModel.realUid isEqualToString:[FUSCacheDataShare shareStore].userDetailInfo.uid]) {
// _reportBtn.hidden = YES;
// } else {
// _reportBtn.hidden = NO;
// }
// }
// break;
// case FUSUserInfoViewTypeVideoChat:
// {
// }
// break;
// default:
// break;
// }
self.clearBgView.y = UIView.fus_screenH;
[UIView animateWithDuration:.1 delay:0 options:UIViewAnimationOptionCurveEaseOut animations:^{
self.clearBgView.y = UIView.fus_screenH - self.clearBgView.height;
self.clearBgView.y = self.height - self.clearBgView.height;
} completion:nil];
}
......@@ -251,7 +251,7 @@ if (@available(iOS 11.0, *)) {height = 80 + UIView.fus_SafeBottom;}\
{
if (animate) {
[UIView animateWithDuration:0.25 animations:^{
self.clearBgView.y = UIView.fus_screenH;
self.clearBgView.y = self.height;
} completion:^(BOOL finished) {
self.hidden = YES;
if (self.dimissBlock) self.dimissBlock();
......@@ -508,9 +508,9 @@ if (@available(iOS 11.0, *)) {height = 80 + UIView.fus_SafeBottom;}\
}
- (void)fus_initSignLabel {
_signLabel = [[UILabel alloc] initWithFrame:CGRectMake(15, CGRectGetMaxY(_fusiIDLabel.frame) + 55, self.bgView.width - 30, 15)];
_signLabel = [[UILabel alloc] initWithFrame:CGRectMake(15, CGRectGetMaxY(_fusiIDLabel.frame) + 55, self.bgView.width - 30, 18)];
_signLabel.textColor = [UIColor fus_textColorRich];
_signLabel.font = [UIFont fus_themeFont:15];
_signLabel.font = [UIFont fus_themeFont:14];
// _signLabel.adjustsFontSizeToFitWidth = YES;
_signLabel.textAlignment = NSTextAlignmentCenter;
[self.bgView addSubview:_signLabel];
......@@ -620,6 +620,15 @@ if (@available(iOS 11.0, *)) {height = 80 + UIView.fus_SafeBottom;}\
return;
}
if (self.type == FUSUserInfoViewTypeLive) {
// 判断是否是点开自己的资料卡
if ([_currentModel.realUid isEqualToString:[FUSCacheDataShare shareStore].userDetailInfo.uid]) {
_reportBtn.hidden = YES;
} else {
_reportBtn.hidden = NO;
}
}
if (model.isHide.boolValue) {
_secrectBgImgView.hidden = NO;
......@@ -992,12 +1001,15 @@ if (@available(iOS 11.0, *)) {height = 80 + UIView.fus_SafeBottom;}\
- (void)fus_updateBtnsWithModel:(FUSRoomUserInfoModel *)model {
[_zoneBtn setTitle:nil forState:UIControlStateNormal];
if ([[FUSCacheDataShare shareStore].userDetailInfo.uid isEqualToString:model.realUid]) {
if ([[FUSCacheDataShare shareStore].userDetailInfo.uid isEqualToString:model.realUid]
|| self.type == FUSUserInfoViewTypeVideoChat) {
_atBtn.hidden = YES;
_followBtn.hidden = YES;
_chatBtn.hidden = YES;
if (model.isHide.boolValue) {
if (model.isHide.boolValue
|| self.type == FUSUserInfoViewTypeVideoChat) {
_zoneBtn.hidden = YES;
_buttomBtnBgView.hidden = YES;
} else {
// 如果是自己的资料卡,则只显示一个主页按钮
_zoneBtn.hidden = NO;
......
......@@ -7,12 +7,12 @@
<key>FUSUserCenterModule.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>72</integer>
<integer>73</integer>
</dict>
<key>FUSUserCenterModuleBundle.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>75</integer>
<integer>74</integer>
</dict>
</dict>
</dict>
......
......@@ -72,10 +72,10 @@ class FUSCompleteUserInfoAvatarView: FUSBaseView {
let uploadBtnTitleSize = uploadBtnTitle.size(with: .fus_themeFont(17), maxWidth: 414, maxHeight: 20)
uploadBtn.layer.cornerRadius = 36.0 / 2.0
uploadBtn.layer.borderColor = UIColor.fus_theme().cgColor
uploadBtn.layer.borderColor = UIColor.fus_diamondBlue().cgColor
uploadBtn.layer.borderWidth = 1;
uploadBtn.setTitle(.fus_localString("上传头像"), for: .normal)
uploadBtn.setTitleColor(.fus_theme(), for: .normal)
uploadBtn.setTitleColor(.fus_diamondBlue(), for: .normal)
uploadBtn.titleLabel?.font = .fus_themeFont(17)
contentView.addSubview(uploadBtn)
uploadBtn.snp.makeConstraints { make in
......
......@@ -32,6 +32,7 @@
self.layer.cornerRadius = 4;
self.layer.masksToBounds = YES;
self.layer.borderColor = [UIColor colorWithHex:@"#02F2F2"].CGColor;
self.backgroundColor = [UIColor colorWithHex:@"#EEEDED"];
}
@end
......@@ -392,7 +392,7 @@
<key>SSZipArchive.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>76</integer>
<integer>77</integer>
</dict>
<key>SnapKit-SnapKit_Privacy.xcscheme</key>
<dict>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment