Commit ca60edda by pierce

Merge branch 'feature/UI修改版本' of http://git.yabolive.net:88/pidan/FuSiLive into feature/UI修改版本

parents a1f39fb5 99995492
Showing with 69 additions and 55 deletions
...@@ -219,7 +219,9 @@ ...@@ -219,7 +219,9 @@
{ {
[_gradientView.layer removeFromSuperlayer]; [_gradientView.layer removeFromSuperlayer];
_gradientView = [FUSGradientView fus_gradientViewWithType:FUSGradientViewTypeGrayBorder frame:_bgLayer.bounds]; _gradientView = [FUSGradientView fus_gradientViewWithType:FUSGradientViewTypeGrayBorder frame:_bgLayer.bounds];
self.layer.cornerRadius = _gradientView.height / 2.0; self.layer.cornerRadius = self.height / 2.0f;
self.layer.borderColor = [UIColor fus_textColorLight2].CGColor;
self.layer.borderWidth = 1;
_gradientView.cornerRadius = _gradientView.height/2.0; _gradientView.cornerRadius = _gradientView.height/2.0;
[_bgLayer addSublayer:_gradientView.layer]; [_bgLayer addSublayer:_gradientView.layer];
[self.layer insertSublayer:self.imageView.layer above:_bgLayer]; [self.layer insertSublayer:self.imageView.layer above:_bgLayer];
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
[[UIApplication sharedApplication].keyWindow bringSubviewToFront:[UIApplication sharedApplication].keyWindow.subviews.firstObject]; [[UIApplication sharedApplication].keyWindow bringSubviewToFront:[UIApplication sharedApplication].keyWindow.subviews.firstObject];
// 更新未讀消息 // 更新未讀消息
[[FUSIMChatService shareInstance] fus_updateTalkListToLastMessage]; [[FUSIMChatService shareInstance] fus_delayUpdateTalkListToLastMessage];
} }
/** /**
......
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
self.frame = [UIScreen mainScreen].bounds; self.frame = [UIScreen mainScreen].bounds;
self.tag = 100; self.tag = 100;
self.alpha = 0; self.alpha = 0;
self.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.5]; self.backgroundColor = [UIColor fus_alertViewBackgroundColor];
[self addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(onTapPickerViewAction:)]]; [self addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(onTapPickerViewAction:)]];
_bgView = [[UIView alloc] initWithFrame:CGRectMake(0, UIView.fus_screenH + TOOLBAR_HEIGHT + PICKER_VIEW_HEIGHT, UIView.fus_screenH, PICKER_VIEW_HEIGHT + TOOLBAR_HEIGHT)]; _bgView = [[UIView alloc] initWithFrame:CGRectMake(0, UIView.fus_screenH + TOOLBAR_HEIGHT + PICKER_VIEW_HEIGHT, UIView.fus_screenH, PICKER_VIEW_HEIGHT + TOOLBAR_HEIGHT)];
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
// toolbar工具条 // toolbar工具条
UIView *toolBar = [[UIView alloc]initWithFrame:CGRectMake(0, 0, UIView.fus_screenW, TOOLBAR_HEIGHT)]; UIView *toolBar = [[UIView alloc]initWithFrame:CGRectMake(0, 0, UIView.fus_screenW, TOOLBAR_HEIGHT)];
toolBar.backgroundColor = [UIColor colorWithHex:@"#191923"]; toolBar.backgroundColor = [UIColor fus_appBGColor];
[_bgView addSubview:toolBar]; [_bgView addSubview:toolBar];
CGFloat cancelX = FUSRTL.isRTL ? UIView.fus_screenW - 70 : 10; CGFloat cancelX = FUSRTL.isRTL ? UIView.fus_screenW - 70 : 10;
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
cancelBtn.width = cancelBtn.width + 20; cancelBtn.width = cancelBtn.width + 20;
cancelBtn.x = FUSRTL.isRTL ? UIView.fus_screenW - cancelBtn.width - 10 : 10; cancelBtn.x = FUSRTL.isRTL ? UIView.fus_screenW - cancelBtn.width - 10 : 10;
[toolBar addSubview:cancelBtn]; [toolBar addSubview:cancelBtn];
[cancelBtn setTitleColor:[UIColor colorWithHex:@"#58DBD7"] forState:UIControlStateNormal]; [cancelBtn setTitleColor:[UIColor fus_textColorMedium] forState:UIControlStateNormal];
[cancelBtn addTarget:self action:@selector(onTapCancelBtnAction:) forControlEvents:UIControlEventTouchUpInside]; [cancelBtn addTarget:self action:@selector(onTapCancelBtnAction:) forControlEvents:UIControlEventTouchUpInside];
CGFloat certainX = FUSRTL.isRTL ? 10 : UIView.fus_screenW - 70; CGFloat certainX = FUSRTL.isRTL ? 10 : UIView.fus_screenW - 70;
...@@ -139,21 +139,21 @@ ...@@ -139,21 +139,21 @@
certainBtn.height = TOOLBAR_HEIGHT; certainBtn.height = TOOLBAR_HEIGHT;
certainBtn.x = FUSRTL.isRTL ? 10 : UIView.fus_screenW - certainBtn.width - 10; certainBtn.x = FUSRTL.isRTL ? 10 : UIView.fus_screenW - certainBtn.width - 10;
[toolBar addSubview:certainBtn]; [toolBar addSubview:certainBtn];
[certainBtn setTitleColor:[UIColor colorWithHex:@"#58DBD7"] forState:UIControlStateNormal]; [certainBtn setTitleColor:[UIColor fus_textColorRich] forState:UIControlStateNormal];
[certainBtn addTarget:self action:@selector(onTapCertainBtnAction:) forControlEvents:UIControlEventTouchUpInside]; [certainBtn addTarget:self action:@selector(onTapCertainBtnAction:) forControlEvents:UIControlEventTouchUpInside];
_titleLb = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(cancelBtn.frame), 0, self.width - cancelBtn.width - certainBtn.width - 30, toolBar.height)]; _titleLb = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(cancelBtn.frame), 0, self.width - cancelBtn.width - certainBtn.width - 30, toolBar.height)];
_titleLb.font = [UIFont systemFontOfSize:17 weight:UIFontWeightMedium]; _titleLb.font = [UIFont systemFontOfSize:17 weight:UIFontWeightMedium];
_titleLb.textColor = [UIColor colorWithHex:@"#CCCCCC"]; _titleLb.textColor = [UIColor fus_textColorRich];
_titleLb.textAlignment = NSTextAlignmentCenter; _titleLb.textAlignment = NSTextAlignmentCenter;
_titleLb.text = _title; _titleLb.text = _title;
[_titleLb sizeToFit]; [_titleLb sizeToFit];
_titleLb.center = toolBar.center; _titleLb.center = toolBar.center;
[toolBar addSubview:_titleLb]; [toolBar addSubview:_titleLb];
UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, toolBar.height - 1, toolBar.width, 0.5)]; // UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, toolBar.height - 1, toolBar.width, 0.5)];
view.backgroundColor = [[UIColor whiteColor] colorWithAlphaComponent:0.09]; // view.backgroundColor = [[UIColor whiteColor] colorWithAlphaComponent:0.09];
[toolBar addSubview:view]; // [toolBar addSubview:view];
[self.pickerView reloadAllComponents]; [self.pickerView reloadAllComponents];
[self.pickerView selectRow:_currentSelectRow inComponent:0 animated:YES]; [self.pickerView selectRow:_currentSelectRow inComponent:0 animated:YES];
...@@ -250,8 +250,8 @@ ...@@ -250,8 +250,8 @@
UIButton *titleBtn = (UIButton *)view; UIButton *titleBtn = (UIButton *)view;
if (!titleBtn) { if (!titleBtn) {
titleBtn = [UIButton buttonWithType:UIButtonTypeCustom]; titleBtn = [UIButton buttonWithType:UIButtonTypeCustom];
[titleBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; [titleBtn setTitleColor:[UIColor fus_textColorRich] forState:UIControlStateNormal];
[titleBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateSelected]; [titleBtn setTitleColor:[UIColor fus_textColorRich] forState:UIControlStateSelected];
if (row == 0) { if (row == 0) {
_lastSelectBtn = titleBtn; _lastSelectBtn = titleBtn;
} }
...@@ -320,7 +320,7 @@ ...@@ -320,7 +320,7 @@
_pickerView.dataSource = self; _pickerView.dataSource = self;
_pickerView.tag = 101; _pickerView.tag = 101;
[_pickerView selectRow:0 inComponent:0 animated:YES]; [_pickerView selectRow:0 inComponent:0 animated:YES];
_pickerView.backgroundColor = [UIColor colorWithHex:@"#191923"]; _pickerView.backgroundColor = [UIColor fus_appBGColor];
} }
return _pickerView; return _pickerView;
} }
......
...@@ -179,7 +179,7 @@ ...@@ -179,7 +179,7 @@
} }
// 通知刷新寨信界面 // 通知刷新寨信界面
[[FUSIMChatService shareInstance] fus_updateTalkListToLastMessage]; [[FUSIMChatService shareInstance] fus_delayUpdateTalkListToLastMessage];
// 消息数量置0 // 消息数量置0
[self.classifyMessageDict removeAllObjects]; [self.classifyMessageDict removeAllObjects];
......
...@@ -67,6 +67,7 @@ ...@@ -67,6 +67,7 @@
webVC.webUrlString = [NSString stringWithFormat:@"%@?lang=%@", webURL,FUSLocalizationHelper.fus_currentLanguage.languageID]; webVC.webUrlString = [NSString stringWithFormat:@"%@?lang=%@", webURL,FUSLocalizationHelper.fus_currentLanguage.languageID];
vc = webVC; vc = webVC;
[UINavigationController fus_updateWebServicesReadStatus:serviceUID];
webVC.closeWebViewHandler = ^(NSInteger cidType) { webVC.closeWebViewHandler = ^(NSInteger cidType) {
// 更新未读 // 更新未读
[UINavigationController fus_updateWebServicesReadStatus:serviceUID]; [UINavigationController fus_updateWebServicesReadStatus:serviceUID];
...@@ -83,6 +84,7 @@ ...@@ -83,6 +84,7 @@
webVC.webUrlString = [NSString stringWithFormat:@"%@?lang=%@", webURL,FUSLocalizationHelper.fus_currentLanguage.languageID]; webVC.webUrlString = [NSString stringWithFormat:@"%@?lang=%@", webURL,FUSLocalizationHelper.fus_currentLanguage.languageID];
vc = webVC; vc = webVC;
[UINavigationController fus_updateWebServicesReadStatus:serviceUID];
webVC.closeWebViewHandler = ^(NSInteger cidType) { webVC.closeWebViewHandler = ^(NSInteger cidType) {
// 更新未读 // 更新未读
[UINavigationController fus_updateWebServicesReadStatus:serviceUID]; [UINavigationController fus_updateWebServicesReadStatus:serviceUID];
...@@ -105,7 +107,7 @@ ...@@ -105,7 +107,7 @@
+(void)fus_updateWebServicesReadStatus:(NSString *)serviceUID{ +(void)fus_updateWebServicesReadStatus:(NSString *)serviceUID{
[FUSSingleChatDBOperate fus_updateReadStatusToSingleChatTableWithFid:serviceUID]; [FUSSingleChatDBOperate fus_updateReadStatusToSingleChatTableWithFid:serviceUID];
[FUSZhaiXinDBOperate fus_updateUnreadToZhaiXinInfosTableWithTypeId:[NSString stringWithFormat:@"%@%@",SINGLE_CHAT, serviceUID] unread:0]; [FUSZhaiXinDBOperate fus_updateUnreadToZhaiXinInfosTableWithTypeId:[NSString stringWithFormat:@"%@%@",SINGLE_CHAT, serviceUID] unread:0];
[[FUSIMChatService shareInstance] fus_updateTalkListToLastMessage]; [[FUSIMChatService shareInstance] fus_updateTalkListToLastMessageHandler];
} }
- (void)fus_pushToBuyVIPControllerWithAnimate:(BOOL)animate{ - (void)fus_pushToBuyVIPControllerWithAnimate:(BOOL)animate{
......
...@@ -459,7 +459,7 @@ ...@@ -459,7 +459,7 @@
// 设置数据库所有消息已读 // 设置数据库所有消息已读
[[FUSIMChatService shareInstance] fus_setCurrentTalkAllMessageRead]; [[FUSIMChatService shareInstance] fus_setCurrentTalkAllMessageRead];
// 更新未读 // 更新未读
[[FUSIMChatService shareInstance] fus_updateTalkListToLastMessage]; [[FUSIMChatService shareInstance] fus_delayUpdateTalkListToLastMessage];
[self fus_executeDefaultSetting]; [self fus_executeDefaultSetting];
} }
...@@ -678,7 +678,7 @@ ...@@ -678,7 +678,7 @@
if (buttonIndex == 1) { if (buttonIndex == 1) {
[[FUSIMChatService shareInstance] fus_deleteAllMessageWithTalkID:self.talkID]; [[FUSIMChatService shareInstance] fus_deleteAllMessageWithTalkID:self.talkID];
[FUSZhaiXinDBOperate fus_deleteLastReceiveMessageWithTalkID:self.talkID]; [FUSZhaiXinDBOperate fus_deleteLastReceiveMessageWithTalkID:self.talkID];
[[FUSIMChatService shareInstance] fus_updateTalkListToLastMessage]; [[FUSIMChatService shareInstance] fus_delayUpdateTalkListToLastMessage];
[self.chatDetailArr removeAllObjects]; [self.chatDetailArr removeAllObjects];
[self.tableView reloadData]; [self.tableView reloadData];
} }
...@@ -990,7 +990,7 @@ ...@@ -990,7 +990,7 @@
[self fus_refrshVideoCellWithProgress:100 refreshIndex:refreshIndex serverMsgID:serverMsgID]; [self fus_refrshVideoCellWithProgress:100 refreshIndex:refreshIndex serverMsgID:serverMsgID];
if (![FUSIMChatService shareInstance].chatDelegate) { if (![FUSIMChatService shareInstance].chatDelegate) {
[[FUSIMChatService shareInstance] fus_updateTalkListToLastMessage]; [[FUSIMChatService shareInstance] fus_delayUpdateTalkListToLastMessage];
} }
} }
...@@ -1184,7 +1184,7 @@ ...@@ -1184,7 +1184,7 @@
// 设置数据库所有消息已读 // 设置数据库所有消息已读
[[FUSIMChatService shareInstance] fus_setCurrentTalkAllMessageRead]; [[FUSIMChatService shareInstance] fus_setCurrentTalkAllMessageRead];
// 更新会话列表 // 更新会话列表
[[FUSIMChatService shareInstance] fus_updateTalkListToLastMessage]; [[FUSIMChatService shareInstance] fus_delayUpdateTalkListToLastMessage];
} }
......
...@@ -230,9 +230,12 @@ ...@@ -230,9 +230,12 @@
- (void)fus_sendAllUnreadMessageReadAck; - (void)fus_sendAllUnreadMessageReadAck;
/** /**
更新所有会话到最新的消息 延迟 --- 更新所有会话到最新的消息
*/ */
- (void)fus_updateTalkListToLastMessage; - (void)fus_delayUpdateTalkListToLastMessage;
/// 立刻--- 更新所有会话到最新的消息
-(void)fus_updateTalkListToLastMessageHandler;
/** /**
删除一条会话中的所有消息 删除一条会话中的所有消息
......
...@@ -446,21 +446,21 @@ ...@@ -446,21 +446,21 @@
// } // }
} }
- (void)fus_updateTalkListToLastMessage - (void)fus_delayUpdateTalkListToLastMessage
{ {
FUSLogInfo(@"pierce:fus_updateTalkListToLastMessage"); FUSLogInfo(@"pierce:fus_updateTalkListToLastMessage");
if ([NSThread isMainThread]) { if ([NSThread isMainThread]) {
[NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(fus_delayUpdateTalkListToLastMessage) object:nil]; [NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(fus_updateTalkListToLastMessageHandler) object:nil];
[self performSelector:@selector(fus_delayUpdateTalkListToLastMessage) withObject:nil afterDelay:0.5]; [self performSelector:@selector(fus_updateTalkListToLastMessageHandler) withObject:nil afterDelay:0.5];
} else { } else {
dispatch_async(dispatch_get_main_queue(), ^{ dispatch_async(dispatch_get_main_queue(), ^{
[NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(fus_delayUpdateTalkListToLastMessage) object:nil]; [NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(fus_updateTalkListToLastMessageHandler) object:nil];
[self performSelector:@selector(fus_delayUpdateTalkListToLastMessage) withObject:nil afterDelay:0.5]; [self performSelector:@selector(fus_updateTalkListToLastMessageHandler) withObject:nil afterDelay:0.5];
}); });
} }
} }
- (void)fus_delayUpdateTalkListToLastMessage - (void)fus_updateTalkListToLastMessageHandler
{ {
NSArray *latestTalkList = [[EMClient sharedClient].chatManager getAllConversations]; NSArray *latestTalkList = [[EMClient sharedClient].chatManager getAllConversations];
[self fus_transformSdkListToTalkList:latestTalkList needCombinationOldTalkList:YES]; [self fus_transformSdkListToTalkList:latestTalkList needCombinationOldTalkList:YES];
...@@ -807,7 +807,7 @@ ...@@ -807,7 +807,7 @@
[FUSLoadingView fus_dismissProgressView]; [FUSLoadingView fus_dismissProgressView];
if (!_chatDelegate) { if (!_chatDelegate) {
// [self fus_updateTalkListToLastMessage]; // [self fus_delayUpdateTalkListToLastMessage];
// [[NSNotificationCenter defaultCenter] postNotificationName:ZhaiXin_Refresh object:nil]; // [[NSNotificationCenter defaultCenter] postNotificationName:ZhaiXin_Refresh object:nil];
} }
...@@ -1675,7 +1675,7 @@ ...@@ -1675,7 +1675,7 @@
} }
}else{ // 界面外更新未读消息 }else{ // 界面外更新未读消息
[self fus_updateTalkListToLastMessage]; [self fus_delayUpdateTalkListToLastMessage];
if (sysType == FUSSystemNoticeTypeReceivePrivateVoiceLive || sysType == FUSSystemNoticeTypeReceivePrivateVideoLive) { if (sysType == FUSSystemNoticeTypeReceivePrivateVoiceLive || sysType == FUSSystemNoticeTypeReceivePrivateVideoLive) {
[FUSSoundAndVibrateHelper fus_playSystemSoundAndVibrate]; [FUSSoundAndVibrateHelper fus_playSystemSoundAndVibrate];
} }
...@@ -1758,7 +1758,7 @@ ...@@ -1758,7 +1758,7 @@
} }
}else{ // 界面外 }else{ // 界面外
[self fus_updateTalkListToLastMessage]; [self fus_delayUpdateTalkListToLastMessage];
[FUSSoundAndVibrateHelper fus_playSystemSoundAndVibrate]; [FUSSoundAndVibrateHelper fus_playSystemSoundAndVibrate];
} }
} }
...@@ -2378,7 +2378,7 @@ ...@@ -2378,7 +2378,7 @@
if (!self.chatDelegate) { if (!self.chatDelegate) {
// 发通知刷新寨信,修改发送状态 // 发通知刷新寨信,修改发送状态
[self fus_updateTalkListToLastMessage]; [self fus_delayUpdateTalkListToLastMessage];
} }
if (!error) { if (!error) {
...@@ -3597,7 +3597,7 @@ ...@@ -3597,7 +3597,7 @@
[_chatDelegate fus_triggerMessagesReceiveEvent:newMessageList]; [_chatDelegate fus_triggerMessagesReceiveEvent:newMessageList];
} }
}else{ // 界面外 }else{ // 界面外
[self fus_updateTalkListToLastMessage]; [self fus_delayUpdateTalkListToLastMessage];
[FUSSoundAndVibrateHelper fus_playSystemSoundAndVibrate]; [FUSSoundAndVibrateHelper fus_playSystemSoundAndVibrate];
} }
......
...@@ -175,7 +175,7 @@ ...@@ -175,7 +175,7 @@
} }
// 更新到最新的会话 // 更新到最新的会话
[[FUSIMChatService shareInstance] fus_updateTalkListToLastMessage]; [[FUSIMChatService shareInstance] fus_delayUpdateTalkListToLastMessage];
}); });
...@@ -209,7 +209,7 @@ ...@@ -209,7 +209,7 @@
dispatch_async(dispatch_get_main_queue(), ^{ dispatch_async(dispatch_get_main_queue(), ^{
// 更新到最新的离线会话 // 更新到最新的离线会话
[[FUSIMChatService shareInstance] fus_updateTalkListToLastMessage]; [[FUSIMChatService shareInstance] fus_delayUpdateTalkListToLastMessage];
}); });
} }
}]; }];
......
...@@ -206,7 +206,7 @@ static dispatch_queue_t get_live_message_box_parse_queue(){ ...@@ -206,7 +206,7 @@ static dispatch_queue_t get_live_message_box_parse_queue(){
// 发通知刷新寨信 // 发通知刷新寨信
if (![FUSIMChatService shareInstance].chatDelegate) { if (![FUSIMChatService shareInstance].chatDelegate) {
[[FUSIMChatService shareInstance] fus_updateTalkListToLastMessage]; [[FUSIMChatService shareInstance] fus_delayUpdateTalkListToLastMessage];
} }
[FUSDialogView fus_showDialog:[NSString fus_localString:@"所有私信已忽略"]]; [FUSDialogView fus_showDialog:[NSString fus_localString:@"所有私信已忽略"]];
...@@ -447,7 +447,7 @@ static dispatch_queue_t get_live_message_box_parse_queue(){ ...@@ -447,7 +447,7 @@ static dispatch_queue_t get_live_message_box_parse_queue(){
[[FUSIMChatService shareInstance] fus_deleteAllMessageWithTalkID:model.uid]; [[FUSIMChatService shareInstance] fus_deleteAllMessageWithTalkID:model.uid];
} }
[[FUSIMChatService shareInstance] fus_updateTalkListToLastMessage]; [[FUSIMChatService shareInstance] fus_delayUpdateTalkListToLastMessage];
[weakSelf.tableView beginUpdates]; [weakSelf.tableView beginUpdates];
[weakSelf.dataSource removeObjectAtIndex:indexPath.row]; [weakSelf.dataSource removeObjectAtIndex:indexPath.row];
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
[self configNavigation]; [self configNavigation];
[[NSUserDefaults standardUserDefaults] setObject:@(NO) forKey:HAS_NEWS_FEED_NEW_PUBLISHED([FUSCacheDataShare shareStore].userDetailInfo.uid)]; [[NSUserDefaults standardUserDefaults] setObject:@(NO) forKey:HAS_NEWS_FEED_NEW_PUBLISHED([FUSCacheDataShare shareStore].userDetailInfo.uid)];
[[FUSIMChatService shareInstance] fus_updateTalkListToLastMessage]; [[FUSIMChatService shareInstance] fus_delayUpdateTalkListToLastMessage];
} }
- (void)viewWillAppear:(BOOL)animated { - (void)viewWillAppear:(BOOL)animated {
...@@ -299,7 +299,7 @@ ...@@ -299,7 +299,7 @@
NSInteger unhandleCount = [[[NSUserDefaults standardUserDefaults] objectForKey:NEWS_FEED_NEW_FOCUS_PUBLISH_COUNT([FUSCacheDataShare shareStore].userDetailInfo.uid)] integerValue]; NSInteger unhandleCount = [[[NSUserDefaults standardUserDefaults] objectForKey:NEWS_FEED_NEW_FOCUS_PUBLISH_COUNT([FUSCacheDataShare shareStore].userDetailInfo.uid)] integerValue];
if (unhandleCount > 0) { if (unhandleCount > 0) {
[[NSUserDefaults standardUserDefaults] setObject:@"0" forKey:NEWS_FEED_NEW_FOCUS_PUBLISH_COUNT([FUSCacheDataShare shareStore].userDetailInfo.uid)]; [[NSUserDefaults standardUserDefaults] setObject:@"0" forKey:NEWS_FEED_NEW_FOCUS_PUBLISH_COUNT([FUSCacheDataShare shareStore].userDetailInfo.uid)];
[[FUSIMChatService shareInstance] fus_updateTalkListToLastMessage]; [[FUSIMChatService shareInstance] fus_delayUpdateTalkListToLastMessage];
} }
} }
if (FUSRTL.isRTL) { if (FUSRTL.isRTL) {
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
[self fus_loadData]; [self fus_loadData];
[[NSUserDefaults standardUserDefaults] setObject:@(0) forKey:NEWS_FEED_UNHANDLE_COUNT([FUSCacheDataShare shareStore].userDetailInfo.uid)]; [[NSUserDefaults standardUserDefaults] setObject:@(0) forKey:NEWS_FEED_UNHANDLE_COUNT([FUSCacheDataShare shareStore].userDetailInfo.uid)];
[[NSNotificationCenter defaultCenter] postNotificationName:FUS_NEWS_FEED_DID_RECEIVE_MESSAGE_NOTIFICATION object:nil]; [[NSNotificationCenter defaultCenter] postNotificationName:FUS_NEWS_FEED_DID_RECEIVE_MESSAGE_NOTIFICATION object:nil];
[[FUSIMChatService shareInstance] fus_updateTalkListToLastMessage]; [[FUSIMChatService shareInstance] fus_delayUpdateTalkListToLastMessage];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[FUSNewsFeedNoticeShownHelper fus_showEnterFeedMessagePageAlertIfNeeded]; [FUSNewsFeedNoticeShownHelper fus_showEnterFeedMessagePageAlertIfNeeded];
......
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
[FUSZhaiXinDBOperate fus_writeMultiDataToZhaiXinInfosTableWithModelArray:@[model] keyArray:@[@"typeId"]]; [FUSZhaiXinDBOperate fus_writeMultiDataToZhaiXinInfosTableWithModelArray:@[model] keyArray:@[@"typeId"]];
// 通知刷新寨信界面 // 通知刷新寨信界面
[[FUSIMChatService shareInstance] fus_updateTalkListToLastMessage]; [[FUSIMChatService shareInstance] fus_delayUpdateTalkListToLastMessage];
} }
} failure:^(NSString * _Nonnull msg, int code) { } failure:^(NSString * _Nonnull msg, int code) {
......
...@@ -258,6 +258,7 @@ FUSImagePickerViewControllerDelegate> ...@@ -258,6 +258,7 @@ FUSImagePickerViewControllerDelegate>
_switchAddress = [[UISwitch alloc] initWithFrame:CGRectMake(CGRectGetMaxX(_addressLb2.frame), 0, 40, view2.height)]; _switchAddress = [[UISwitch alloc] initWithFrame:CGRectMake(CGRectGetMaxX(_addressLb2.frame), 0, 40, view2.height)];
_switchAddress.centerY = view2.height/2.0; _switchAddress.centerY = view2.height/2.0;
_switchAddress.tag = 1; _switchAddress.tag = 1;
_switchAddress.onTintColor = [UIColor fus_themeColor];
[_switchAddress addTarget:self action:@selector(fus_switchEvent:) forControlEvents:UIControlEventTouchUpInside]; [_switchAddress addTarget:self action:@selector(fus_switchEvent:) forControlEvents:UIControlEventTouchUpInside];
[view2 addSubview:_switchAddress]; [view2 addSubview:_switchAddress];
...@@ -269,6 +270,7 @@ FUSImagePickerViewControllerDelegate> ...@@ -269,6 +270,7 @@ FUSImagePickerViewControllerDelegate>
_switchSync = [[UISwitch alloc] initWithFrame:CGRectMake(CGRectGetMaxX(lb3.frame), 0, 40, view3.height)]; _switchSync = [[UISwitch alloc] initWithFrame:CGRectMake(CGRectGetMaxX(lb3.frame), 0, 40, view3.height)];
_switchSync.centerY = view3.height/2.0; _switchSync.centerY = view3.height/2.0;
_switchSync.onTintColor = [UIColor fus_themeColor];
[view3 addSubview:_switchSync]; [view3 addSubview:_switchSync];
_switchSync.tag = 2; _switchSync.tag = 2;
[_switchSync addTarget:self action:@selector(fus_switchEvent:) forControlEvents:UIControlEventTouchUpInside]; [_switchSync addTarget:self action:@selector(fus_switchEvent:) forControlEvents:UIControlEventTouchUpInside];
......
...@@ -143,7 +143,7 @@ static CGFloat collectionViewMargin = 0; ...@@ -143,7 +143,7 @@ static CGFloat collectionViewMargin = 0;
_selectedStyleBtn = [FUSStyleButton buttonWithType:UIButtonTypeCustom]; _selectedStyleBtn = [FUSStyleButton buttonWithType:UIButtonTypeCustom];
_selectedStyleBtn.frame = CGRectMake(0, 0, 60, 30); _selectedStyleBtn.frame = CGRectMake(0, 0, 60, 30);
[_selectedStyleBtn setTitle:[NSString fus_localString:@"完成"] forState:UIControlStateNormal]; [_selectedStyleBtn setTitle:[NSString fus_localString:@"完成"] forState:UIControlStateNormal];
_selectedStyleBtn.style = FUSButtonStyleBlueBorder; _selectedStyleBtn.style = FUSButtonStyleBlue;
_selectedStyleBtn.titleLabel.font = [UIFont systemFontOfSize:13]; _selectedStyleBtn.titleLabel.font = [UIFont systemFontOfSize:13];
[_selectedStyleBtn addTarget:self action:@selector(doneButtonClick) forControlEvents:UIControlEventTouchUpInside]; [_selectedStyleBtn addTarget:self action:@selector(doneButtonClick) forControlEvents:UIControlEventTouchUpInside];
_selectedStyleBtn.enabled = NO; _selectedStyleBtn.enabled = NO;
......
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
// 更新未读 // 更新未读
[FUSSingleChatDBOperate fus_updateReadStatusToSingleChatTableWithFid:self.uid]; [FUSSingleChatDBOperate fus_updateReadStatusToSingleChatTableWithFid:self.uid];
[FUSZhaiXinDBOperate fus_updateUnreadToZhaiXinInfosTableWithTypeId:[NSString stringWithFormat:@"%@%@",SINGLE_CHAT, self.uid] unread:0]; [FUSZhaiXinDBOperate fus_updateUnreadToZhaiXinInfosTableWithTypeId:[NSString stringWithFormat:@"%@%@",SINGLE_CHAT, self.uid] unread:0];
[[FUSIMChatService shareInstance] fus_updateTalkListToLastMessage]; [[FUSIMChatService shareInstance] fus_delayUpdateTalkListToLastMessage];
// 注册通知 // 注册通知
[self registerNotification]; [self registerNotification];
......
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
{ {
NSString *uid = [[[FUSCacheDataShare shareStore] userDetailInfo] uid]; NSString *uid = [[[FUSCacheDataShare shareStore] userDetailInfo] uid];
[[NSUserDefaults standardUserDefaults] setObject:@"0" forKey:FUSBO_SINGLE_LIVE_RECORD_COUNT(uid)]; [[NSUserDefaults standardUserDefaults] setObject:@"0" forKey:FUSBO_SINGLE_LIVE_RECORD_COUNT(uid)];
[[FUSIMChatService shareInstance] fus_updateTalkListToLastMessage]; [[FUSIMChatService shareInstance] fus_delayUpdateTalkListToLastMessage];
} }
- (void)loadSingleLiveRecordList - (void)loadSingleLiveRecordList
......
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
[self.viewController.navigationController pushViewController:newsfeedVc animated:YES]; [self.viewController.navigationController pushViewController:newsfeedVc animated:YES];
[FUSZhaiXinDBOperate fus_updateUnreadToZhaiXinInfosTableWithTypeId:NEWS_FEED_MESSAGE unread:0]; [FUSZhaiXinDBOperate fus_updateUnreadToZhaiXinInfosTableWithTypeId:NEWS_FEED_MESSAGE unread:0];
[[FUSIMChatService shareInstance] fus_updateTalkListToLastMessage]; [[FUSIMChatService shareInstance] fus_delayUpdateTalkListToLastMessage];
} }
} }
...@@ -245,7 +245,7 @@ ...@@ -245,7 +245,7 @@
[[NSUserDefaults standardUserDefaults] setObject:@"0" forKey:FUSBO_SINGLE_LIVE_RECORD_COUNT(uid)]; [[NSUserDefaults standardUserDefaults] setObject:@"0" forKey:FUSBO_SINGLE_LIVE_RECORD_COUNT(uid)];
} }
[[FUSIMChatService shareInstance] fus_updateTalkListToLastMessage]; [[FUSIMChatService shareInstance] fus_delayUpdateTalkListToLastMessage];
} }
- (void)zhaiXinRefresh - (void)zhaiXinRefresh
......
...@@ -198,7 +198,7 @@ ...@@ -198,7 +198,7 @@
break; break;
} }
[FUSZhaiXinDBOperate fus_updateUnreadToZhaiXinInfosTableWithTypeId:typeId unread:0]; [FUSZhaiXinDBOperate fus_updateUnreadToZhaiXinInfosTableWithTypeId:typeId unread:0];
[[FUSIMChatService shareInstance] fus_updateTalkListToLastMessage]; [[FUSIMChatService shareInstance] fus_delayUpdateTalkListToLastMessage];
} }
- (void)onClickNavBackBtn - (void)onClickNavBackBtn
......
...@@ -118,6 +118,7 @@ static NSString *const reuseIdentifyCell = @"cell"; ...@@ -118,6 +118,7 @@ static NSString *const reuseIdentifyCell = @"cell";
_segmentView.segmentDelegate = self; _segmentView.segmentDelegate = self;
_segmentView.isEqualSpace = YES; _segmentView.isEqualSpace = YES;
_segmentView.itemFont = [UIFont fus_themeFont:15]; _segmentView.itemFont = [UIFont fus_themeFont:15];
_segmentView.itemSelectedFont = [UIFont fus_themeBoldFont:15];
_segmentView.backgroundColor = [UIColor clearColor]; _segmentView.backgroundColor = [UIColor clearColor];
[_segmentView fus_setItemTitleColor:[UIColor fus_textColorRich] forState:UIControlStateSelected]; [_segmentView fus_setItemTitleColor:[UIColor fus_textColorRich] forState:UIControlStateSelected];
[_segmentView fus_setItemTitleColor:[UIColor fus_textColorMedium] forState:UIControlStateNormal]; [_segmentView fus_setItemTitleColor:[UIColor fus_textColorMedium] forState:UIControlStateNormal];
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
// SaveBtn.titleLabel.adjustsFontSizeToFitWidth = YES; // SaveBtn.titleLabel.adjustsFontSizeToFitWidth = YES;
self.operationBtn.titleLabel.adjustsFontSizeToFitWidth = YES; self.operationBtn.titleLabel.adjustsFontSizeToFitWidth = YES;
self.taskNameLabel.textColor = [UIColor fus_textColorRich]; self.taskNameLabel.textColor = [UIColor fus_textColorRich];
self.taskNameLabel.font = [UIFont fus_themeFont:15]; self.taskNameLabel.font = [UIFont fus_themeBoldFont:15];
} }
......
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
[super awakeFromNib]; [super awakeFromNib];
// self.operationBtn.titleLabel.adjustsFontSizeToFitWidth = YES; // self.operationBtn.titleLabel.adjustsFontSizeToFitWidth = YES;
self.taskTitleLabel.textColor = [UIColor fus_textColorRich]; self.taskTitleLabel.textColor = [UIColor fus_textColorRich];
self.taskTitleLabel.font = [UIFont fus_themeBoldFont:15];
} }
// 重写setter方法赋值 // 重写setter方法赋值
......
...@@ -975,8 +975,11 @@ static NSString *FUSWebRightBtnExtraInfoKey = @"FUSWebRightBtnExtraInfoKey"; ...@@ -975,8 +975,11 @@ static NSString *FUSWebRightBtnExtraInfoKey = @"FUSWebRightBtnExtraInfoKey";
if ([dataDict[@"isBox"] boolValue]) { if ([dataDict[@"isBox"] boolValue]) {
return; return;
} }
BOOL hideTitle = [dataDict[@"hideTitle"] boolValue];
FUSWKWebViewController *wkVc = [[FUSWKWebViewController alloc] init]; FUSWKWebViewController *wkVc = [[FUSWKWebViewController alloc] init];
wkVc.needHideWebTitleBar = hideTitle;
wkVc.webUrlString = openURLString; wkVc.webUrlString = openURLString;
wkVc.shouldShowShareBtn = shouldShare; wkVc.shouldShowShareBtn = shouldShare;
if ([self.wkVC isKindOfClass:[FUSWKWebViewController class]]) { if ([self.wkVC isKindOfClass:[FUSWKWebViewController class]]) {
......
...@@ -326,7 +326,7 @@ ...@@ -326,7 +326,7 @@
"宝石储值" = "شحن GEMs"; "宝石储值" = "شحن GEMs";
"对方的信用指数低于%.1f分的基础,可能有一定的诚信风险,确认继续通话吗?" = "رصيد الجانب الآخر أقل من %1$s، مما قد ينطوي على مخاطر ائتمانية محتملة، هل تريد الاستمرار في الاتصال؟"; "对方的信用指数低于%.1f分的基础,可能有一定的诚信风险,确认继续通话吗?" = "رصيد الجانب الآخر أقل من %.1f، مما قد يكون له مخاطر ائتمانية محتملة، هل تريد الاستمرار في الاتصال؟";
"录制时长最短3秒。" = "Record time are 3 seconds at least"; "录制时长最短3秒。" = "Record time are 3 seconds at least";
......
...@@ -332,7 +332,7 @@ ...@@ -332,7 +332,7 @@
"宝石储值" = "寶石儲值"; "宝石储值" = "寶石儲值";
"对方的信用指数低于%.1f分的基础,可能有一定的诚信风险,确认继续通话吗?" = "對方的信用指數低於%1$s分,可能存在一定的信用風險,確認繼續通話嗎?"; "对方的信用指数低于%.1f分的基础,可能有一定的诚信风险,确认继续通话吗?" = "對方的信用指數低於%.1f分,可能存在一定的信用風險,確認繼續通話嗎?";
"录制时长最短3秒。" = "錄製時長最短3秒"; "录制时长最短3秒。" = "錄製時長最短3秒";
......
...@@ -332,7 +332,7 @@ ...@@ -332,7 +332,7 @@
"宝石储值" = "寶石儲值"; "宝石储值" = "寶石儲值";
"对方的信用指数低于%.1f分的基础,可能有一定的诚信风险,确认继续通话吗?" = "對方的信用指數低於%1$s分,可能存在一定的信用風險,確認繼續通話嗎?"; "对方的信用指数低于%.1f分的基础,可能有一定的诚信风险,确认继续通话吗?" = "對方的信用指數低於%.1f分,可能存在一定的信用風險,確認繼續通話嗎?";
"录制时长最短3秒。" = "錄製時長最短3秒"; "录制时长最短3秒。" = "錄製時長最短3秒";
......
...@@ -332,7 +332,7 @@ ...@@ -332,7 +332,7 @@
"宝石储值" = "Recharge GEMs"; "宝石储值" = "Recharge GEMs";
"对方的信用指数低于%.1f分的基础,可能有一定的诚信风险,确认继续通话吗?" = "The credit of the other side is lower than %1$s,which may have potential credit risk ,continue to call?"; "对方的信用指数低于%.1f分的基础,可能有一定的诚信风险,确认继续通话吗?" = "The credit of the other side is lower than %.1f,which may have potential credit risk ,continue to call?";
"录制时长最短3秒。" = "Record time are 3 seconds at least"; "录制时长最短3秒。" = "Record time are 3 seconds at least";
......
...@@ -328,7 +328,7 @@ ...@@ -328,7 +328,7 @@
"宝石储值" = "Tambahkan Saldo GEMs"; "宝石储值" = "Tambahkan Saldo GEMs";
"对方的信用指数低于%.1f分的基础,可能有一定的诚信风险,确认继续通话吗?" = "Kredit pihak lain lebih rendah dari %1$s, yang mungkin memiliki potensi risiko kredit, terus menelepon?"; "对方的信用指数低于%.1f分的基础,可能有一定的诚信风险,确认继续通话吗?" = "Kredit pihak lain lebih rendah dari %.1f, yang mungkin memiliki potensi risiko kredit, terus menelepon?";
"录制时长最短3秒。" = "Record time are 3 seconds at least"; "录制时长最短3秒。" = "Record time are 3 seconds at least";
......
...@@ -330,7 +330,7 @@ ...@@ -330,7 +330,7 @@
"宝石储值" = "GEMsをトップアップ"; "宝石储值" = "GEMsをトップアップ";
"对方的信用指数低于%.1f分的基础,可能有一定的诚信风险,确认继续通话吗?" = "相手側の信用度は %1$s より低いため、信用リスクがある可能性があります。引き続き電話をかけますか?"; "对方的信用指数低于%.1f分的基础,可能有一定的诚信风险,确认继续通话吗?" = "相手側の信用度は %.1f より低いため、潜在的な信用リスクがある可能性があります。引き続き電話をかけますか?";
"录制时长最短3秒。" = "Record time are 3 seconds at least"; "录制时长最短3秒。" = "Record time are 3 seconds at least";
......
...@@ -328,7 +328,7 @@ ...@@ -328,7 +328,7 @@
"宝石储值" = "เติมเงิน GEMs"; "宝石储值" = "เติมเงิน GEMs";
"对方的信用指数低于%.1f分的基础,可能有一定的诚信风险,确认继续通话吗?" = "เครดิตของอีกฝั่งต่ำกว่า %1$s ซึ่งอาจมีความเสี่ยงด้านเครดิต เรียกต่อไปหรือไม่?"; "对方的信用指数低于%.1f分的基础,可能有一定的诚信风险,确认继续通话吗?" = "เครดิตของอีกฝ่ายต่ำกว่า %.1f ซึ่งอาจมีความเสี่ยงด้านเครดิต เรียกต่อไปหรือไม่?";
"录制时长最短3秒。" = "Record time are 3 seconds at least"; "录制时长最短3秒。" = "Record time are 3 seconds at least";
......
...@@ -330,7 +330,7 @@ ...@@ -330,7 +330,7 @@
"宝石储值" = "Nạp GEMs"; "宝石储值" = "Nạp GEMs";
"对方的信用指数低于%.1f分的基础,可能有一定的诚信风险,确认继续通话吗?" = "Tín dụng của bên kia thấp hơn %1$s, có thể tiềm ẩn rủi ro tín dụng, tiếp tục gọi?"; "对方的信用指数低于%.1f分的基础,可能有一定的诚信风险,确认继续通话吗?" = "Tín dụng của bên kia thấp hơn %.1f, có thể tiềm ẩn rủi ro tín dụng, tiếp tục gọi?";
"录制时长最短3秒。" = "Record time are 3 seconds at least"; "录制时长最短3秒。" = "Record time are 3 seconds at least";
......
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