Ver código fonte

头像显示

Steven 1 ano atrás
pai
commit
87b613ae34

+ 1 - 1
KulexiuForStudent/KulexiuForStudent/Common/Base/KSNetworkingManager.m

@@ -1663,7 +1663,7 @@
 /// @param success 成功
 /// @param faliure 失败
 + (void)getWhiteBoardRoomMessage:(NSString *)post url:(NSString *)url parm:(NSDictionary *)parm success:(void(^)(NSDictionary *dic))success faliure:(void(^)(NSError *error))faliure {
-    [self configRequestMethodJSON];
+    [self configRequestMethodForm];
     [self request:post andWithUrl:url and:parm success:success faliure:faliure];
 }
 

+ 3 - 0
KulexiuForStudent/KulexiuForStudent/Module/Chat/Controller/KSChatListViewController.m

@@ -40,6 +40,9 @@
     [self addChildViewController:self.listVC];
     self.listVC.delegate = self;
     [self.view addSubview:self.listVC.view];
+    [self.listVC.view mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.left.right.top.bottom.mas_equalTo(self.view);
+    }];
     self.listVC.tableViewForAll.tipsMsgWhenNoConversation = @"暂无内容~";
     [self.listVC.tableViewForAll.tipsView setImage:[UIImage imageNamed:@"wd_img_zwsj"]];
     [self.listVC.tableViewContainer mas_makeConstraints:^(MASConstraintMaker *make) {

+ 4 - 0
KulexiuForStudent/KulexiuForStudent/Module/Chat/Controller/TXCustom/KSTXBaseChatViewController.m

@@ -56,6 +56,10 @@ static UIView *gCustomTopView;
 
 #pragma mark - Life Cycle
 
+- (void)messageController:(TUIBaseMessageController *)controller willDisplayCell:(TUIMessageCell *)cell withData:(TUIMessageCellData *)cellData {
+    cell.avatarView.contentMode = UIViewContentModeScaleAspectFill;
+}
+
 - (void)messageController:(TUIBaseMessageController *)controller onSelectMessageAvatar:(TUIMessageCell *)cell {
     NSString *userID = nil;
     if (cell.messageData.innerMessage.groupID.length > 0) {

+ 1 - 0
KulexiuForStudent/KulexiuForStudent/Module/Chat/Search/KSSearchViewController.m

@@ -100,6 +100,7 @@ static NSString *const HFId = @"HFId";
 
 - (TUISearchResultCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
     TUISearchResultCell *cell = [tableView dequeueReusableCellWithIdentifier:Id forIndexPath:indexPath];
+    cell.avatarView.contentMode = UIViewContentModeScaleAspectFill;
     TUISearchResultModule module = TUISearchResultModuleContact;
     NSArray *results = [self resultForSection:indexPath.section module:&module];
     if (results.count <= indexPath.row) {

+ 1 - 5
KulexiuForStudent/KulexiuForStudent/Module/TXClassRoom/Controller/TXClassroomViewController.m

@@ -269,7 +269,7 @@
 }
 
 -(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch{
-    if ([touch.view isDescendantOfView:self.chatAreaView] || [touch.view isDescendantOfView:self.videoListView] || [touch.view isDescendantOfView:self.maskView] || [touch.view isDescendantOfView:self.wBoardCtrl.customWebView.refreshButton] || [touch.view isDescendantOfView:self.danView]) {
+    if ([touch.view isDescendantOfView:self.chatAreaView] || [touch.view isDescendantOfView:self.videoListView] || [touch.view isDescendantOfView:self.maskView] || [touch.view isDescendantOfView:self.wBoardCtrl.customWebView.refreshButton] || [touch.view isDescendantOfView:self.danView] || [touch.view isDescendantOfView:self.titleView]) {
         return NO;
     }
 //    if ([touch.view isDescendantOfView:self.wBoardCtrl.wbView] || [touch.view isDescendantOfView:self.wBoardCtrl.customWebView] || [touch.view isDescendantOfView:self.containerView]) {
@@ -305,7 +305,6 @@
         case ClassTitleViewActionTagMicrophone:
         {
             if (tagButton.isSelected == NO) {
-                tagButton.isSelected = YES;
                 [[ClassroomService sharedService] enableDevice:NO withType:DeviceTypeMicrophone];
             }
             else {
@@ -314,7 +313,6 @@
                     return;
                 }
                 
-                tagButton.isSelected = NO;
                 [[ClassroomService sharedService] enableDevice:YES withType:DeviceTypeMicrophone];
             }
         }
@@ -323,11 +321,9 @@
         {
             if (tagButton.isSelected == NO) {
                 
-                tagButton.isSelected = YES;
                 [[ClassroomService sharedService] enableDevice:NO withType:DeviceTypeCamera];
             }
             else {
-                tagButton.isSelected = NO;
                 [[ClassroomService sharedService] enableDevice:YES withType:DeviceTypeCamera];
             }
         }