|
@@ -135,7 +135,7 @@
|
|
|
#import "JXLuckRescueFundVc.h"
|
|
|
#import "JXApplyViewController.h"
|
|
|
#import "JXGoldMangVc.h"
|
|
|
-
|
|
|
+#import "JXGoldMangerVc.h"
|
|
|
|
|
|
#define toolHHH (THE_DEVICE_HAVE_HEAD ? 83 : 60)
|
|
|
|
|
@@ -395,6 +395,7 @@
|
|
|
|
|
|
_pool = [[NSMutableArray alloc]init];
|
|
|
_array = [[NSMutableArray alloc]init];
|
|
|
+ _soundSendArray = [[NSMutableArray alloc]init];
|
|
|
|
|
|
_isReadDelete = [self.chatPerson.isOpenReadDel boolValue];
|
|
|
|
|
@@ -462,7 +463,7 @@
|
|
|
|
|
|
//进入后台UIApplicationDidEnterBackgroundNotification
|
|
|
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didEnterBackground) name:UIApplicationDidEnterBackgroundNotification object:nil];
|
|
|
-
|
|
|
+
|
|
|
return self;
|
|
|
}
|
|
|
|
|
@@ -729,13 +730,13 @@
|
|
|
|
|
|
showLongView.userInteractionEnabled=YES;
|
|
|
if (_strURLGoback.length>0) {
|
|
|
- [[[UIApplication sharedApplication].windows objectAtIndex:0] addSubview:showLongView];
|
|
|
+ [[[UIApplication sharedApplication].windows objectAtIndex:0] addSubview:showLongView];
|
|
|
}
|
|
|
self.showLongViewc=showLongView;
|
|
|
|
|
|
// [showLongView.titleLong addTarget:self action:@selector(gotoGouCaiBtb) forControlEvents:UIControlStateNormal];
|
|
|
|
|
|
- // [DYAdAlertView showInView:self.view theDelegate:self theADInfo:arr placeHolderImage:@"1"];
|
|
|
+ // [DYAdAlertView showInView:self.view theDelegate:self theADInfo:arr placeHolderImage:@"1"];
|
|
|
}
|
|
|
|
|
|
//去抢红包
|
|
@@ -855,7 +856,7 @@
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
- (void)setupFloating {
|
|
|
_floating = [[MISFloatingBall alloc] initWithFrame:CGRectMake(JX_SCREEN_WIDTH-60, JX_SCREEN_HEIGHT/3, 60, 60) inSpecifiedView:self.view effectiveEdgeInsets:(UIEdgeInsetsZero)];
|
|
|
// 自动靠边
|
|
@@ -886,13 +887,14 @@
|
|
|
_strURLGoback=@"1000";
|
|
|
|
|
|
}
|
|
|
+
|
|
|
- (void)viewDidLoad
|
|
|
{
|
|
|
[super viewDidLoad];
|
|
|
[self getEmojsData];
|
|
|
[g_notify addObserver:self selector:@selector(getEmojsData) name:kEmojiRefresh object:nil];
|
|
|
+
|
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
self.view.backgroundColor = HEXCOLOR(0xF9F9F9);
|
|
@@ -1248,10 +1250,15 @@
|
|
|
// NSNumber *time = [sortedArray lastObject];
|
|
|
// starTime = [time longValue];
|
|
|
|
|
|
- if([self.roomJid length]>0)
|
|
|
+ if([_roomJid length]>0){
|
|
|
[g_server tigaseMucMsgsWithRoomId:s StartTime:starTime EndTime:endTime PageIndex:0 PageSize:PAGECOUNT toView:self];
|
|
|
+ }
|
|
|
else
|
|
|
+ {
|
|
|
[g_server tigaseMsgsWithReceiver:s StartTime:starTime EndTime:endTime PageIndex:0 toView:self];
|
|
|
+ }
|
|
|
+
|
|
|
+ [_wait stop];
|
|
|
}else {
|
|
|
//获取本地聊天记录
|
|
|
if (self.scrollLine == 0) {
|
|
@@ -1361,7 +1368,7 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
if(msg || _page == 0){
|
|
|
[_table reloadData];
|
|
|
|
|
|
- [_table gotoLastRow:NO];
|
|
|
+ // [_table gotoLastRow:NO];
|
|
|
if (self.isSyncMsg || self.isGotoLast) {
|
|
|
[_table gotoLastRow:NO];
|
|
|
}
|
|
@@ -1402,22 +1409,22 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
[self createHeadAndFoot];
|
|
|
self.tableFooter.clipsToBounds = YES;
|
|
|
// 设置聊天背景图片
|
|
|
- self.backGroundImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, JX_SCREEN_WIDTH, JX_SCREEN_HEIGHT - JX_SCREEN_BOTTOM)];
|
|
|
- self.backGroundImageView.contentMode = UIViewContentModeScaleAspectFill;
|
|
|
- [self.view insertSubview:self.backGroundImageView belowSubview:_table];
|
|
|
-
|
|
|
- NSData *imageData = [g_constant.userBackGroundImage objectForKey:self.chatPerson.userId];
|
|
|
- UIImage *backGroundImage = [UIImage imageWithContentsOfFile:kChatBackgroundImagePath];
|
|
|
- if (imageData) {
|
|
|
- _table.backgroundColor = [UIColor clearColor];
|
|
|
- self.backGroundImageView.image = [UIImage imageWithData:imageData];
|
|
|
- }else if (backGroundImage) {
|
|
|
- _table.backgroundColor = [UIColor clearColor];
|
|
|
- self.backGroundImageView.image = backGroundImage;
|
|
|
-
|
|
|
- }else {
|
|
|
+// self.backGroundImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, JX_SCREEN_WIDTH, JX_SCREEN_HEIGHT - JX_SCREEN_BOTTOM)];
|
|
|
+// self.backGroundImageView.contentMode = UIViewContentModeScaleAspectFill;
|
|
|
+// [self.view insertSubview:self.backGroundImageView belowSubview:_table];
|
|
|
+//
|
|
|
+// NSData *imageData = [g_constant.userBackGroundImage objectForKey:self.chatPerson.userId];
|
|
|
+// UIImage *backGroundImage = [UIImage imageWithContentsOfFile:kChatBackgroundImagePath];
|
|
|
+// if (imageData) {
|
|
|
+// _table.backgroundColor = [UIColor clearColor];
|
|
|
+// self.backGroundImageView.image = [UIImage imageWithData:imageData];
|
|
|
+// }else if (backGroundImage) {
|
|
|
+// _table.backgroundColor = [UIColor clearColor];
|
|
|
+// self.backGroundImageView.image = backGroundImage;
|
|
|
+//
|
|
|
+// }else {
|
|
|
_table.backgroundColor = HEXCOLOR(0xF2F2F2);
|
|
|
- }
|
|
|
+// }
|
|
|
// _table.allowsSelection = NO;
|
|
|
self.isShowFooterPull = NO;
|
|
|
self.isShowHeaderPull = YES;
|
|
@@ -1518,7 +1525,7 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
[g_server getRoomMember:roomId userId:[g_myself.userId intValue] toView:self];
|
|
|
//获取群成员:
|
|
|
NSArray * memberArray = [memberData fetchAllMembers:_room.roomId];
|
|
|
- self.title = [NSString stringWithFormat:@"%@(%ld)", self.chatPerson.userNickname, memberArray.count];
|
|
|
+ self.title = [NSString stringWithFormat:@"%@(%ld)", self.chatPerson.userNickname, memberArray.count];
|
|
|
|
|
|
_dataArrGetGroundPersonArr=[memberArray mutableCopy];
|
|
|
|
|
@@ -1959,14 +1966,24 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
[self showOneMsg:msg];
|
|
|
}
|
|
|
}
|
|
|
+//删除房间
|
|
|
+- (void)deleRoom{
|
|
|
+
|
|
|
|
|
|
-
|
|
|
+ [g_notify postNotificationName:kUpdateUserNotifaction object:nil];
|
|
|
+ [self.navigationController popViewControllerAnimated:YES];
|
|
|
+}
|
|
|
-(void)viewWillAppear:(BOOL)animated{
|
|
|
[super viewWillAppear:animated];
|
|
|
//进入界面即开启定时器
|
|
|
// [self.noticeTimer setFireDate:[NSDate distantPast]];
|
|
|
_strURLGoback=@"1000";
|
|
|
_enterFirst=0;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ [g_notify addObserver:self selector:@selector(deleRoom) name:@"act_roomMemberDeljieshan" object:nil];
|
|
|
+ [g_notify addObserver:self selector:@selector(deleRoom) name:@"deleRoom" object:nil];
|
|
|
[g_notify addObserver:self selector:@selector(openLong:) name:@"KOPENLONG" object:nil];
|
|
|
// dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
//
|
|
@@ -2011,16 +2028,21 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
}
|
|
|
|
|
|
// [g_notify removeObserver:self];
|
|
|
-
|
|
|
+
|
|
|
+ if ([_roomJid length]<=0) {
|
|
|
+
|
|
|
+
|
|
|
+ _table.contentInset = UIEdgeInsetsMake(0, 0, 0, 0);
|
|
|
+ }
|
|
|
[self.navigationController setNavigationBarHidden:NO];
|
|
|
|
|
|
}
|
|
|
|
|
|
- (void)viewDidDisappear:(BOOL)animated {
|
|
|
- _strURLGoback=@"";
|
|
|
+
|
|
|
[super viewDidDisappear:animated];
|
|
|
-
|
|
|
- if (_enterFirst==100)
|
|
|
+ _strURLGoback=@"";
|
|
|
+ if (_enterFirst==100) {
|
|
|
|
|
|
_noticeView2=nil;
|
|
|
_noticeViewScrollView=nil;
|
|
@@ -2067,7 +2089,7 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
|
|
|
[self.view removeFromSuperview];
|
|
|
self.view=nil;
|
|
|
-
|
|
|
+ }
|
|
|
[g_notify removeObserver:self name:@"KOPENLONG" object:nil];
|
|
|
_strURLGoback=@"";
|
|
|
//退出界面即关闭定时器
|
|
@@ -2113,6 +2135,7 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
}; _strURLGoback=@"";
|
|
|
pervc.dataArr=_dataArrGetGroundPersonArr;
|
|
|
pervc.roomID=self.roomJid;
|
|
|
+ pervc.UserId=_backUserId;
|
|
|
[g_navigation pushViewController:pervc animated:YES];
|
|
|
|
|
|
}
|
|
@@ -2138,7 +2161,7 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
[_noticeViewScrollView addSubview:lineView];
|
|
|
|
|
|
UIButton *attionBtn=[[UIButton alloc]initWithFrame:CGRectMake(10, 7, 80, 24)];
|
|
|
- [attionBtn setTitle:@"选择好友" forState:UIControlStateNormal];
|
|
|
+ [attionBtn setTitle:@"特别关心" forState:UIControlStateNormal];
|
|
|
attionBtn.layer.cornerRadius=8;
|
|
|
attionBtn.layer.masksToBounds=YES;
|
|
|
attionBtn.backgroundColor=[UIColor whiteColor];
|
|
@@ -2680,6 +2703,8 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
_messageText.userInteractionEnabled = YES;
|
|
|
}
|
|
|
|
|
|
+ //self.navigationController.interactivePopGestureRecognizer.delaysTouchesBegan=NO;
|
|
|
+
|
|
|
//点击语音图片后出现的录制语音按钮
|
|
|
btn = [UIButton buttonWithType:UIButtonTypeRoundedRect];
|
|
|
btn.frame = CGRectMake(_messageText.frame.origin.x, 8, _messageText.frame.size.width, 32+5.5);
|
|
@@ -2703,7 +2728,7 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
[btn addTarget:self action:@selector(showVoice:) forControlEvents:UIControlEventTouchDragInside];
|
|
|
// 当手指拖动刚好在control的bounds 范围外的事件
|
|
|
[btn addTarget:self action:@selector(showCancel:) forControlEvents:UIControlEventTouchDragOutside];
|
|
|
-
|
|
|
+
|
|
|
btn.selected = NO;
|
|
|
_recordBtn = btn;
|
|
|
_recordBtn.hidden = YES;
|
|
@@ -2722,26 +2747,32 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
[self createSelectMoreView];
|
|
|
});
|
|
|
-
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
- (void)showVoice:(UIButton *)button {
|
|
|
+
|
|
|
_voice.isWillCancel = NO;
|
|
|
-}
|
|
|
-- (void)showCancel:(UIButton *)button {
|
|
|
- _voice.isWillCancel = YES;
|
|
|
-}
|
|
|
+} //隐藏系统菜单的方法
|
|
|
+
|
|
|
+//- (BOOL)canPerformAction:(SEL)action withSender:(id)sender{
|
|
|
+//
|
|
|
+// if (action == @selector(selfMenu:)) {
|
|
|
+// return YES;
|
|
|
+// }
|
|
|
+//
|
|
|
+// _voice.isWillCancel=NO;
|
|
|
+//
|
|
|
+// return YES;
|
|
|
+//}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ - (void)showCancel:(UIButton *)button {
|
|
|
+ _voice.isWillCancel = YES;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
-//隐藏系统菜单的方法
|
|
|
--(BOOL)canPerformAction:(SEL)action withSender:(id)sender
|
|
|
-{
|
|
|
- //允许显示
|
|
|
- if (action == @selector(selfMenu:)) {
|
|
|
- return YES;
|
|
|
- }
|
|
|
- //其他不允许显示
|
|
|
- return NO;
|
|
|
-}
|
|
|
|
|
|
- (void)selfMenu:(id)sender {
|
|
|
_messageText.text = [NSString stringWithFormat:@"%@\r",_messageText.text];
|
|
@@ -3178,6 +3209,10 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
- (void)didReceiveMemoryWarning
|
|
|
{
|
|
|
[super didReceiveMemoryWarning];
|
|
|
+
|
|
|
+ self.view=nil;
|
|
|
+ self.tableView=nil;
|
|
|
+ _strURLGoback=@"";
|
|
|
// Dispose of any resources that can be recreated.
|
|
|
}
|
|
|
|
|
@@ -3352,7 +3387,7 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- NSString *userId = self.userIds[self.groupMessagesIndex];
|
|
|
+ NSString *userId = _userIds[self.groupMessagesIndex];
|
|
|
// NSString *userName = self.userNames[self.groupMessagesIndex];
|
|
|
|
|
|
NSMutableArray * tempArray = [[NSMutableArray alloc] init];
|
|
@@ -4402,8 +4437,8 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
[g_navigation pushViewController:vc animated:YES];
|
|
|
|
|
|
}else if ([msg.content containsString:@"===jixinJXGoldMangVc"]) {
|
|
|
-
|
|
|
- JXGoldMangVc *vc = [JXGoldMangVc new];
|
|
|
+
|
|
|
+ JXGoldMangerVc *vc = [JXGoldMangerVc new];
|
|
|
[g_navigation pushViewController:vc animated:YES];
|
|
|
|
|
|
}else if ([msg.content containsString:@"===jixinJXBigRellV"]) {
|
|
@@ -5878,6 +5913,8 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
#pragma mark - 录制语音
|
|
|
- (void)recordStart:(UIButton *)sender {
|
|
|
NSLog(@"recordStart-------");
|
|
|
+ // [_soundSendArray removeAllObjects];
|
|
|
+
|
|
|
if([self showDisableSay])
|
|
|
return;
|
|
|
if(recording)
|
|
@@ -5890,6 +5927,8 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+ //[_soundSendArray addObject:@"1"];
|
|
|
+
|
|
|
// _recordBtn.layer.borderColor = [[UIColor blueColor] CGColor];
|
|
|
_recordBtn.backgroundColor = HEXCOLOR(0xB8B9BD);
|
|
|
|
|
@@ -6881,6 +6920,7 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
-(void)scrollToPageUp{
|
|
|
if(_isLoading)
|
|
|
return;
|
|
|
+ self.isGetServerMsg = YES;
|
|
|
NSLog(@"scrollToPageUp");
|
|
|
_page ++;
|
|
|
[self getServerData];
|
|
@@ -7494,7 +7534,7 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
if( [aDownload.action isEqualToString:act_roomGet] ){
|
|
|
// [_room getDataFromDict:dict];
|
|
|
//
|
|
|
-// JXRoomMemberVC* vc = [JXRoomMemberVC alloc];
|
|
|
+ JXRoomMemberVC* vc = [JXRoomMemberVC alloc];
|
|
|
// vc.chatRoom = chatRoom;
|
|
|
// vc.room = _room;
|
|
|
// vc.delegate = self;
|
|
@@ -7574,7 +7614,7 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
_videoMeetingNo = [NSString stringWithFormat:@"%@",dict[@"videoMeetingNo"]];
|
|
|
_userNickName = dict[@"nickname"];
|
|
|
[_table reloadData];
|
|
|
-
|
|
|
+ // 增加的 [_table gotoLastRow:YES];
|
|
|
if (_relayMsgArray.count > 0) {
|
|
|
for (JXMessageObject *msg in self.relayMsgArray) {
|
|
|
if ([msg.type intValue] == kWCMessageTypeRedPacket) {
|
|
@@ -7756,7 +7796,17 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
|
|
|
self.isGetServerMsg = NO;
|
|
|
self.scrollLine = 0;
|
|
|
- [self refresh:nil];
|
|
|
+
|
|
|
+ /*
|
|
|
+ _isRefreshing = NO;
|
|
|
+ [_array addObjectsFromArray:array1];
|
|
|
+ [self setIsShowTime];[_table reloadData];
|
|
|
+ */
|
|
|
+
|
|
|
+ [self refresh:nil];
|
|
|
+
|
|
|
+
|
|
|
+ NSLog(@"JXSynTask ^刷新");
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -7770,6 +7820,9 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
self.isGetServerMsg = NO;
|
|
|
self.scrollLine = 0;
|
|
|
[self refresh:nil];
|
|
|
+
|
|
|
+ NSLog(@"JXSynTask ^刷新");
|
|
|
+// [_array addObjectsFromArray:p];
|
|
|
}else {
|
|
|
self.isShowHeaderPull = NO;
|
|
|
}
|
|
@@ -7900,7 +7953,9 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
|
|
|
}else if (isOpen==1 && isOpen2==0) {
|
|
|
_noticeView2.hidden = YES;
|
|
|
- _noticeViewScrollView.hidden = NO;_table.contentInset = UIEdgeInsetsMake(36, 0, 0, 0);
|
|
|
+ _noticeViewScrollView.hidden = NO;
|
|
|
+
|
|
|
+ _table.contentInset = UIEdgeInsetsMake(36, 0, 0, 0);
|
|
|
_noticeViewScrollView.frame=CGRectMake(0, JX_SCREEN_TOP+(JX_SCREEN_HEIGHT>=812?-6:18), JX_SCREEN_WIDTH, 37);
|
|
|
|
|
|
}else if (isOpen==0 && isOpen2==1){
|
|
@@ -7914,6 +7969,8 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
self.showTopView.xiaLineView.hidden=YES;
|
|
|
_noticeView2.hidden = NO;
|
|
|
_noticeViewScrollView.frame=CGRectMake(0, JX_SCREEN_TOP+(JX_SCREEN_HEIGHT>=812?-6:18), JX_SCREEN_WIDTH, 37);
|
|
|
+
|
|
|
+
|
|
|
_table.contentInset = UIEdgeInsetsMake(70, 0, 0, 0);
|
|
|
}
|
|
|
|
|
@@ -7925,15 +7982,20 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
|
|
|
_noticeViewScrollView.hidden = YES;
|
|
|
}else{
|
|
|
- _table.contentInset = UIEdgeInsetsMake(36, 0, 0, 0);
|
|
|
+
|
|
|
_noticeViewScrollView.frame=CGRectMake(0, JX_SCREEN_TOP+(JX_SCREEN_HEIGHT>=812?-44:-20), JX_SCREEN_WIDTH, 37);
|
|
|
_noticeViewScrollView.hidden = NO;
|
|
|
|
|
|
+
|
|
|
_table.contentInset = UIEdgeInsetsMake(38, 0, 0, 0);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
+ if ([_roomJid length]<=0) {
|
|
|
+
|
|
|
+ _table.contentInset = UIEdgeInsetsMake(0, 0, 0, 0);
|
|
|
+ }
|
|
|
self.title = [NSString stringWithFormat:@"%@(%ld)", self.chatPerson.userNickname, [dict[@"userSize"] integerValue]];
|
|
|
[self setAudioIconFrame];
|
|
|
if ([dict objectForKey:@"jid"]) {
|
|
@@ -8145,13 +8207,25 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
|
|
|
return hide_error;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
-(int) didServerConnectError:(JXConnection*)aDownload error:(NSError *)error{//error为空时,代表超时
|
|
|
[self doUploadError:aDownload];
|
|
|
+
|
|
|
+ if([aDownload.action isEqualToString:act_tigaseMucMsgs]) {
|
|
|
+ [_table reloadData];
|
|
|
+// if([_roomJid length]>0){
|
|
|
+// [g_server tigaseMucMsgsWithRoomId:_roomJid StartTime:1262275200000 EndTime:(long)[self currentdateInterval] PageIndex:0 PageSize:PAGECOUNT toView:self];
|
|
|
+// }
|
|
|
+ }
|
|
|
[_wait stop];
|
|
|
return hide_error;
|
|
|
}
|
|
|
-
|
|
|
++(NSTimeInterval )currentdateInterval
|
|
|
+{
|
|
|
+ NSDate *datenow = [NSDate date];
|
|
|
+ NSTimeInterval timeSp=(long)([datenow timeIntervalSince1970]*1000);
|
|
|
+ return timeSp;
|
|
|
+}
|
|
|
-(void) didServerConnectStart:(JXConnection*)aDownload{
|
|
|
if([aDownload.action isEqualToString:act_UploadFile] || [aDownload.action isEqualToString:act_publicMenuList] || [aDownload.action isEqualToString:act_tigaseMsgs] || [aDownload.action isEqualToString:act_tigaseMucMsgs])
|
|
|
return;
|
|
@@ -9302,7 +9376,7 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
|
|
|
}
|
|
|
if(model.type == 3) {
|
|
|
- [self showAdAlertViewImageString:@"ad_treasureBox.png" linkUrl:nil audio:nil duration:0 content:@"恭喜您获得一个宝箱!" showCancelButton:YES type:(DYAdModelTypeGiftOpen) success:NO];
|
|
|
+ // [self showAdAlertViewImageString:@"ad_treasureBox.png" linkUrl:nil audio:nil duration:0 content:@"恭喜您获得一个宝箱!" showCancelButton:YES type:(DYAdModelTypeGiftOpen) success:NO];
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -10181,7 +10255,7 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
UIImage *redImage = [UIImage imageNamed:@"red_packet_bg"];
|
|
|
|
|
|
CGFloat h = JX_SCREEN_HEIGHT - JX_SCREEN_TOP - JX_SCREEN_BOTTOM - 30-50;
|
|
|
- self.redBackV = [[UIImageView alloc] initWithFrame:CGRectMake(20, 30+JX_SCREEN_TOP, JX_SCREEN_WIDTH-40, h)];
|
|
|
+ self.redBackV = [[UIImageView alloc] initWithFrame:CGRectMake(20, 30+JX_SCREEN_TOP, JX_SCREEN_WIDTH-40, h-20)];
|
|
|
self.redBackV.userInteractionEnabled = YES;
|
|
|
self.redBackV.image = redImage;
|
|
|
[self.redBaseView addSubview:self.redBackV];
|
|
@@ -10189,7 +10263,7 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
[self shakeToShow:self.redBackV];
|
|
|
|
|
|
CGSize size = [[NSString stringWithFormat:@"%@%@",userName,Localized(@"JX_FromRedPacket")] sizeWithAttributes:@{NSFontAttributeName:SYSFONT(18)}];
|
|
|
- UIImageView *icon = [[UIImageView alloc] initWithFrame:CGRectMake((JX_SCREEN_WIDTH-40 - size.width-30-5)/2, 100, 30, 30)];
|
|
|
+ UIImageView *icon = [[UIImageView alloc] initWithFrame:CGRectMake((JX_SCREEN_WIDTH-40 - size.width-30-5)/2, 120, 30, 30)];
|
|
|
icon.layer.masksToBounds = YES;
|
|
|
icon.layer.cornerRadius = icon.frame.size.width/2;
|
|
|
[self.redBackV addSubview:icon];
|
|
@@ -10231,7 +10305,7 @@ NSMutableArray* temp = [[NSMutableArray alloc]init];
|
|
|
UITapGestureRecognizer *tap1 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(CheckTheDetails)];
|
|
|
[label addGestureRecognizer:tap1];
|
|
|
|
|
|
- UIView *canView = [[UIView alloc] initWithFrame:CGRectMake((JX_SCREEN_WIDTH-40)/2, (JX_SCREEN_HEIGHT-CGRectGetMaxY(self.redBackV.frame)-40)/2+CGRectGetMaxY(self.redBackV.frame)-10, 40, 40)];
|
|
|
+ UIView *canView = [[UIView alloc] initWithFrame:CGRectMake((JX_SCREEN_WIDTH-40)/2, (JX_SCREEN_HEIGHT-CGRectGetMaxY(self.redBackV.frame)-40)/2+CGRectGetMaxY(self.redBackV.frame)-10-(JX_SCREEN_HEIGHT>=812?0:30), 40, 40)];
|
|
|
canView.backgroundColor = [UIColor clearColor];
|
|
|
canView.layer.masksToBounds = YES;
|
|
|
canView.layer.cornerRadius = canView.frame.size.width/2;
|